summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/sort.h
diff options
context:
space:
mode:
authorAndi Kleen2013-09-20 16:40:43 +0200
committerIngo Molnar2013-10-04 10:06:12 +0200
commit475eeab9f3c1579c8da89667496084db4867bf7c (patch)
treecacc059c63a8091d69f2cd024dba7c74a6b0d1d8 /tools/perf/util/sort.h
parenttools/perf/record: Add abort_tx,no_tx,in_tx branch filter options to perf rec... (diff)
downloadkernel-qcow2-linux-475eeab9f3c1579c8da89667496084db4867bf7c.tar.gz
kernel-qcow2-linux-475eeab9f3c1579c8da89667496084db4867bf7c.tar.xz
kernel-qcow2-linux-475eeab9f3c1579c8da89667496084db4867bf7c.zip
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/util/sort.h')
-rw-r--r--tools/perf/util/sort.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
index 9dad3a0440dc..bf4333694d3a 100644
--- a/tools/perf/util/sort.h
+++ b/tools/perf/util/sort.h
@@ -85,6 +85,7 @@ struct hist_entry {
struct map_symbol ms;
struct thread *thread;
u64 ip;
+ u64 transaction;
s32 cpu;
struct hist_entry_diff diff;
@@ -145,6 +146,7 @@ enum sort_type {
SORT_SRCLINE,
SORT_LOCAL_WEIGHT,
SORT_GLOBAL_WEIGHT,
+ SORT_TRANSACTION,
/* branch stack specific sort keys */
__SORT_BRANCH_STACK,