diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-12-18 00:21:11 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-18 12:44:05 -0500 |
commit | f1cbf78d175e6202a29f53a7f915520e40a37baf (patch) | |
tree | d0588f5469f07dd0f39ed1a1dd9b06b18281bb45 | |
parent | 68f6d0224b2a19a4da4a12a5081f01776e5150df (diff) |
perf hists: Do not pass period and weight to add_hist_entry()
The @entry argument already has the info so no need to pass them.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rodrigo Campos <rodrigo@sdfg.com.ar>
Link: http://lkml.kernel.org/r/1387344086-12744-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/hist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 822903eaa201..63234e37583c 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -342,15 +342,15 @@ static u8 symbol__parent_filter(const struct symbol *parent) | |||
342 | } | 342 | } |
343 | 343 | ||
344 | static struct hist_entry *add_hist_entry(struct hists *hists, | 344 | static struct hist_entry *add_hist_entry(struct hists *hists, |
345 | struct hist_entry *entry, | 345 | struct hist_entry *entry, |
346 | struct addr_location *al, | 346 | struct addr_location *al) |
347 | u64 period, | ||
348 | u64 weight) | ||
349 | { | 347 | { |
350 | struct rb_node **p; | 348 | struct rb_node **p; |
351 | struct rb_node *parent = NULL; | 349 | struct rb_node *parent = NULL; |
352 | struct hist_entry *he; | 350 | struct hist_entry *he; |
353 | int64_t cmp; | 351 | int64_t cmp; |
352 | u64 period = entry->stat.period; | ||
353 | u64 weight = entry->stat.weight; | ||
354 | 354 | ||
355 | p = &hists->entries_in->rb_node; | 355 | p = &hists->entries_in->rb_node; |
356 | 356 | ||
@@ -437,7 +437,7 @@ struct hist_entry *__hists__add_entry(struct hists *hists, | |||
437 | .transaction = transaction, | 437 | .transaction = transaction, |
438 | }; | 438 | }; |
439 | 439 | ||
440 | return add_hist_entry(hists, &entry, al, period, weight); | 440 | return add_hist_entry(hists, &entry, al); |
441 | } | 441 | } |
442 | 442 | ||
443 | int64_t | 443 | int64_t |