diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-10-30 18:01:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-01 16:00:31 -0400 |
commit | bf779746f928de99eba84de0a72a5bbfa87ca680 (patch) | |
tree | 14861d59e3eaa720f90bdb499202b39ad29848d4 | |
parent | 52502bf201a85b5b51a384037a002d0b39093df0 (diff) |
perf tests: Add attr record basic test
Adding test to validate perf_event_attr data for command:
'record'
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
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/1351634526-1516-5-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/tests/attr/base-record | 40 | ||||
-rw-r--r-- | tools/perf/tests/attr/test-record-basic | 5 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tools/perf/tests/attr/base-record b/tools/perf/tests/attr/base-record new file mode 100644 index 000000000000..07beef578550 --- /dev/null +++ b/tools/perf/tests/attr/base-record | |||
@@ -0,0 +1,40 @@ | |||
1 | [event] | ||
2 | fd=1 | ||
3 | group_fd=-1 | ||
4 | flags=0 | ||
5 | type=0|1 | ||
6 | size=96 | ||
7 | config=0 | ||
8 | sample_period=4000 | ||
9 | sample_type=263 | ||
10 | read_format=7 | ||
11 | disabled=1 | ||
12 | inherit=1 | ||
13 | pinned=0 | ||
14 | exclusive=0 | ||
15 | exclude_user=0 | ||
16 | exclude_kernel=0 | ||
17 | exclude_hv=0 | ||
18 | exclude_idle=0 | ||
19 | mmap=1 | ||
20 | comm=1 | ||
21 | freq=1 | ||
22 | inherit_stat=0 | ||
23 | enable_on_exec=1 | ||
24 | task=0 | ||
25 | watermask=0 | ||
26 | precise_ip=0 | ||
27 | mmap_data=0 | ||
28 | sample_id_all=1 | ||
29 | exclude_host=0 | ||
30 | exclude_guest=1 | ||
31 | exclude_callchain_kernel=0 | ||
32 | exclude_callchain_user=0 | ||
33 | wakeup_events=0 | ||
34 | bp_type=0 | ||
35 | config1=0 | ||
36 | config2=0 | ||
37 | branch_sample_type=0 | ||
38 | sample_regs_user=0 | ||
39 | sample_stack_user=0 | ||
40 | optional=0 | ||
diff --git a/tools/perf/tests/attr/test-record-basic b/tools/perf/tests/attr/test-record-basic new file mode 100644 index 000000000000..55c0428370ca --- /dev/null +++ b/tools/perf/tests/attr/test-record-basic | |||
@@ -0,0 +1,5 @@ | |||
1 | [config] | ||
2 | command = record | ||
3 | args = kill >/dev/null 2>&1 | ||
4 | |||
5 | [event:base-record] | ||