diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 1d3c1003b43a..a7b8760e401c 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -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) |