Home
last modified time | relevance | path

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

/Linux-v5.4/tools/perf/tests/
Dparse-events.c51 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint()
52 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint()
53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
54 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint()
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
64 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
65 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint_multi()
68 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi()
70 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint_multi()
72 TEST_ASSERT_VAL("wrong sample_period", in test__checkevent_tracepoint_multi()
[all …]
Dthread-map.c26 TEST_ASSERT_VAL("failed to set process name", in test__thread_map()
31 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map()
35 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
36 TEST_ASSERT_VAL("wrong pid", in test__thread_map()
38 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
41 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map()
47 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map()
51 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
52 TEST_ASSERT_VAL("wrong pid", perf_thread_map__pid(map, 0) == -1); in test__thread_map()
53 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
[all …]
Dhists_filter.c112 TEST_ASSERT_VAL("No memory", evlist); in test__hists_filter()
152 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
154 TEST_ASSERT_VAL("Invalid nr hist entries", 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()
161 TEST_ASSERT_VAL("Unmatched nr hist entries", in test__hists_filter()
163 TEST_ASSERT_VAL("Unmatched total period", in test__hists_filter()
177 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
179 TEST_ASSERT_VAL("Invalid nr hist entries", in test__hists_filter()
181 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
[all …]
Dcpumap.c27 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__MASK); in process_event_mask()
31 TEST_ASSERT_VAL("wrong nr", mask->nr == 1); in process_event_mask()
34 TEST_ASSERT_VAL("wrong cpu", test_bit(i, mask->mask)); in process_event_mask()
38 TEST_ASSERT_VAL("wrong nr", map->nr == 20); in process_event_mask()
41 TEST_ASSERT_VAL("wrong cpu", map->map[i] == i); in process_event_mask()
60 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__CPUS); in process_event_cpus()
64 TEST_ASSERT_VAL("wrong nr", cpus->nr == 2); in process_event_cpus()
65 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[0] == 1); in process_event_cpus()
66 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[1] == 256); in process_event_cpus()
69 TEST_ASSERT_VAL("wrong nr", map->nr == 2); in process_event_cpus()
[all …]
Devent_update.c22 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit()
23 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__UNIT); in process_event_unit()
24 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->data, "KRAVA")); in process_event_unit()
38 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale()
39 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__SCALE); in process_event_scale()
40 TEST_ASSERT_VAL("wrong scale", ev_data->scale == 0.123); in process_event_scale()
57 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name()
58 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__NAME); in process_event_name()
59 TEST_ASSERT_VAL("wrong name", !strcmp(ev->data, tmp->name)); in process_event_name()
76 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_cpus()
[all …]
Dstat.c35 TEST_ASSERT_VAL("wrong nr", config->nr == PERF_STAT_CONFIG_TERM__MAX); in process_stat_config_event()
36 TEST_ASSERT_VAL("wrong aggr_mode", HAS(AGGR_MODE, AGGR_CORE)); in process_stat_config_event()
37 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()
44 TEST_ASSERT_VAL("wrong aggr_mode", stat_config.aggr_mode == AGGR_CORE); in process_stat_config_event()
45 TEST_ASSERT_VAL("wrong scale", stat_config.scale == 1); in process_stat_config_event()
46 TEST_ASSERT_VAL("wrong interval", stat_config.interval == 1); in process_stat_config_event()
58 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat_config()
71 TEST_ASSERT_VAL("wrong cpu", st->cpu == 1); in process_stat_event()
72 TEST_ASSERT_VAL("wrong thread", st->thread == 2); in process_stat_event()
[all …]
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()
142 TEST_ASSERT_VAL("Wrong size", size == data->size); in test__dso_data()
143 TEST_ASSERT_VAL("Wrong data", !memcmp(buf, data->data, 10)); 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()
188 TEST_ASSERT_VAL("failed to open fd directory", dir); in open_files_cnt()
209 TEST_ASSERT_VAL("failed to alloc dsos array", dsos); in dsos__create()
215 TEST_ASSERT_VAL("failed to get dso file", file); in dsos__create()
[all …]
Dmap_groups.c23 TEST_ASSERT_VAL("wrong map start", map->start == merged[i].start); in check_maps()
24 TEST_ASSERT_VAL("wrong map end", map->end == merged[i].end); in check_maps()
25 TEST_ASSERT_VAL("wrong map name", !strcmp(map->dso->name, merged[i].name)); in check_maps()
26 TEST_ASSERT_VAL("wrong map refcnt", refcount_read(&map->refcnt) == 2); in check_maps()
31 TEST_ASSERT_VAL("less maps expected", (map && i < size) || (!map && i == size)); in check_maps()
74 TEST_ASSERT_VAL("failed to create map", map); in test__map_groups__merge_in()
83 TEST_ASSERT_VAL("failed to create map", map_kcore1); in test__map_groups__merge_in()
86 TEST_ASSERT_VAL("failed to create map", map_kcore2); in test__map_groups__merge_in()
89 TEST_ASSERT_VAL("failed to create map", map_kcore3); in test__map_groups__merge_in()
104 TEST_ASSERT_VAL("failed to merge map", !ret); in test__map_groups__merge_in()
[all …]
Dexpr.c14 TEST_ASSERT_VAL("parse test failed", 0); in test()
15 TEST_ASSERT_VAL("unexpected value", val == val2); in test()
48 TEST_ASSERT_VAL("division by zero", ret == 1); in test__expr()
52 TEST_ASSERT_VAL("missing operand", ret == 1); in test__expr()
54 TEST_ASSERT_VAL("find other", in test__expr()
56 TEST_ASSERT_VAL("find other", num_other == 3); in test__expr()
57 TEST_ASSERT_VAL("find other", !strcmp(other[0], "BAR")); in test__expr()
58 TEST_ASSERT_VAL("find other", !strcmp(other[1], "BAZ")); in test__expr()
59 TEST_ASSERT_VAL("find other", !strcmp(other[2], "BOZO")); in test__expr()
60 TEST_ASSERT_VAL("find other", other[3] == NULL); in test__expr()
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 …]
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()
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))
Dtopology.c43 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()
54 TEST_ASSERT_VAL("failed to write header", in session_write_header()
74 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in check_cpu_topology()
106 TEST_ASSERT_VAL("Core ID doesn't match", in check_cpu_topology()
109 TEST_ASSERT_VAL("Socket ID doesn't match", in check_cpu_topology()
124 TEST_ASSERT_VAL("can't get templ file", !get_temp(path)); in test__session_topology()
Dthread-mg-share.c42 TEST_ASSERT_VAL("failed to create threads", in test__thread_mg_share()
49 TEST_ASSERT_VAL("map groups don't match", mg == t1->mg); in test__thread_mg_share()
50 TEST_ASSERT_VAL("map groups don't match", mg == t2->mg); in test__thread_mg_share()
51 TEST_ASSERT_VAL("map groups don't match", mg == t3->mg); in test__thread_mg_share()
59 TEST_ASSERT_VAL("failed to find other leader", other_leader); in test__thread_mg_share()
76 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
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()
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()
Dbp_account.c79 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting()
88 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting()
94 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
149 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in detect_share()
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()
Dmem.c22 TEST_ASSERT_VAL(failure, !strcmp(string, out)); in check()
Dmem2node.c22 #define T TEST_ASSERT_VAL
Dwp.c18 TEST_ASSERT_VAL(text, count == val); \
Dtests.h7 #define TEST_ASSERT_VAL(text, cond) \ macro
/Linux-v5.4/tools/perf/arch/x86/tests/
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()