diff options
| author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-11 02:32:18 -0500 |
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-11 02:33:14 -0500 |
| commit | f19693a17c6705e197eb24d4618060eaac1b535c (patch) | |
| tree | fc39dc23297c0e6be730cb0dfd74a34d9c0b8bfd /tools/perf/builtin-top.c | |
| parent | 23b120cdfae4f5c29da69de750d545bad719ead4 (diff) | |
| parent | 100b33c8bd8a3235fd0b7948338d6cbb3db3c63d (diff) | |
Merge commit 'v2.6.38-rc4' into imx-for-2.6.39
Conflicts:
arch/arm/mach-mxs/clock-mx28.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'tools/perf/builtin-top.c')
| -rw-r--r-- | tools/perf/builtin-top.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 05344c6210ac..b6998e055767 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | #include <stdio.h> | 40 | #include <stdio.h> |
| 41 | #include <termios.h> | 41 | #include <termios.h> |
| 42 | #include <unistd.h> | 42 | #include <unistd.h> |
| 43 | #include <inttypes.h> | ||
| 43 | 44 | ||
| 44 | #include <errno.h> | 45 | #include <errno.h> |
| 45 | #include <time.h> | 46 | #include <time.h> |
| @@ -214,7 +215,7 @@ static int parse_source(struct sym_entry *syme) | |||
| 214 | len = sym->end - sym->start; | 215 | len = sym->end - sym->start; |
| 215 | 216 | ||
| 216 | sprintf(command, | 217 | sprintf(command, |
| 217 | "objdump --start-address=%#0*Lx --stop-address=%#0*Lx -dS %s", | 218 | "objdump --start-address=%#0*" PRIx64 " --stop-address=%#0*" PRIx64 " -dS %s", |
| 218 | BITS_PER_LONG / 4, map__rip_2objdump(map, sym->start), | 219 | BITS_PER_LONG / 4, map__rip_2objdump(map, sym->start), |
| 219 | BITS_PER_LONG / 4, map__rip_2objdump(map, sym->end), path); | 220 | BITS_PER_LONG / 4, map__rip_2objdump(map, sym->end), path); |
| 220 | 221 | ||
| @@ -308,7 +309,7 @@ static void lookup_sym_source(struct sym_entry *syme) | |||
| 308 | struct source_line *line; | 309 | struct source_line *line; |
| 309 | char pattern[PATTERN_LEN + 1]; | 310 | char pattern[PATTERN_LEN + 1]; |
| 310 | 311 | ||
| 311 | sprintf(pattern, "%0*Lx <", BITS_PER_LONG / 4, | 312 | sprintf(pattern, "%0*" PRIx64 " <", BITS_PER_LONG / 4, |
| 312 | map__rip_2objdump(syme->map, symbol->start)); | 313 | map__rip_2objdump(syme->map, symbol->start)); |
| 313 | 314 | ||
| 314 | pthread_mutex_lock(&syme->src->lock); | 315 | pthread_mutex_lock(&syme->src->lock); |
| @@ -537,7 +538,7 @@ static void print_sym_table(void) | |||
| 537 | if (nr_counters == 1 || !display_weighted) { | 538 | if (nr_counters == 1 || !display_weighted) { |
| 538 | struct perf_evsel *first; | 539 | struct perf_evsel *first; |
| 539 | first = list_entry(evsel_list.next, struct perf_evsel, node); | 540 | first = list_entry(evsel_list.next, struct perf_evsel, node); |
| 540 | printf("%Ld", first->attr.sample_period); | 541 | printf("%" PRIu64, (uint64_t)first->attr.sample_period); |
| 541 | if (freq) | 542 | if (freq) |
| 542 | printf("Hz "); | 543 | printf("Hz "); |
| 543 | else | 544 | else |
| @@ -640,7 +641,7 @@ static void print_sym_table(void) | |||
| 640 | 641 | ||
| 641 | percent_color_fprintf(stdout, "%4.1f%%", pcnt); | 642 | percent_color_fprintf(stdout, "%4.1f%%", pcnt); |
| 642 | if (verbose) | 643 | if (verbose) |
| 643 | printf(" %016llx", sym->start); | 644 | printf(" %016" PRIx64, sym->start); |
| 644 | printf(" %-*.*s", sym_width, sym_width, sym->name); | 645 | printf(" %-*.*s", sym_width, sym_width, sym->name); |
| 645 | printf(" %-*.*s\n", dso_width, dso_width, | 646 | printf(" %-*.*s\n", dso_width, dso_width, |
| 646 | dso_width >= syme->map->dso->long_name_len ? | 647 | dso_width >= syme->map->dso->long_name_len ? |
