git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e750a8
)
perf stat: Micro-optimize the code: memcpy is only required if no event is selected...
author
Jaswinder Singh Rajput
<jaswinder@kernel.org>
Sat, 27 Jun 2009 18:19:09 +0000
(23:49 +0530)
committer
Ingo Molnar
<mingo@elte.hu>
Sun, 28 Jun 2009 13:22:47 +0000
(15:22 +0200)
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>
tools/perf/builtin-stat.c
patch
|
blob
|
history
diff --cc
tools/perf/builtin-stat.c
Simple merge