diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-05-15 02:39:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-05-15 02:39:09 -0400 |
commit | 7ebaa2838a751125c113072486334d7b4e63f9ad (patch) | |
tree | b0081ab2236cc11f21e27e32d0fc221a467292f0 /tools/perf/builtin-diff.c | |
parent | 1ff3d7d79204612ebe2e611d2592f8898908ca00 (diff) | |
parent | 3e1bbdc3a721f4b1ed44f4554402a8dbc60fa97f (diff) |
Merge branch 'perf' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/core
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 3a95a0260a5b..a6e2fdc7a04e 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -23,9 +23,9 @@ static bool force; | |||
23 | static bool show_displacement; | 23 | static bool show_displacement; |
24 | 24 | ||
25 | static int hists__add_entry(struct hists *self, | 25 | static int hists__add_entry(struct hists *self, |
26 | struct addr_location *al, u64 count) | 26 | struct addr_location *al, u64 period) |
27 | { | 27 | { |
28 | if (__hists__add_entry(self, al, NULL, count) != NULL) | 28 | if (__hists__add_entry(self, al, NULL, period) != NULL) |
29 | return 0; | 29 | return 0; |
30 | return -ENOMEM; | 30 | return -ENOMEM; |
31 | } | 31 | } |
@@ -50,11 +50,11 @@ static int diff__process_sample_event(event_t *event, struct perf_session *sessi | |||
50 | event__parse_sample(event, session->sample_type, &data); | 50 | event__parse_sample(event, session->sample_type, &data); |
51 | 51 | ||
52 | if (hists__add_entry(&session->hists, &al, data.period)) { | 52 | if (hists__add_entry(&session->hists, &al, data.period)) { |
53 | pr_warning("problem incrementing symbol count, skipping event\n"); | 53 | pr_warning("problem incrementing symbol period, skipping event\n"); |
54 | return -1; | 54 | return -1; |
55 | } | 55 | } |
56 | 56 | ||
57 | session->hists.stats.total += data.period; | 57 | session->hists.stats.total_period += data.period; |
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||