Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147276
b: refs/heads/master
c: 3ab8d79
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Ingo Molnar committed Apr 6, 2009
1 parent 478d285 commit 645738e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef45fa9e6c1694d3e8063f39749097a6e496b12c
refs/heads/master: 3ab8d792b1348eaabfe550ba60902d781d160dd4
9 changes: 5 additions & 4 deletions trunk/Documentation/perf_counter/kerneltop.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int run_perfstat = 0;
static int system_wide = 0;

static int nr_counters = 0;
static long event_id[MAX_COUNTERS] = DEF_PERFSTAT_EVENTS;
static __s64 event_id[MAX_COUNTERS] = DEF_PERFSTAT_EVENTS;
static int event_raw[MAX_COUNTERS];
static int event_count[MAX_COUNTERS];
static int fd[MAX_NR_CPUS][MAX_COUNTERS];
Expand Down Expand Up @@ -261,11 +261,11 @@ static int type_valid(int type)

static char *event_name(int ctr)
{
int type = event_id[ctr];
__s64 type = event_id[ctr];
static char buf[32];

if (event_raw[ctr]) {
sprintf(buf, "raw 0x%x", type);
sprintf(buf, "raw 0x%llx", (long long)type);
return buf;
}
if (!type_valid(type))
Expand Down Expand Up @@ -299,7 +299,8 @@ static int match_event_symbols(char *str)

static int parse_events(char *str)
{
int type, raw;
__s64 type;
int raw;

again:
if (nr_counters == MAX_COUNTERS)
Expand Down

0 comments on commit 645738e

Please sign in to comment.