diff options
Diffstat (limited to 'tools/perf/tests/attr/test-stat-default')
-rw-r--r-- | tools/perf/tests/attr/test-stat-default | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tools/perf/tests/attr/test-stat-default b/tools/perf/tests/attr/test-stat-default new file mode 100644 index 000000000000..19270f54c96e --- /dev/null +++ b/tools/perf/tests/attr/test-stat-default | |||
@@ -0,0 +1,64 @@ | |||
1 | [config] | ||
2 | command = stat | ||
3 | args = kill >/dev/null 2>&1 | ||
4 | ret = 1 | ||
5 | |||
6 | # PERF_TYPE_SOFTWARE / PERF_COUNT_SW_TASK_CLOCK | ||
7 | [event1:base-stat] | ||
8 | fd=1 | ||
9 | type=1 | ||
10 | config=1 | ||
11 | |||
12 | # PERF_TYPE_SOFTWARE / PERF_COUNT_SW_CONTEXT_SWITCHES | ||
13 | [event2:base-stat] | ||
14 | fd=2 | ||
15 | type=1 | ||
16 | config=3 | ||
17 | |||
18 | # PERF_TYPE_SOFTWARE / PERF_COUNT_SW_CPU_MIGRATIONS | ||
19 | [event3:base-stat] | ||
20 | fd=3 | ||
21 | type=1 | ||
22 | config=4 | ||
23 | |||
24 | # PERF_TYPE_SOFTWARE / PERF_COUNT_SW_PAGE_FAULTS | ||
25 | [event4:base-stat] | ||
26 | fd=4 | ||
27 | type=1 | ||
28 | config=2 | ||
29 | |||
30 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_CPU_CYCLES | ||
31 | [event5:base-stat] | ||
32 | fd=5 | ||
33 | type=0 | ||
34 | config=0 | ||
35 | |||
36 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_STALLED_CYCLES_FRONTEND | ||
37 | [event6:base-stat] | ||
38 | fd=6 | ||
39 | type=0 | ||
40 | config=7 | ||
41 | |||
42 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_STALLED_CYCLES_BACKEND | ||
43 | [event7:base-stat] | ||
44 | fd=7 | ||
45 | type=0 | ||
46 | config=8 | ||
47 | |||
48 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_INSTRUCTIONS | ||
49 | [event8:base-stat] | ||
50 | fd=8 | ||
51 | type=0 | ||
52 | config=1 | ||
53 | |||
54 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_BRANCH_INSTRUCTIONS | ||
55 | [event9:base-stat] | ||
56 | fd=9 | ||
57 | type=0 | ||
58 | config=4 | ||
59 | |||
60 | # PERF_TYPE_HARDWARE / PERF_COUNT_HW_BRANCH_MISSES | ||
61 | [event10:base-stat] | ||
62 | fd=10 | ||
63 | type=0 | ||
64 | config=5 | ||