| /linux/tools/perf/tests/ |
| H A D | thread-maps-share.c | 46 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() 80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share() 83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share() 86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share() 92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1); in test__thread_maps_share()
|
| H A D | sigtrap.c | 181 TEST_ASSERT_EQUAL("pthread_join() failed", pthread_join(threads[i], NULL), 0); in run_test_threads() 192 TEST_ASSERT_EQUAL("misfired signal?", ctx.signal_count, 0); in run_stress_test() 193 TEST_ASSERT_EQUAL("enable failed", ioctl(fd, PERF_EVENT_IOC_ENABLE, 0), 0); in run_stress_test() 195 TEST_ASSERT_EQUAL("disable failed", ioctl(fd, PERF_EVENT_IOC_DISABLE, 0), 0); in run_stress_test() 205 TEST_ASSERT_EQUAL("unexpected sigtraps", ctx.signal_count, expected_sigtraps); in run_stress_test() 207 TEST_ASSERT_EQUAL("missing signals or incorrectly delivered", ctx.tids_want_signal, 0); in run_stress_test() 210 TEST_ASSERT_EQUAL("unexpected si_perf_type", ctx.first_siginfo.si_perf_type, in run_stress_test() 212 TEST_ASSERT_EQUAL("unexpected si_perf_data", ctx.first_siginfo.si_perf_data, in run_stress_test()
|
| H A D | expr.c | 27 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 0); in test_ids_union() 33 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); in test_ids_union() 34 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); in test_ids_union() 37 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2); in test_ids_union() 42 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union() 45 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2); in test_ids_union() 50 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0); in test_ids_union() 51 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("baz")), 0); in test_ids_union() 54 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 3); in test_ids_union() 85 TEST_ASSERT_EQUAL("ids_union", test_ids_union(), 0); in test__expr()
|
| H A D | pmu.c | 248 TEST_ASSERT_EQUAL("krava01 overwritten", (int) val, (15 & 0b11)); in test__pmu_usr_chgs() 252 TEST_ASSERT_EQUAL("krava11 overwritten", (int) val, (27 | (4 << 1))); in test__pmu_usr_chgs() 256 TEST_ASSERT_EQUAL("krava02 overwritten", (int) val, 170); in test__pmu_usr_chgs() 260 TEST_ASSERT_EQUAL("krava03 overwritten", (int) val, 1); in test__pmu_usr_chgs() 269 TEST_ASSERT_EQUAL("krava13 overwritten", (int) val, 0); in test__pmu_usr_chgs() 278 TEST_ASSERT_EQUAL("krava21 not overwritten", (int) val, 13905); in test__pmu_usr_chgs() 282 TEST_ASSERT_EQUAL("krava22 not overwritten", (int) val, 11); in test__pmu_usr_chgs() 286 TEST_ASSERT_EQUAL("krava23 not overwritten", (int) val, 0); in test__pmu_usr_chgs() 521 TEST_ASSERT_EQUAL("cpu", pmu_name_cmp("cpu", "cpu"), 0); in test__name_cmp() 522 TEST_ASSERT_EQUAL("i915", pmu_name_cmp("i915", "i915"), 0); in test__name_cmp() [all …]
|
| H A D | pfm.c | 76 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events() 79 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events() 161 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group() 164 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
|
| H A D | expand-cgroup.c | 199 TEST_ASSERT_EQUAL("failed to expand default events", ret, 0); in test__expand_cgroup_events() 202 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events() 205 TEST_ASSERT_EQUAL("failed to expand event group", ret, 0); in test__expand_cgroup_events() 208 TEST_ASSERT_EQUAL("failed to expand metric events", ret, 0); in test__expand_cgroup_events()
|
| H A D | hwmon_pmu.c | 328 TEST_ASSERT_EQUAL("parse_hwmon_filename", in test__parse_hwmon_filename() 338 TEST_ASSERT_EQUAL("parse_hwmon_filename type", type, tests[i].type); in test__parse_hwmon_filename() 339 TEST_ASSERT_EQUAL("parse_hwmon_filename number", number, tests[i].number); in test__parse_hwmon_filename() 340 TEST_ASSERT_EQUAL("parse_hwmon_filename item", item, tests[i].item); in test__parse_hwmon_filename() 341 TEST_ASSERT_EQUAL("parse_hwmon_filename alarm", alarm, tests[i].alarm); in test__parse_hwmon_filename()
|
| H A D | tests.h | 22 #define TEST_ASSERT_EQUAL(text, val, expected) \ macro
|
| H A D | cpumap.c | 214 TEST_ASSERT_EQUAL("failed to intersect map: bad nr", perf_cpu_map__nr(c), nr); in __test__cpu_map_intersect()
|