diff options
author | Andi Kleen <ak@linux.intel.com> | 2013-09-20 10:40:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-04 04:06:12 -0400 |
commit | 475eeab9f3c1579c8da89667496084db4867bf7c (patch) | |
tree | cacc059c63a8091d69f2cd024dba7c74a6b0d1d8 /tools/perf/builtin-diff.c | |
parent | 0126d493b62e1306db09e1019c05e0bfe84ae8e7 (diff) |
tools/perf: Add support for record transaction flags
Add support for recording and displaying the transaction flags.
They are essentially a new sort key. Also display them
in a nice way to the user.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1379688044-14173-6-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index f28799e94f2a..2a78dc806c39 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -304,9 +304,10 @@ static int formula_fprintf(struct hist_entry *he, struct hist_entry *pair, | |||
304 | 304 | ||
305 | static int hists__add_entry(struct hists *self, | 305 | static int hists__add_entry(struct hists *self, |
306 | struct addr_location *al, u64 period, | 306 | struct addr_location *al, u64 period, |
307 | u64 weight) | 307 | u64 weight, u64 transaction) |
308 | { | 308 | { |
309 | if (__hists__add_entry(self, al, NULL, period, weight) != NULL) | 309 | if (__hists__add_entry(self, al, NULL, period, weight, transaction) |
310 | != NULL) | ||
310 | return 0; | 311 | return 0; |
311 | return -ENOMEM; | 312 | return -ENOMEM; |
312 | } | 313 | } |
@@ -328,7 +329,8 @@ static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, | |||
328 | if (al.filtered) | 329 | if (al.filtered) |
329 | return 0; | 330 | return 0; |
330 | 331 | ||
331 | if (hists__add_entry(&evsel->hists, &al, sample->period, sample->weight)) { | 332 | if (hists__add_entry(&evsel->hists, &al, sample->period, |
333 | sample->weight, sample->transaction)) { | ||
332 | pr_warning("problem incrementing symbol period, skipping event\n"); | 334 | pr_warning("problem incrementing symbol period, skipping event\n"); |
333 | return -1; | 335 | return -1; |
334 | } | 336 | } |