aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2013-09-20 10:40:43 -0400
committerIngo Molnar <mingo@kernel.org>2013-10-04 04:06:12 -0400
commit475eeab9f3c1579c8da89667496084db4867bf7c (patch)
treecacc059c63a8091d69f2cd024dba7c74a6b0d1d8 /tools/perf/builtin-report.c
parent0126d493b62e1306db09e1019c05e0bfe84ae8e7 (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-report.c')
-rw-r--r--tools/perf/builtin-report.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 89b188d64ea9..06e1abe351dd 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -259,7 +259,7 @@ static int perf_evsel__add_hist_entry(struct perf_evsel *evsel,
259 } 259 }
260 260
261 he = __hists__add_entry(&evsel->hists, al, parent, sample->period, 261 he = __hists__add_entry(&evsel->hists, al, parent, sample->period,
262 sample->weight); 262 sample->weight, sample->transaction);
263 if (he == NULL) 263 if (he == NULL)
264 return -ENOMEM; 264 return -ENOMEM;
265 265
@@ -787,7 +787,7 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused)
787 "sort by key(s): pid, comm, dso, symbol, parent, cpu, srcline," 787 "sort by key(s): pid, comm, dso, symbol, parent, cpu, srcline,"
788 " dso_to, dso_from, symbol_to, symbol_from, mispredict," 788 " dso_to, dso_from, symbol_to, symbol_from, mispredict,"
789 " weight, local_weight, mem, symbol_daddr, dso_daddr, tlb, " 789 " weight, local_weight, mem, symbol_daddr, dso_daddr, tlb, "
790 "snoop, locked, abort, in_tx"), 790 "snoop, locked, abort, in_tx, transaction"),
791 OPT_BOOLEAN(0, "showcpuutilization", &symbol_conf.show_cpu_utilization, 791 OPT_BOOLEAN(0, "showcpuutilization", &symbol_conf.show_cpu_utilization,
792 "Show sample percentage for different cpu modes"), 792 "Show sample percentage for different cpu modes"),
793 OPT_STRING('p', "parent", &parent_pattern, "regex", 793 OPT_STRING('p', "parent", &parent_pattern, "regex",