aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-08-18 15:58:46 -0400
committerIngo Molnar <mingo@elte.hu>2011-08-18 15:58:46 -0400
commit51887c8230d57c4d9cc68e3784c52c8f0a708655 (patch)
tree70509225468cddacb24eccdc78c7d8fc9e0197c5 /tools/perf/util
parent8bc84f87315e8bdbe242ba788fdc6a74d653b177 (diff)
parent4aa9015f8bfd2c8d7cc33a360275b71a9d708b37 (diff)
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Conflicts: tools/perf/builtin-stat.c
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/annotate.c5
-rw-r--r--tools/perf/util/color.c2
-rw-r--r--tools/perf/util/symbol.c2
-rw-r--r--tools/perf/util/symbol.h4
4 files changed, 10 insertions, 3 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index e01af2b1a469..01d36ba54053 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -324,9 +324,12 @@ fallback:
324 324
325 snprintf(command, sizeof(command), 325 snprintf(command, sizeof(command),
326 "objdump --start-address=0x%016" PRIx64 326 "objdump --start-address=0x%016" PRIx64
327 " --stop-address=0x%016" PRIx64 " -dS -C %s|grep -v %s|expand", 327 " --stop-address=0x%016" PRIx64
328 " -d %s %s -C %s|grep -v %s|expand",
328 map__rip_2objdump(map, sym->start), 329 map__rip_2objdump(map, sym->start),
329 map__rip_2objdump(map, sym->end), 330 map__rip_2objdump(map, sym->end),
331 symbol_conf.annotate_asm_raw ? "" : "--no-show-raw",
332 symbol_conf.annotate_src ? "-S" : "",
330 symfs_filename, filename); 333 symfs_filename, filename);
331 334
332 pr_debug("Executing: %s\n", command); 335 pr_debug("Executing: %s\n", command);
diff --git a/tools/perf/util/color.c b/tools/perf/util/color.c
index e191eb9a667f..521c38a79190 100644
--- a/tools/perf/util/color.c
+++ b/tools/perf/util/color.c
@@ -200,7 +200,7 @@ static int __color_vfprintf(FILE *fp, const char *color, const char *fmt,
200 * Auto-detect: 200 * Auto-detect:
201 */ 201 */
202 if (perf_use_color_default < 0) { 202 if (perf_use_color_default < 0) {
203 if (isatty(1) || pager_in_use()) 203 if (isatty(fileno(fp)) || pager_in_use())
204 perf_use_color_default = 1; 204 perf_use_color_default = 1;
205 else 205 else
206 perf_use_color_default = 0; 206 perf_use_color_default = 0;
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 469c0264ed29..245e60d6b4e7 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -46,6 +46,8 @@ struct symbol_conf symbol_conf = {
46 .exclude_other = true, 46 .exclude_other = true,
47 .use_modules = true, 47 .use_modules = true,
48 .try_vmlinux_path = true, 48 .try_vmlinux_path = true,
49 .annotate_asm_raw = true,
50 .annotate_src = true,
49 .symfs = "", 51 .symfs = "",
50}; 52};
51 53
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 4f377d92e75a..7733f0b3cd41 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -76,7 +76,9 @@ struct symbol_conf {
76 exclude_other, 76 exclude_other,
77 show_cpu_utilization, 77 show_cpu_utilization,
78 initialized, 78 initialized,
79 kptr_restrict; 79 kptr_restrict,
80 annotate_asm_raw,
81 annotate_src;
80 const char *vmlinux_name, 82 const char *vmlinux_name,
81 *kallsyms_name, 83 *kallsyms_name,
82 *source_prefix, 84 *source_prefix,