diff options
author | Eric B Munson <ebmunson@us.ibm.com> | 2010-03-05 15:51:06 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-10 12:53:47 (GMT) |
commit | d403d0acc9c5afa679a3f61e71489530d7fa0606 (patch) | |
tree | 6f281b520792a11b2f4f9fffea90b978c6a12f11 /tools/perf/util/hist.h | |
parent | 8907fd607b66e36636469a2de9833db643869db8 (diff) | |
download | linux-fsl-qoriq-d403d0acc9c5afa679a3f61e71489530d7fa0606.tar.xz |
perf session: Change add_hist_entry to take the tree root instead of session
In order to minimize the impact of storing multiple events in a
report this function will now take the root of the histogram
tree so that the logic for selecting the proper tree can be
inserted before the call.
Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1267804269-22660-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index e5f99b2..7b48590 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -10,8 +10,9 @@ struct perf_session; struct hist_entry; struct addr_location; struct symbol; +struct rb_root; -struct hist_entry *__perf_session__add_hist_entry(struct perf_session *self, +struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists, struct addr_location *al, struct symbol *parent, u64 count, bool *hit); |