/linux-4.4.14/tools/perf/tests/ |
D | parse-events.c | 19 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 …]
|
D | hists_filter.c | 115 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 …]
|
D | dso-data.c | 120 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 …]
|
D | thread-map.c | 13 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()
|
D | hists_output.c | 169 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 …]
|
D | kmod-path.c | 13 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))
|
D | topology.c | 38 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()
|
D | thread-mg-share.c | 42 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()
|
D | mmap-thread-lookup.c | 163 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()
|
D | hists_cumulate.c | 209 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()
|
D | tests.h | 4 #define TEST_ASSERT_VAL(text, cond) \ macro
|