Re: [PATCH] perf report/top: Add a tip about source line matching

From: Jiri Olsa
Date: Mon Nov 20 2017 - 02:45:49 EST


On Sat, Nov 18, 2017 at 04:01:19PM +0900, Hyeim Yang wrote:
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> Cc: Taeung Song <taeung@xxxxxxxxxx>
> ---
> tools/perf/Documentation/tips.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/perf/Documentation/tips.txt b/tools/perf/Documentation/tips.txt
> index db0ca30..b60616a 100644
> --- a/tools/perf/Documentation/tips.txt
> +++ b/tools/perf/Documentation/tips.txt
> @@ -32,3 +32,4 @@ Order by the overhead of source file name and line number: perf report -s srclin
> System-wide collection from all CPUs: perf record -a
> Show current config key-value pairs: perf config --list
> Show user configuration overrides: perf config --user --list
> +Print matching source lines (may be slow): perf annotate --print-line <symbol>

this works only in stdio, so we need to add --stdio option as well

jirka