diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-01-31 09:08:43 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-01-31 09:09:14 -0500 |
commit | 51563cd53c4b1c1790fccd2e0af0e2b756589af9 (patch) | |
tree | d2fedfc654ab4fa011feaca262f95481a89e232a /tools/perf/util/hist.c | |
parent | d123375425d7df4b6081a631fc1203fceafa59b2 (diff) | |
parent | 8161239a8bcce9ad6b537c04a1fa3b5c68bae693 (diff) |
Merge branch 'tip/rtmutex' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into core/locking
*git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace tip/rtmutex:
rtmutex: Simplify PI algorithm and make highest prio task get lock
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r-- | tools/perf/util/hist.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index c749ba6136a0..32f4f1f2f6e4 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -636,13 +636,13 @@ int hist_entry__snprintf(struct hist_entry *self, char *s, size_t size, | |||
636 | } | 636 | } |
637 | } | 637 | } |
638 | } else | 638 | } else |
639 | ret = snprintf(s, size, sep ? "%lld" : "%12lld ", period); | 639 | ret = snprintf(s, size, sep ? "%" PRIu64 : "%12" PRIu64 " ", period); |
640 | 640 | ||
641 | if (symbol_conf.show_nr_samples) { | 641 | if (symbol_conf.show_nr_samples) { |
642 | if (sep) | 642 | if (sep) |
643 | ret += snprintf(s + ret, size - ret, "%c%lld", *sep, period); | 643 | ret += snprintf(s + ret, size - ret, "%c%" PRIu64, *sep, period); |
644 | else | 644 | else |
645 | ret += snprintf(s + ret, size - ret, "%11lld", period); | 645 | ret += snprintf(s + ret, size - ret, "%11" PRIu64, period); |
646 | } | 646 | } |
647 | 647 | ||
648 | if (pair_hists) { | 648 | if (pair_hists) { |
@@ -971,7 +971,7 @@ int hist_entry__inc_addr_samples(struct hist_entry *self, u64 ip) | |||
971 | sym_size = sym->end - sym->start; | 971 | sym_size = sym->end - sym->start; |
972 | offset = ip - sym->start; | 972 | offset = ip - sym->start; |
973 | 973 | ||
974 | pr_debug3("%s: ip=%#Lx\n", __func__, self->ms.map->unmap_ip(self->ms.map, ip)); | 974 | pr_debug3("%s: ip=%#" PRIx64 "\n", __func__, self->ms.map->unmap_ip(self->ms.map, ip)); |
975 | 975 | ||
976 | if (offset >= sym_size) | 976 | if (offset >= sym_size) |
977 | return 0; | 977 | return 0; |
@@ -980,8 +980,9 @@ int hist_entry__inc_addr_samples(struct hist_entry *self, u64 ip) | |||
980 | h->sum++; | 980 | h->sum++; |
981 | h->ip[offset]++; | 981 | h->ip[offset]++; |
982 | 982 | ||
983 | pr_debug3("%#Lx %s: period++ [ip: %#Lx, %#Lx] => %Ld\n", self->ms.sym->start, | 983 | pr_debug3("%#" PRIx64 " %s: period++ [ip: %#" PRIx64 ", %#" PRIx64 |
984 | self->ms.sym->name, ip, ip - self->ms.sym->start, h->ip[offset]); | 984 | "] => %" PRIu64 "\n", self->ms.sym->start, self->ms.sym->name, |
985 | ip, ip - self->ms.sym->start, h->ip[offset]); | ||
985 | return 0; | 986 | return 0; |
986 | } | 987 | } |
987 | 988 | ||
@@ -1132,7 +1133,7 @@ fallback: | |||
1132 | goto out_free_filename; | 1133 | goto out_free_filename; |
1133 | } | 1134 | } |
1134 | 1135 | ||
1135 | pr_debug("%s: filename=%s, sym=%s, start=%#Lx, end=%#Lx\n", __func__, | 1136 | pr_debug("%s: filename=%s, sym=%s, start=%#" PRIx64 ", end=%#" PRIx64 "\n", __func__, |
1136 | filename, sym->name, map->unmap_ip(map, sym->start), | 1137 | filename, sym->name, map->unmap_ip(map, sym->start), |
1137 | map->unmap_ip(map, sym->end)); | 1138 | map->unmap_ip(map, sym->end)); |
1138 | 1139 | ||
@@ -1142,7 +1143,7 @@ fallback: | |||
1142 | dso, dso->long_name, sym, sym->name); | 1143 | dso, dso->long_name, sym, sym->name); |
1143 | 1144 | ||
1144 | snprintf(command, sizeof(command), | 1145 | snprintf(command, sizeof(command), |
1145 | "objdump --start-address=0x%016Lx --stop-address=0x%016Lx -dS -C %s|grep -v %s|expand", | 1146 | "objdump --start-address=0x%016" PRIx64 " --stop-address=0x%016" PRIx64 " -dS -C %s|grep -v %s|expand", |
1146 | map__rip_2objdump(map, sym->start), | 1147 | map__rip_2objdump(map, sym->start), |
1147 | map__rip_2objdump(map, sym->end), | 1148 | map__rip_2objdump(map, sym->end), |
1148 | symfs_filename, filename); | 1149 | symfs_filename, filename); |