Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/tests/
Dparse-events.c19 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->nr_entries); in test__checkevent_tracepoint()
20 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint()
21 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->attr.type); in test__checkevent_tracepoint()
22 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint()
24 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_tracepoint()
32 TEST_ASSERT_VAL("wrong number of entries", evlist->nr_entries > 1); in test__checkevent_tracepoint_multi()
33 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint_multi()
36 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi()
38 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint_multi()
40 TEST_ASSERT_VAL("wrong sample_period", in test__checkevent_tracepoint_multi()
[all …]
Dhists_filter.c115 TEST_ASSERT_VAL("No memory", evlist); in test__hists_filter()
154 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
156 TEST_ASSERT_VAL("Invalid nr hist entries", in test__hists_filter()
158 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
160 TEST_ASSERT_VAL("Unmatched nr samples", in test__hists_filter()
163 TEST_ASSERT_VAL("Unmatched nr hist entries", in test__hists_filter()
165 TEST_ASSERT_VAL("Unmatched total period", in test__hists_filter()
179 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter()
181 TEST_ASSERT_VAL("Invalid nr hist entries", in test__hists_filter()
183 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter()
[all …]
Ddso-data.c120 TEST_ASSERT_VAL("No test file", file); in test__dso_data()
126 TEST_ASSERT_VAL("Failed to access to dso", in test__dso_data()
139 TEST_ASSERT_VAL("Wrong size", size == data->size); in test__dso_data()
140 TEST_ASSERT_VAL("Wrong data", !memcmp(buf, data->data, 10)); in test__dso_data()
150 TEST_ASSERT_VAL("ENOMEM\n", buf); in test__dso_data()
158 TEST_ASSERT_VAL("Wrong size", in test__dso_data()
162 TEST_ASSERT_VAL("Wrong data", in test__dso_data()
185 TEST_ASSERT_VAL("failed to open fd directory", dir); in open_files_cnt()
206 TEST_ASSERT_VAL("failed to alloc dsos array", dsos); in dsos__create()
212 TEST_ASSERT_VAL("failed to get dso file", file); in dsos__create()
[all …]
Dthread-map.c13 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map()
17 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
18 TEST_ASSERT_VAL("wrong pid", in test__thread_map()
20 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
23 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map()
29 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map()
33 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map()
34 TEST_ASSERT_VAL("wrong pid", thread_map__pid(map, 0) == -1); in test__thread_map()
35 TEST_ASSERT_VAL("wrong comm", in test__thread_map()
38 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map()
Dhists_output.c169 TEST_ASSERT_VAL("Invalid hist entry", in test1()
175 TEST_ASSERT_VAL("Invalid hist entry", in test1()
181 TEST_ASSERT_VAL("Invalid hist entry", in test1()
187 TEST_ASSERT_VAL("Invalid hist entry", in test1()
193 TEST_ASSERT_VAL("Invalid hist entry", in test1()
199 TEST_ASSERT_VAL("Invalid hist entry", in test1()
205 TEST_ASSERT_VAL("Invalid hist entry", in test1()
211 TEST_ASSERT_VAL("Invalid hist entry", in test1()
217 TEST_ASSERT_VAL("Invalid hist entry", in test1()
269 TEST_ASSERT_VAL("Invalid hist entry", in test2()
[all …]
Dkmod-path.c13 TEST_ASSERT_VAL("kmod_path__parse", in test()
19 TEST_ASSERT_VAL("wrong kmod", m.kmod == kmod); in test()
20 TEST_ASSERT_VAL("wrong comp", m.comp == comp); in test()
23 TEST_ASSERT_VAL("wrong ext", m.ext && !strcmp(ext, m.ext)); in test()
25 TEST_ASSERT_VAL("wrong ext", !m.ext); in test()
28 TEST_ASSERT_VAL("wrong name", m.name && !strcmp(name, m.name)); in test()
30 TEST_ASSERT_VAL("wrong name", !m.name); in test()
39 TEST_ASSERT_VAL("is_kernel_module", in test_is_kernel_module()
47 TEST_ASSERT_VAL("failed", !test(path, an, ae, k, c, n, e))
50 TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e))
Dtopology.c38 TEST_ASSERT_VAL("can't get session", session); in session_write_header()
41 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
48 TEST_ASSERT_VAL("failed to write header", in session_write_header()
66 TEST_ASSERT_VAL("can't get session", session); in check_cpu_topology()
75 TEST_ASSERT_VAL("Core ID doesn't match", in check_cpu_topology()
78 TEST_ASSERT_VAL("Socket ID doesn't match", in check_cpu_topology()
93 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()
Dmmap-thread-lookup.c163 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events()
174 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy()); in mmap_events()
175 TEST_ASSERT_VAL("failed to synthesize maps", !err); in mmap_events()
227 TEST_ASSERT_VAL("failed with sythesizing all", in test__mmap_thread_lookup()
231 TEST_ASSERT_VAL("failed with sythesizing process", in test__mmap_thread_lookup()
Dhists_cumulate.c209 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test()
211 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
217 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
230 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
232 TEST_ASSERT_VAL(buf, in do_test()
238 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
241 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test()
243 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test()
704 TEST_ASSERT_VAL("No memory", evlist); in test__hists_cumulate()
Dtests.h4 #define TEST_ASSERT_VAL(text, cond) \ macro