Skip to content

Commit

Permalink
perf report: Fix segmentation fault when running with '-g none'
Browse files Browse the repository at this point in the history
Segmentation fault occurs when running perf report with '-g
none'.

Reported-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100122014750.GA4111@ywang-moblin2.bj.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yong Wang authored and Ingo Molnar committed Jan 27, 2010
1 parent b04da8b commit b7ae11b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ parse_callchain_opt(const struct option *opt __used, const char *arg,

else if (!strncmp(tok, "none", strlen(arg))) {
callchain_param.mode = CHAIN_NONE;
symbol_conf.use_callchain = true;
symbol_conf.use_callchain = false;

return 0;
}
Expand Down

0 comments on commit b7ae11b

Please sign in to comment.