diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-10-31 10:52:47 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-31 14:20:58 -0400 |
commit | 52502bf201a85b5b51a384037a002d0b39093df0 (patch) | |
tree | c4d2bcbc4c1f7c10693b132ad70951c06c2cee86 /tools/perf/Makefile | |
parent | 945aea220bb8f4bb37950549cc0b93bbec24c460 (diff) |
perf tests: Add framework for automated perf_event_attr tests
The idea is run perf session with kidnapping sys_perf_event_open
function. For each sys_perf_event_open call we store the perf_event_attr
data to the file to be checked later against what we expect.
You can run this by:
$ python ./tests/attr.py -d ./tests/attr/ -p ./perf -v
v2 changes:
- preserve errno value in the hook
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20121031145247.GB1027@krava.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 2d3427f65b53..1da87a30c73a 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -430,6 +430,7 @@ LIB_OBJS += $(OUTPUT)arch/common.o | |||
430 | 430 | ||
431 | LIB_OBJS += $(OUTPUT)tests/parse-events.o | 431 | LIB_OBJS += $(OUTPUT)tests/parse-events.o |
432 | LIB_OBJS += $(OUTPUT)tests/dso-data.o | 432 | LIB_OBJS += $(OUTPUT)tests/dso-data.o |
433 | LIB_OBJS += $(OUTPUT)tests/attr.o | ||
433 | 434 | ||
434 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o | 435 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o |
435 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o | 436 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o |