Lines Matching refs:TEST_ASSERT_VAL

26 	TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__MASK);  in process_event_mask()
30 TEST_ASSERT_VAL("wrong long_size", long_size == 4 || long_size == 8); in process_event_mask()
32 TEST_ASSERT_VAL("wrong nr", data->mask32_data.nr == 1); in process_event_mask()
34 TEST_ASSERT_VAL("wrong cpu", perf_record_cpu_map_data__test_bit(0, data)); in process_event_mask()
35 TEST_ASSERT_VAL("wrong cpu", !perf_record_cpu_map_data__test_bit(1, data)); in process_event_mask()
37 TEST_ASSERT_VAL("wrong cpu", perf_record_cpu_map_data__test_bit(i, data)); in process_event_mask()
40 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20); in process_event_mask()
42 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0); in process_event_mask()
44 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i); in process_event_mask()
61 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__CPUS); in process_event_cpus()
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()
69 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1); in process_event_cpus()
70 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 1).cpu == 256); in process_event_cpus()
71 TEST_ASSERT_VAL("wrong refcnt", refcount_read(&map->refcnt) == 1); in process_event_cpus()
87 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__RANGE_CPUS); in process_event_range_cpus()
89 TEST_ASSERT_VAL("wrong any_cpu", data->range_cpu_data.any_cpu == 0); in process_event_range_cpus()
90 TEST_ASSERT_VAL("wrong start_cpu", data->range_cpu_data.start_cpu == 1); in process_event_range_cpus()
91 TEST_ASSERT_VAL("wrong end_cpu", data->range_cpu_data.end_cpu == 256); in process_event_range_cpus()
94 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 256); in process_event_range_cpus()
95 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1); in process_event_range_cpus()
96 TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__max(map).cpu == 256); in process_event_range_cpus()
97 TEST_ASSERT_VAL("wrong refcnt", refcount_read(&map->refcnt) == 1); 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()
126 TEST_ASSERT_VAL("failed to synthesize map", in test__cpu_map_synthesize()
149 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1")); in test__cpu_map_print()
150 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,5")); in test__cpu_map_print()
151 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3,5,7,9,11,13,15,17,19,21-40")); in test__cpu_map_print()
152 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("2-5")); in test__cpu_map_print()
153 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37")); in test__cpu_map_print()
154 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37")); in test__cpu_map_print()
155 TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1-10,12-20,22-30,32-40")); in test__cpu_map_print()
166 TEST_ASSERT_VAL("failed to merge map: bad nr", perf_cpu_map__nr(c) == 5); in test__cpu_map_merge()
168 TEST_ASSERT_VAL("failed to merge map: bad result", !strcmp(buf, "1-2,4-5,7")); in test__cpu_map_merge()