On Fri, Oct 31, 2014 at 05:06:12AM -0700, kan.li...@intel.com wrote:

SNIP

>     99.82%        1.005478  tchain_edit        [.] f3
> 
> Signed-off-by: Kan Liang <kan.li...@intel.com>
> ---
>  tools/perf/builtin-diff.c |  5 ++++-
>  tools/perf/util/sort.c    | 26 ++++++++++++++++++++++++++
>  tools/perf/util/sort.h    |  3 +++
>  3 files changed, 33 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c
> index 25114c9..71183c1 100644
> --- a/tools/perf/builtin-diff.c
> +++ b/tools/perf/builtin-diff.c
> @@ -743,7 +743,7 @@ static const struct option options[] = {
>       OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, 
> "symbol[,symbol...]",
>                  "only consider these symbols"),
>       OPT_STRING('s', "sort", &sort_order, "key[,key2...]",
> -                "sort by key(s): pid, comm, dso, symbol, parent, cpu, 
> srcline, ..."
> +                "sort by key(s): pid, comm, dso, symbol, symbol_name, 
> parent, cpu, srcline, ..."
>                  " Please refer the man page for the complete list."),
>       OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator",
>                  "separator for columns, no spaces will be added between "
> @@ -1164,6 +1164,9 @@ int cmd_diff(int argc, const char **argv, const char 
> *prefix __maybe_unused)
>       if (setup_sorting() < 0)
>               usage_with_options(diff_usage, options);
>  
> +     if (sort__has_sym_name)
> +             tool.mmap2 = perf_event__process_mmap2;

why is the mmap2 callback set only for sort__has_sym_name?
Shouldn't we use/define it directly in the tool's definition?

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to