]> git.baikalelectronics.ru Git - kernel.git/commit
perf diff: Fix to work with new hists design
authorJiri Olsa <jolsa@redhat.com>
Thu, 22 Mar 2012 13:37:26 +0000 (14:37 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Mar 2012 18:12:09 +0000 (15:12 -0300)
commit81b18b724a9ffe7f049f0f20e36277e99aa108d2
tree6405f45496261cbc233d8b4c1870bb05c647d966
parent7be8a30366eecc6c6dad66ce33ac25b4c5d34f0f
perf diff: Fix to work with new hists design

The perf diff command is broken since:
  perf hists: Threaded addition and sorting of entries
  commit 91f6761d7cf5ed61c2810a7b38d03e3049a2b147

Several places were broken:
  - hists data need to be collected into opened sessions instead
    of into events
  - session's hists data need to be initialized properly when the
    session is created
  - hist_entry__pcnt_snprintf: the percentage and displacement
    buffer preparation must not use 'ret' because it's used
    as a pointer to the final buffer

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120322133726.GB1601@m.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-diff.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/hist.c
tools/perf/util/session.c