commit | f29ac756a40d0f1bb07d682ea521e7b666ff06d5 | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | Fri Jun 19 18:27:26 2009 +0200 |
committer | Ingo Molnar <mingo@elte.hu> | Tue Jun 23 11:42:44 2009 +0200 |
tree | 6fabe2f38ae10f824e57fdd5b035ba81b75a71a8 | |
parent | 3d906ef10a539ff336010afab8f6f9c4fe379695 [diff] |
perf_counter: Optimize perf_swcounter_event() Similar to tracepoints, use an enable variable to reduce overhead when unused. Only look for a counter of a particular event type when we know there is at least one in the system. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>