Messages in this thread Patch in this message | | | Date | Mon, 19 Oct 2009 12:03:33 +0200 | From | Tim Blechmann <> | Subject | [PATCH] perf stat: add branch performance counters to default |
| |
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@klingt.org> --- 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 }, }; [unhandled content-type:application/pgp-signature] | |