Commit f3a60646 authored by Jin Yao's avatar Jin Yao Committed by Arnaldo Carvalho de Melo

perf report: Introduce --inline option

It takes some time to look for inline stack for callgraph addresses.  So
it provides new option "--inline" to let user decide if enable this
feature.

  --inline:

  If a callgraph address belongs to an inlined function, the inline stack
  will be printed. Each entry is the inline function name or file/line.
Signed-off-by: default avatarYao Jin <yao.jin@linux.intel.com>
Tested-by: default avatarMilian Wolff <milian.wolff@kdab.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/1490474069-15823-4-git-send-email-yao.jin@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent a64489c5
...@@ -430,6 +430,10 @@ include::itrace.txt[] ...@@ -430,6 +430,10 @@ include::itrace.txt[]
--hierarchy:: --hierarchy::
Enable hierarchical output. Enable hierarchical output.
--inline::
If a callgraph address belongs to an inlined function, the inline stack
will be printed. Each entry is function name or file/line.
include::callchain-overhead-calculation.txt[] include::callchain-overhead-calculation.txt[]
SEE ALSO SEE ALSO
......
...@@ -845,6 +845,8 @@ int cmd_report(int argc, const char **argv) ...@@ -845,6 +845,8 @@ int cmd_report(int argc, const char **argv)
stdio__config_color, "always"), stdio__config_color, "always"),
OPT_STRING(0, "time", &report.time_str, "str", OPT_STRING(0, "time", &report.time_str, "str",
"Time span of interest (start,stop)"), "Time span of interest (start,stop)"),
OPT_BOOLEAN(0, "inline", &symbol_conf.inline_name,
"Show inline function"),
OPT_END() OPT_END()
}; };
struct perf_data_file file = { struct perf_data_file file = {
......
...@@ -118,7 +118,8 @@ struct symbol_conf { ...@@ -118,7 +118,8 @@ struct symbol_conf {
show_ref_callgraph, show_ref_callgraph,
hide_unresolved, hide_unresolved,
raw_trace, raw_trace,
report_hierarchy; report_hierarchy,
inline_name;
const char *vmlinux_name, const char *vmlinux_name,
*kallsyms_name, *kallsyms_name,
*source_prefix, *source_prefix,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment