[PATCH] perf stat: add branch performance counters to default
From: Tim Blechmann
Date: Mon Oct 19 2009 - 06:03:52 EST
not sure, whether there is any reason, why the branch performance
counters are not enabled by default.
personally, i would find it quite useful, though
--
this patch adds performance counter information about branches and
branch misses to the default output of perf stat.
Signed-off-by: Tim Blechmann <tim@xxxxxxxxxx>
---
tools/perf/builtin-stat.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index e874ad4..671bfaa 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -57,6 +57,8 @@ static struct perf_counter_attr default_attrs[] = {
{ .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_INSTRUCTIONS },
{ .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_CACHE_REFERENCES},
{ .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_CACHE_MISSES },
+ { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS},
+ { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_BRANCH_MISSES },
};
Attachment:
signature.asc
Description: OpenPGP digital signature