Home
last modified time | relevance | path

Searched refs:TEST_ASSERT_VAL (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.3-rc2/tools/perf/tests/
A Dparse-events.c72 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi()
109 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_name()
120 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_name_config()
126 TEST_ASSERT_VAL("wrong period", in test__checkevent_symbolic_name_config()
141 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_alias()
188 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_r()
203 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_w()
218 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_rw()
380 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_modifier()
394 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_x_modifier()
[all …]
A Dcpumap.c26 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__MASK); in process_event_mask()
32 TEST_ASSERT_VAL("wrong nr", data->mask32_data.nr == 1); in process_event_mask()
40 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20); in process_event_mask()
63 TEST_ASSERT_VAL("wrong nr", data->cpus_data.nr == 2); in process_event_cpus()
64 TEST_ASSERT_VAL("wrong cpu", data->cpus_data.cpu[0] == 1); in process_event_cpus()
65 TEST_ASSERT_VAL("wrong cpu", data->cpus_data.cpu[1] == 256); in process_event_cpus()
68 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 2); in process_event_cpus()
94 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 256); in process_event_range_cpus()
110 TEST_ASSERT_VAL("failed to synthesize map", in test__cpu_map_synthesize()
118 TEST_ASSERT_VAL("failed to synthesize map", in test__cpu_map_synthesize()
[all …]
A Dexpr.c20 TEST_ASSERT_VAL("ids__new", ids1); in test_ids_union()
22 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
29 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
39 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
47 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
130 TEST_ASSERT_VAL("find ids", in test__expr()
140 TEST_ASSERT_VAL("find ids", in test__expr()
148 TEST_ASSERT_VAL("find ids", in test__expr()
165 TEST_ASSERT_VAL("find ids", in test__expr()
174 TEST_ASSERT_VAL("find ids", in test__expr()
[all …]
A Dthread-map.c32 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map()
36 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
37 TEST_ASSERT_VAL("wrong pid", in test__thread_map()
39 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
42 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map()
52 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
54 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
57 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map()
79 TEST_ASSERT_VAL("wrong pid", in process_event()
81 TEST_ASSERT_VAL("wrong comm", in process_event()
[all …]
A Dhists_filter.c112 TEST_ASSERT_VAL("No memory", evlist); in test__hists_filter()
152 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
156 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
158 TEST_ASSERT_VAL("Unmatched nr samples", in test__hists_filter()
177 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
181 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
206 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
210 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
241 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
270 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
[all …]
A Dtopology.c42 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in session_write_header()
46 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
51 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
63 TEST_ASSERT_VAL("failed to write header", in session_write_header()
83 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in check_cpu_topology()
138 TEST_ASSERT_VAL("Cpu map - CPU ID doesn't match", in check_cpu_topology()
141 TEST_ASSERT_VAL("Cpu map - Core ID doesn't match", in check_cpu_topology()
147 TEST_ASSERT_VAL("Cpu map - Die ID doesn't match", in check_cpu_topology()
156 TEST_ASSERT_VAL("Core map - Core ID doesn't match", in check_cpu_topology()
163 TEST_ASSERT_VAL("Core map - Die ID doesn't match", in check_cpu_topology()
[all …]
A Devent_update.c22 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit()
24 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->unit, "KRAVA")); in process_event_unit()
35 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale()
37 TEST_ASSERT_VAL("wrong scale", ev->scale.scale == 0.123); in process_event_scale()
54 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name()
70 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_cpus()
86 TEST_ASSERT_VAL("failed to get evlist", evlist); in test__event_update()
90 TEST_ASSERT_VAL("failed to allocate ids", in test__event_update()
98 TEST_ASSERT_VAL("failed to synthesize attr update unit", in test__event_update()
108 TEST_ASSERT_VAL("failed to synthesize attr update name", in test__event_update()
[all …]
A Dstat.c37 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); in process_stat_config_event()
38 TEST_ASSERT_VAL("wrong interval", HAS(INTERVAL, 1)); in process_stat_config_event()
59 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat_config()
72 TEST_ASSERT_VAL("wrong cpu", st->cpu == 1); in process_stat_event()
73 TEST_ASSERT_VAL("wrong thread", st->thread == 2); in process_stat_event()
74 TEST_ASSERT_VAL("wrong id", st->id == 3); in process_stat_event()
75 TEST_ASSERT_VAL("wrong val", st->val == 100); in process_stat_event()
76 TEST_ASSERT_VAL("wrong run", st->ena == 200); in process_stat_event()
77 TEST_ASSERT_VAL("wrong ena", st->run == 300); in process_stat_event()
89 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat()
[all …]
A Dparse-metric.c150 TEST_ASSERT_VAL("failed to compute metric", in test_ipc()
153 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc()
169 TEST_ASSERT_VAL("failed to compute metric", in test_frontend()
187 TEST_ASSERT_VAL("failed to compute metric", in test_cache_miss_cycles()
230 TEST_ASSERT_VAL("failed to compute metric", in test_dcache_l2()
236 TEST_ASSERT_VAL("failed to compute metric", in test_dcache_l2()
253 TEST_ASSERT_VAL("failed to find recursion", in test_recursion_fail()
256 TEST_ASSERT_VAL("failed to find recursion", in test_recursion_fail()
270 TEST_ASSERT_VAL("failed to compute metric", in test_memory_bandwidth()
289 TEST_ASSERT_VAL("failed to find recursion", in test_metric_group()
[all …]
A Ddso-data.c123 TEST_ASSERT_VAL("No test file", file); in test__dso_data()
129 TEST_ASSERT_VAL("Failed to access to dso", in test__dso_data()
153 TEST_ASSERT_VAL("ENOMEM\n", buf); in test__dso_data()
161 TEST_ASSERT_VAL("Wrong size", in test__dso_data()
165 TEST_ASSERT_VAL("Wrong data", in test__dso_data()
268 TEST_ASSERT_VAL("failed to create dsos\n", in test__dso_data_cache()
296 TEST_ASSERT_VAL("failed to get fd", fd > 0); in test__dso_data_cache()
346 TEST_ASSERT_VAL("failed to set file limit", in test__dso_data_reopen()
353 TEST_ASSERT_VAL("failed to get fd", fd > 0); in test__dso_data_reopen()
357 TEST_ASSERT_VAL("failed to get fd", fd > 0); in test__dso_data_reopen()
[all …]
A Dmaps.c67 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in()
73 TEST_ASSERT_VAL("failed to create map", map); in test__maps__merge_in()
82 TEST_ASSERT_VAL("failed to create map", map_kcore1); in test__maps__merge_in()
85 TEST_ASSERT_VAL("failed to create map", map_kcore2); in test__maps__merge_in()
88 TEST_ASSERT_VAL("failed to create map", map_kcore3); in test__maps__merge_in()
103 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in()
106 TEST_ASSERT_VAL("merge check failed", !ret); in test__maps__merge_in()
109 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in()
112 TEST_ASSERT_VAL("merge check failed", !ret); in test__maps__merge_in()
115 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in()
[all …]
A Dpe-file-parsing.c40 TEST_ASSERT_VAL("Failed to read build_id", in run_dir()
42 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
46 TEST_ASSERT_VAL("Failed to read debuglink", ret == 0); in run_dir()
47 TEST_ASSERT_VAL("Wrong debuglink", in run_dir()
52 TEST_ASSERT_VAL("Failed to read debug file build_id", in run_dir()
54 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
58 TEST_ASSERT_VAL("Failed to get dso", dso); in run_dir()
61 TEST_ASSERT_VAL("Failed to load symbols", ret == 0); in run_dir()
65 TEST_ASSERT_VAL("Failed to find main", sym); in run_dir()
A Dhists_output.c168 TEST_ASSERT_VAL("Invalid hist entry", in test1()
174 TEST_ASSERT_VAL("Invalid hist entry", in test1()
180 TEST_ASSERT_VAL("Invalid hist entry", in test1()
186 TEST_ASSERT_VAL("Invalid hist entry", in test1()
192 TEST_ASSERT_VAL("Invalid hist entry", in test1()
198 TEST_ASSERT_VAL("Invalid hist entry", in test1()
204 TEST_ASSERT_VAL("Invalid hist entry", in test1()
210 TEST_ASSERT_VAL("Invalid hist entry", in test1()
216 TEST_ASSERT_VAL("Invalid hist entry", in test1()
268 TEST_ASSERT_VAL("Invalid hist entry", in test2()
[all …]
A Dbitmap.c45 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1")); in test__bitmap_print()
46 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,5")); in test__bitmap_print()
47 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3,5,7,9,11,13,15,17,19,21-40")); in test__bitmap_print()
48 TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5")); in test__bitmap_print()
49 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37")); in test__bitmap_print()
50 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37")); in test__bitmap_print()
51 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1-10,12-20,22-30,32-40")); in test__bitmap_print()
A Dkmod-path.c17 TEST_ASSERT_VAL("kmod_path__parse", in test()
23 TEST_ASSERT_VAL("wrong kmod", m.kmod == kmod); in test()
24 TEST_ASSERT_VAL("wrong comp", m.comp == comp); in test()
27 TEST_ASSERT_VAL("wrong name", m.name && !strcmp(name, m.name)); in test()
29 TEST_ASSERT_VAL("wrong name", !m.name); in test()
37 TEST_ASSERT_VAL("is_kernel_module", in test_is_kernel_module()
45 TEST_ASSERT_VAL("failed", !test(path, an, k, c, n))
48 TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e))
A Dthread-maps-share.c42 TEST_ASSERT_VAL("failed to create threads", in test__thread_maps_share()
49 TEST_ASSERT_VAL("maps don't match", maps == t1->maps); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", maps == t2->maps); in test__thread_maps_share()
51 TEST_ASSERT_VAL("maps don't match", maps == t3->maps); in test__thread_maps_share()
59 TEST_ASSERT_VAL("failed to find other leader", other_leader); in test__thread_maps_share()
76 TEST_ASSERT_VAL("maps don't match", other_maps == other_leader->maps); in test__thread_maps_share()
A Dhists_cumulate.c208 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test()
210 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
216 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
224 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); in do_test()
231 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
233 TEST_ASSERT_VAL(buf, in do_test()
239 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
242 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test()
244 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
707 TEST_ASSERT_VAL("No memory", evlist); in test__hists_cumulate()
A Dmmap-thread-lookup.c168 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events()
178 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy()); in mmap_events()
179 TEST_ASSERT_VAL("failed to synthesize maps", !err); in mmap_events()
230 TEST_ASSERT_VAL("failed with sythesizing all", in test__mmap_thread_lookup()
234 TEST_ASSERT_VAL("failed with sythesizing process", in test__mmap_thread_lookup()
A Dexpand-cgroup.c29 TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist)); in test_expand_events()
106 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_default_events()
125 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_group_events()
157 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_libpfm_events()
186 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_metric_events()
A Dbp_account.c88 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting()
97 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting()
103 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
A Devent-times.c194 TEST_ASSERT_VAL("failed to attach", !err); in test_times()
198 TEST_ASSERT_VAL("failed to detach", !detach(evlist)); in test_times()
A Dmem.c22 TEST_ASSERT_VAL(failure, !strcmp(string, out)); in check()
A Dmmap-basic.c189 TEST_ASSERT_VAL("failed to create threads", threads); in test_stat_user_read()
194 TEST_ASSERT_VAL("failed to create evsel", evsel); in test_stat_user_read()
A Dmem2node.c22 #define T TEST_ASSERT_VAL
/linux-6.3-rc2/tools/perf/arch/x86/tests/
A Dbp-modify.c210 TEST_ASSERT_VAL("modify test 1 failed\n", !bp_modify1()); in test__bp_modify()
211 TEST_ASSERT_VAL("modify test 2 failed\n", !bp_modify2()); in test__bp_modify()

Completed in 32 milliseconds

12