-
- Downloads
perf_counter: Separate out attr->type from attr->config
Counter type is a frequently used value and we do a lot of
bit juggling by encoding and decoding it from attr->config.
Clean this up by creating a separate attr->type field.
Also clean up the various similarly complex user-space bits
all around counter attribute management.
The net improvement is significant, and it will be easier
to add a new major type (which is what triggered this cleanup).
(This changes the ABI, all tools are adapted.)
(PowerPC build-tested.)
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- Documentation/perf_counter/builtin-record.c 47 additions, 58 deletionsDocumentation/perf_counter/builtin-record.c
- Documentation/perf_counter/builtin-stat.c 32 additions, 44 deletionsDocumentation/perf_counter/builtin-stat.c
- Documentation/perf_counter/builtin-top.c 23 additions, 44 deletionsDocumentation/perf_counter/builtin-top.c
- Documentation/perf_counter/perf.h 0 additions, 2 deletionsDocumentation/perf_counter/perf.h
- Documentation/perf_counter/util/parse-events.c 66 additions, 54 deletionsDocumentation/perf_counter/util/parse-events.c
- Documentation/perf_counter/util/parse-events.h 2 additions, 5 deletionsDocumentation/perf_counter/util/parse-events.h
- arch/powerpc/kernel/perf_counter.c 3 additions, 3 deletionsarch/powerpc/kernel/perf_counter.c
- arch/x86/kernel/cpu/perf_counter.c 4 additions, 4 deletionsarch/x86/kernel/cpu/perf_counter.c
- include/linux/perf_counter.h 13 additions, 52 deletionsinclude/linux/perf_counter.h
- kernel/perf_counter.c 6 additions, 8 deletionskernel/perf_counter.c
Loading
Please register or sign in to comment