diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
| -rw-r--r-- | tools/perf/builtin-report.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 2cfc4b93991f..140a6cd88351 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -257,6 +257,13 @@ static int report__setup_sample_type(struct report *rep)  		}  	} +	if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) { +		if ((sample_type & PERF_SAMPLE_REGS_USER) && +		    (sample_type & PERF_SAMPLE_STACK_USER)) +			callchain_param.record_mode = CALLCHAIN_DWARF; +		else +			callchain_param.record_mode = CALLCHAIN_FP; +	}  	return 0;  } | 
