hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/perf/tests/tests.h
....@@ -34,6 +34,7 @@
3434 bool skip_if_fail;
3535 int (*get_nr)(void);
3636 const char *(*get_desc)(int subtest);
37
+ const char *(*skip_reason)(int subtest);
3738 } subtest;
3839 bool (*is_supported)(void);
3940 void *priv;
....@@ -49,6 +50,10 @@
4950 int test__perf_evsel__tp_sched_test(struct test *test, int subtest);
5051 int test__syscall_openat_tp_fields(struct test *test, int subtest);
5152 int test__pmu(struct test *test, int subtest);
53
+int test__pmu_events(struct test *test, int subtest);
54
+const char *test__pmu_events_subtest_get_desc(int subtest);
55
+const char *test__pmu_events_subtest_skip_reason(int subtest);
56
+int test__pmu_events_subtest_get_nr(void);
5257 int test__attr(struct test *test, int subtest);
5358 int test__dso_data(struct test *test, int subtest);
5459 int test__dso_data_cache(struct test *test, int subtest);
....@@ -59,6 +64,9 @@
5964 int test__bp_signal(struct test *test, int subtest);
6065 int test__bp_signal_overflow(struct test *test, int subtest);
6166 int test__bp_accounting(struct test *test, int subtest);
67
+int test__wp(struct test *test, int subtest);
68
+const char *test__wp_subtest_get_desc(int subtest);
69
+int test__wp_subtest_get_nr(void);
6270 int test__task_exit(struct test *test, int subtest);
6371 int test__mem(struct test *test, int subtest);
6472 int test__sw_clock_freq(struct test *test, int subtest);
....@@ -70,7 +78,7 @@
7078 int test__expr(struct test *test, int subtest);
7179 int test__hists_filter(struct test *test, int subtest);
7280 int test__mmap_thread_lookup(struct test *test, int subtest);
73
-int test__thread_mg_share(struct test *test, int subtest);
81
+int test__thread_maps_share(struct test *test, int subtest);
7482 int test__hists_output(struct test *test, int subtest);
7583 int test__hists_cumulate(struct test *test, int subtest);
7684 int test__switch_tracking(struct test *test, int subtest);
....@@ -95,6 +103,7 @@
95103 int test__event_times(struct test *test, int subtest);
96104 int test__backward_ring_buffer(struct test *test, int subtest);
97105 int test__cpu_map_print(struct test *test, int subtest);
106
+int test__cpu_map_merge(struct test *test, int subtest);
98107 int test__sdt_event(struct test *test, int subtest);
99108 int test__is_printable_array(struct test *test, int subtest);
100109 int test__bitmap_print(struct test *test, int subtest);
....@@ -104,8 +113,21 @@
104113 int test__clang_subtest_get_nr(void);
105114 int test__unit_number__scnprint(struct test *test, int subtest);
106115 int test__mem2node(struct test *t, int subtest);
116
+int test__maps__merge_in(struct test *t, int subtest);
117
+int test__time_utils(struct test *t, int subtest);
118
+int test__jit_write_elf(struct test *test, int subtest);
119
+int test__api_io(struct test *test, int subtest);
120
+int test__demangle_java(struct test *test, int subtest);
121
+int test__pfm(struct test *test, int subtest);
122
+const char *test__pfm_subtest_get_desc(int subtest);
123
+int test__pfm_subtest_get_nr(void);
124
+int test__parse_metric(struct test *test, int subtest);
125
+int test__pe_file_parsing(struct test *test, int subtest);
126
+int test__expand_cgroup_events(struct test *test, int subtest);
107127
108128 bool test__bp_signal_is_supported(void);
129
+bool test__bp_account_is_supported(void);
130
+bool test__wp_is_supported(void);
109131
110132 #if defined(__arm__) || defined(__aarch64__)
111133 #ifdef HAVE_DWARF_UNWIND_SUPPORT
....@@ -115,4 +137,9 @@
115137 struct thread *thread);
116138 #endif
117139 #endif
140
+
141
+#if defined(__arm__)
142
+int test__vectors_page(struct test *test, int subtest);
143
+#endif
144
+
118145 #endif /* TESTS_H */