lkml.org 
[lkml]   [2017]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v6 3/5] perf report: Introduce --inline option
    Date
    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: Yao Jin <yao.jin@linux.intel.com>
    Tested-by: Milian 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/1489700547-7260-2-git-send-email-yao.jin@linux.intel.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    tools/perf/Documentation/perf-report.txt | 4 ++++
    tools/perf/builtin-report.c | 2 ++
    tools/perf/util/symbol.h | 3 ++-
    3 files changed, 8 insertions(+), 1 deletion(-)

    diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt
    index e9a61f5..248bba4 100644
    --- a/tools/perf/Documentation/perf-report.txt
    +++ b/tools/perf/Documentation/perf-report.txt
    @@ -430,6 +430,10 @@ include::itrace.txt[]
    --hierarchy::
    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[]

    SEE ALSO
    diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
    index 5ab8117..26bc169 100644
    --- a/tools/perf/builtin-report.c
    +++ b/tools/perf/builtin-report.c
    @@ -845,6 +845,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused)
    stdio__config_color, "always"),
    OPT_STRING(0, "time", &report.time_str, "str",
    "Time span of interest (start,stop)"),
    + OPT_BOOLEAN(0, "inline", &symbol_conf.inline_name,
    + "Show inline function"),
    OPT_END()
    };
    struct perf_data_file file = {
    diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
    index e36213c..5245d2f 100644
    --- a/tools/perf/util/symbol.h
    +++ b/tools/perf/util/symbol.h
    @@ -118,7 +118,8 @@ struct symbol_conf {
    show_ref_callgraph,
    hide_unresolved,
    raw_trace,
    - report_hierarchy;
    + report_hierarchy,
    + inline_name;
    const char *vmlinux_name,
    *kallsyms_name,
    *source_prefix,
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-03-25 13:38    [W:2.583 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site