perf tools: Introduce event selectors
Out of ad-hoc code and global arrays with hard coded sizes.
This is the first step on having a library that will be first
used on regression tests in the 'perf test' tool.
[acme@felicio linux]$ size /tmp/perf.before
text data bss dec hex filename
1273776 97384 5104416 6475576 62cf38 /tmp/perf.before
[acme@felicio linux]$ size /tmp/perf.new
text data bss dec hex filename
1275422 97416 1392416 2765254 2a31c6 /tmp/perf.new
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Makefile 4 additions, 0 deletionstools/perf/Makefile
- tools/perf/builtin-record.c 54 additions, 59 deletionstools/perf/builtin-record.c
- tools/perf/builtin-stat.c 107 additions, 68 deletionstools/perf/builtin-stat.c
- tools/perf/builtin-top.c 104 additions, 72 deletionstools/perf/builtin-top.c
- tools/perf/util/evsel.c 35 additions, 0 deletionstools/perf/util/evsel.c
- tools/perf/util/evsel.h 24 additions, 0 deletionstools/perf/util/evsel.h
- tools/perf/util/header.c 4 additions, 5 deletionstools/perf/util/header.c
- tools/perf/util/header.h 1 addition, 2 deletionstools/perf/util/header.h
- tools/perf/util/parse-events.c 31 additions, 16 deletionstools/perf/util/parse-events.c
- tools/perf/util/parse-events.h 11 additions, 6 deletionstools/perf/util/parse-events.h
- tools/perf/util/trace-event-info.c 16 additions, 14 deletionstools/perf/util/trace-event-info.c
- tools/perf/util/trace-event.h 2 additions, 3 deletionstools/perf/util/trace-event.h
- tools/perf/util/xyarray.c 20 additions, 0 deletionstools/perf/util/xyarray.c
- tools/perf/util/xyarray.h 20 additions, 0 deletionstools/perf/util/xyarray.h
tools/perf/util/evsel.c
0 → 100644
tools/perf/util/evsel.h
0 → 100644
tools/perf/util/xyarray.c
0 → 100644
tools/perf/util/xyarray.h
0 → 100644
Please register or sign in to comment