Home
last modified time | relevance | path

Searched refs:TEST_ASSERT_EQUAL (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dthread-maps-share.c46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share()
74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 2); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 2); in test__thread_maps_share()
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 1); in test__thread_maps_share()
92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 1); in test__thread_maps_share()
H A Dpfm.c95 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
98 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
169 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
172 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
H A Dexpand-cgroup.c229 TEST_ASSERT_EQUAL("failed to expand default events", ret, 0); in test__expand_cgroup_events()
232 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events()
235 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events()
238 TEST_ASSERT_EQUAL("failed to expand metric events", ret, 0); in test__expand_cgroup_events()
H A Dtests.h15 #define TEST_ASSERT_EQUAL(text, val, expected) \ macro
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dthread-maps-share.c46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4); in test__thread_maps_share()
74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 2); in test__thread_maps_share()
81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share()
84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share()
87 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share()
93 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1); in test__thread_maps_share()
H A Dsigtrap.c143 TEST_ASSERT_EQUAL("pthread_join() failed", pthread_join(threads[i], NULL), 0); in run_test_threads()
154 TEST_ASSERT_EQUAL("misfired signal?", ctx.signal_count, 0); in run_stress_test()
155 TEST_ASSERT_EQUAL("enable failed", ioctl(fd, PERF_EVENT_IOC_ENABLE, 0), 0); in run_stress_test()
157 TEST_ASSERT_EQUAL("disable failed", ioctl(fd, PERF_EVENT_IOC_DISABLE, 0), 0); in run_stress_test()
159 TEST_ASSERT_EQUAL("unexpected sigtraps", ctx.signal_count, NUM_THREADS * ctx.iterate_on); in run_stress_test()
160 TEST_ASSERT_EQUAL("missing signals or incorrectly delivered", ctx.tids_want_signal, 0); in run_stress_test()
163 TEST_ASSERT_EQUAL("unexpected si_perf_type", ctx.first_siginfo.si_perf_type, in run_stress_test()
165 TEST_ASSERT_EQUAL("unexpected si_perf_data", ctx.first_siginfo.si_perf_data, in run_stress_test()
H A Dexpr.c25 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 0); in test_ids_union()
31 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); in test_ids_union()
32 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); in test_ids_union()
35 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2); in test_ids_union()
40 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
43 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2); in test_ids_union()
48 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0); in test_ids_union()
49 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("baz")), 0); in test_ids_union()
52 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 3); in test_ids_union()
82 TEST_ASSERT_EQUAL("ids_unio in test__expr()
[all...]
H A Dpfm.c75 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
78 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
160 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
163 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
H A Dexpand-cgroup.c210 TEST_ASSERT_EQUAL("failed to expand default events", ret, 0); in test__expand_cgroup_events()
213 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events()
216 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events()
219 TEST_ASSERT_EQUAL("failed to expand metric events", ret, 0); in test__expand_cgroup_events()
H A Dtests.h15 #define TEST_ASSERT_EQUAL(text, val, expected) \ macro
H A Dcpumap.c181 TEST_ASSERT_EQUAL("failed to intersect map: bad nr", perf_cpu_map__nr(c), nr); in __test__cpu_map_intersect()

Completed in 4 milliseconds