aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/moduleparam.h
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinder@kernel.org>2009-06-27 23:49:09 +0530
committerIngo Molnar <mingo@elte.hu>2009-06-28 15:22:47 +0200
commitc3043569dc8fbe9228b76174f15d1a7152c48a20 (patch)
treec8a54134d28114665ef1a8ea5d9e6a12bedbef98 /include/linux/moduleparam.h
parentperf stat: Improve output (diff)
downloadwireguard-linux-c3043569dc8fbe9228b76174f15d1a7152c48a20.tar.xz
wireguard-linux-c3043569dc8fbe9228b76174f15d1a7152c48a20.zip
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>
Diffstat (limited to 'include/linux/moduleparam.h')
0 files changed, 0 insertions, 0 deletions