kernel-ark/tools/perf
Jaswinder Singh Rajput c3043569dc perf stat: Micro-optimize the code: memcpy is only required if no event is selected and !null_run
Set attrs and nr_counters if no event is selected and !null_run.

Setting of attrs should depend on number of counters,
so we need to memcpy only for sizeof(default_attrs)

Also set nr_counters as ARRAY_SIZE(default_attrs) in place of
hardcoded value.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1246126749.32198.16.camel@hpdv5.satnam>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-06-28 15:22:47 +02:00
..
Documentation perf report: Fix help text typo 2009-06-23 16:39:53 +02:00
util perf_counter tools: Remove dead code 2009-06-27 06:06:39 +02:00
.gitignore
builtin-annotate.c perf_counter: Rework the sample ABI 2009-06-25 21:39:08 +02:00
builtin-help.c
builtin-list.c
builtin-record.c perf record: Fix unhandled io return value 2009-06-25 22:25:55 +02:00
builtin-report.c perf report: Print sorted callchains per histogram entries 2009-06-26 16:47:01 +02:00
builtin-stat.c perf stat: Micro-optimize the code: memcpy is only required if no event is selected and !null_run 2009-06-28 15:22:47 +02:00
builtin-top.c perf_counter: Rework the sample ABI 2009-06-25 21:39:08 +02:00
builtin.h
command-list.txt
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf_counter: Start documenting HAVE_PERF_COUNTERS requirements 2009-06-12 19:37:30 +02:00
Makefile perf_counter tools: Prepare a small callchain framework 2009-06-26 16:47:00 +02:00
perf.c
perf.h perf_counter tools: Prepare a small callchain framework 2009-06-26 16:47:00 +02:00