diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-05-21 11:49:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-05-21 11:49:57 -0400 |
commit | ff5f149b6aec8edbfa3698721667acd043009a33 (patch) | |
tree | d052553eb296dfee3f01b1cb2b717cb7ccf3127a /tools/perf/builtin-report.c | |
parent | f0218b3e9974f06014b61be8987159f4a20e011e (diff) | |
parent | 580d607cd666dfabfc1c7b0fb08c8ac690c7c87f (diff) |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into trace/tip/tracing/core-7
Conflicts:
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace_event_perf.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 68265120ee07..a7b8760e401c 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -39,8 +39,8 @@ static bool dont_use_callchains; | |||
39 | static bool show_threads; | 39 | static bool show_threads; |
40 | static struct perf_read_values show_threads_values; | 40 | static struct perf_read_values show_threads_values; |
41 | 41 | ||
42 | static char default_pretty_printing_style[] = "normal"; | 42 | static const char default_pretty_printing_style[] = "normal"; |
43 | static char *pretty_printing_style = default_pretty_printing_style; | 43 | static const char *pretty_printing_style = default_pretty_printing_style; |
44 | 44 | ||
45 | static char callchain_default_opt[] = "fractal,0.5"; | 45 | static char callchain_default_opt[] = "fractal,0.5"; |
46 | 46 | ||
@@ -116,7 +116,7 @@ static int perf_session__add_hist_entry(struct perf_session *self, | |||
116 | * so we don't allocated the extra space needed because the stdio | 116 | * so we don't allocated the extra space needed because the stdio |
117 | * code will not use it. | 117 | * code will not use it. |
118 | */ | 118 | */ |
119 | if (use_browser) | 119 | if (use_browser > 0) |
120 | err = hist_entry__inc_addr_samples(he, al->addr); | 120 | err = hist_entry__inc_addr_samples(he, al->addr); |
121 | out_free_syms: | 121 | out_free_syms: |
122 | free(syms); | 122 | free(syms); |
@@ -330,7 +330,7 @@ static int __cmd_report(void) | |||
330 | hists = rb_entry(next, struct hists, rb_node); | 330 | hists = rb_entry(next, struct hists, rb_node); |
331 | hists__collapse_resort(hists); | 331 | hists__collapse_resort(hists); |
332 | hists__output_resort(hists); | 332 | hists__output_resort(hists); |
333 | if (use_browser) | 333 | if (use_browser > 0) |
334 | hists__browse(hists, help, input_name); | 334 | hists__browse(hists, help, input_name); |
335 | else { | 335 | else { |
336 | const char *evname = NULL; | 336 | const char *evname = NULL; |
@@ -347,7 +347,7 @@ static int __cmd_report(void) | |||
347 | next = rb_next(&hists->rb_node); | 347 | next = rb_next(&hists->rb_node); |
348 | } | 348 | } |
349 | 349 | ||
350 | if (!use_browser && sort_order == default_sort_order && | 350 | if (use_browser <= 0 && sort_order == default_sort_order && |
351 | parent_pattern == default_parent_pattern) { | 351 | parent_pattern == default_parent_pattern) { |
352 | fprintf(stdout, "#\n# (%s)\n#\n", help); | 352 | fprintf(stdout, "#\n# (%s)\n#\n", help); |
353 | 353 | ||
@@ -491,7 +491,7 @@ int cmd_report(int argc, const char **argv, const char *prefix __used) | |||
491 | * so don't allocate extra space that won't be used in the stdio | 491 | * so don't allocate extra space that won't be used in the stdio |
492 | * implementation. | 492 | * implementation. |
493 | */ | 493 | */ |
494 | if (use_browser) | 494 | if (use_browser > 0) |
495 | symbol_conf.priv_size = sizeof(struct sym_priv); | 495 | symbol_conf.priv_size = sizeof(struct sym_priv); |
496 | 496 | ||
497 | if (symbol__init() < 0) | 497 | if (symbol__init() < 0) |