浏览代码

perf report: In branch stack mode use address history sorting

Enable CCKEY_ADDRESS address history sorting with --branch-history.
This makes get_srcline display the source lines correctly, otherwise all
history entries for a function a hunked into one.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1416275935-20971-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Andi Kleen 10 年之前
父节点
当前提交
09a6a1b07e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tools/perf/builtin-report.c

+ 1 - 0
tools/perf/builtin-report.c

@@ -761,6 +761,7 @@ repeat:
 		symbol_conf.cumulate_callchain = false;
 		symbol_conf.cumulate_callchain = false;
 	}
 	}
 	if (branch_call_mode) {
 	if (branch_call_mode) {
+		callchain_param.key = CCKEY_ADDRESS;
 		callchain_param.branch_callstack = 1;
 		callchain_param.branch_callstack = 1;
 		symbol_conf.use_callchain = true;
 		symbol_conf.use_callchain = true;
 		callchain_register_param(&callchain_param);
 		callchain_register_param(&callchain_param);