/Linux-v4.19/tools/perf/tests/ |
D | parse-events.c | 25 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->nr_entries); in test__checkevent_tracepoint() 26 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint() 27 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->attr.type); in test__checkevent_tracepoint() 28 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint() 30 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_tracepoint() 38 TEST_ASSERT_VAL("wrong number of entries", evlist->nr_entries > 1); in test__checkevent_tracepoint_multi() 39 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint_multi() 42 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi() 44 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint_multi() 46 TEST_ASSERT_VAL("wrong sample_period", in test__checkevent_tracepoint_multi() [all …]
|
D | thread-map.c | 17 TEST_ASSERT_VAL("failed to set process name", in test__thread_map() 22 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map() 26 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 27 TEST_ASSERT_VAL("wrong pid", in test__thread_map() 29 TEST_ASSERT_VAL("wrong comm", in test__thread_map() 32 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map() 38 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map() 42 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 43 TEST_ASSERT_VAL("wrong pid", thread_map__pid(map, 0) == -1); in test__thread_map() 44 TEST_ASSERT_VAL("wrong comm", in test__thread_map() [all …]
|
D | hists_filter.c | 113 TEST_ASSERT_VAL("No memory", evlist); in test__hists_filter() 153 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 155 TEST_ASSERT_VAL("Invalid nr hist entries", in test__hists_filter() 157 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter() 159 TEST_ASSERT_VAL("Unmatched nr samples", in test__hists_filter() 162 TEST_ASSERT_VAL("Unmatched nr hist entries", in test__hists_filter() 164 TEST_ASSERT_VAL("Unmatched total period", in test__hists_filter() 178 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 180 TEST_ASSERT_VAL("Invalid nr hist entries", in test__hists_filter() 182 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter() [all …]
|
D | cpumap.c | 25 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__MASK); in process_event_mask() 29 TEST_ASSERT_VAL("wrong nr", mask->nr == 1); in process_event_mask() 32 TEST_ASSERT_VAL("wrong cpu", test_bit(i, mask->mask)); in process_event_mask() 36 TEST_ASSERT_VAL("wrong nr", map->nr == 20); in process_event_mask() 39 TEST_ASSERT_VAL("wrong cpu", map->map[i] == i); in process_event_mask() 58 TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__CPUS); in process_event_cpus() 62 TEST_ASSERT_VAL("wrong nr", cpus->nr == 2); in process_event_cpus() 63 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[0] == 1); in process_event_cpus() 64 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[1] == 256); in process_event_cpus() 67 TEST_ASSERT_VAL("wrong nr", map->nr == 2); in process_event_cpus() [all …]
|
D | event_update.c | 16 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit() 17 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__UNIT); in process_event_unit() 18 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->data, "KRAVA")); in process_event_unit() 32 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale() 33 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__SCALE); in process_event_scale() 34 TEST_ASSERT_VAL("wrong scale", ev_data->scale == 0.123); in process_event_scale() 51 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name() 52 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__NAME); in process_event_name() 53 TEST_ASSERT_VAL("wrong name", !strcmp(ev->data, tmp->name)); in process_event_name() 70 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_cpus() [all …]
|
D | stat.c | 34 TEST_ASSERT_VAL("wrong nr", config->nr == PERF_STAT_CONFIG_TERM__MAX); in process_stat_config_event() 35 TEST_ASSERT_VAL("wrong aggr_mode", HAS(AGGR_MODE, AGGR_CORE)); in process_stat_config_event() 36 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); in process_stat_config_event() 37 TEST_ASSERT_VAL("wrong interval", HAS(INTERVAL, 1)); in process_stat_config_event() 43 TEST_ASSERT_VAL("wrong aggr_mode", stat_config.aggr_mode == AGGR_CORE); in process_stat_config_event() 44 TEST_ASSERT_VAL("wrong scale", stat_config.scale == 1); in process_stat_config_event() 45 TEST_ASSERT_VAL("wrong interval", stat_config.interval == 1); in process_stat_config_event() 57 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat_config() 70 TEST_ASSERT_VAL("wrong cpu", st->cpu == 1); in process_stat_event() 71 TEST_ASSERT_VAL("wrong thread", st->thread == 2); in process_stat_event() [all …]
|
D | dso-data.c | 123 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 …]
|
D | expr.c | 12 TEST_ASSERT_VAL("parse test failed", 0); in test() 13 TEST_ASSERT_VAL("unexpected value", val == val2); in test() 46 TEST_ASSERT_VAL("division by zero", ret == 1); in test__expr() 50 TEST_ASSERT_VAL("missing operand", ret == 1); in test__expr() 52 TEST_ASSERT_VAL("find other", in test__expr() 54 TEST_ASSERT_VAL("find other", num_other == 3); in test__expr() 55 TEST_ASSERT_VAL("find other", !strcmp(other[0], "BAR")); in test__expr() 56 TEST_ASSERT_VAL("find other", !strcmp(other[1], "BAZ")); in test__expr() 57 TEST_ASSERT_VAL("find other", !strcmp(other[2], "BOZO")); in test__expr() 58 TEST_ASSERT_VAL("find other", other[3] == NULL); in test__expr()
|
D | hists_output.c | 167 TEST_ASSERT_VAL("Invalid hist entry", in test1() 173 TEST_ASSERT_VAL("Invalid hist entry", in test1() 179 TEST_ASSERT_VAL("Invalid hist entry", in test1() 185 TEST_ASSERT_VAL("Invalid hist entry", in test1() 191 TEST_ASSERT_VAL("Invalid hist entry", in test1() 197 TEST_ASSERT_VAL("Invalid hist entry", in test1() 203 TEST_ASSERT_VAL("Invalid hist entry", in test1() 209 TEST_ASSERT_VAL("Invalid hist entry", in test1() 215 TEST_ASSERT_VAL("Invalid hist entry", in test1() 267 TEST_ASSERT_VAL("Invalid hist entry", in test2() [all …]
|
D | bitmap.c | 44 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1")); in test__bitmap_print() 45 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,5")); in test__bitmap_print() 46 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() 47 TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5")); in test__bitmap_print() 48 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37")); 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-10,12-20,22-30,32-40")); in test__bitmap_print()
|
D | topology.c | 41 TEST_ASSERT_VAL("can't get session", session); in session_write_header() 44 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header() 52 TEST_ASSERT_VAL("failed to write header", in session_write_header() 72 TEST_ASSERT_VAL("can't get session", session); in check_cpu_topology() 104 TEST_ASSERT_VAL("Core ID doesn't match", in check_cpu_topology() 107 TEST_ASSERT_VAL("Socket ID doesn't match", in check_cpu_topology() 122 TEST_ASSERT_VAL("can't get templ file", !get_temp(path)); in test__session_topology()
|
D | kmod-path.c | 15 TEST_ASSERT_VAL("kmod_path__parse", in test() 21 TEST_ASSERT_VAL("wrong kmod", m.kmod == kmod); in test() 22 TEST_ASSERT_VAL("wrong comp", m.comp == comp); in test() 25 TEST_ASSERT_VAL("wrong name", m.name && !strcmp(name, m.name)); in test() 27 TEST_ASSERT_VAL("wrong name", !m.name); in test() 35 TEST_ASSERT_VAL("is_kernel_module", in test_is_kernel_module() 43 TEST_ASSERT_VAL("failed", !test(path, an, k, c, n)) 46 TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e))
|
D | thread-mg-share.c | 43 TEST_ASSERT_VAL("failed to create threads", in test__thread_mg_share() 50 TEST_ASSERT_VAL("map groups don't match", mg == t1->mg); in test__thread_mg_share() 51 TEST_ASSERT_VAL("map groups don't match", mg == t2->mg); in test__thread_mg_share() 52 TEST_ASSERT_VAL("map groups don't match", mg == t3->mg); in test__thread_mg_share() 60 TEST_ASSERT_VAL("failed to find other leader", other_leader); in test__thread_mg_share() 77 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
|
D | hists_cumulate.c | 207 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test() 209 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test() 215 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test() 223 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); 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() 706 TEST_ASSERT_VAL("No memory", evlist); in test__hists_cumulate()
|
D | mmap-thread-lookup.c | 165 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events() 175 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy()); in mmap_events() 176 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 | bp_account.c | 78 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting() 87 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting() 93 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting() 148 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in detect_share()
|
D | event-times.c | 192 TEST_ASSERT_VAL("failed to attach", !err); in test_times() 196 TEST_ASSERT_VAL("failed to detach", !detach(evlist)); in test_times()
|
D | mem.c | 20 TEST_ASSERT_VAL(failure, !strcmp(string, out)); in check()
|
D | mem2node.c | 16 #define T TEST_ASSERT_VAL
|
D | tests.h | 7 #define TEST_ASSERT_VAL(text, cond) \ macro
|
/Linux-v4.19/tools/perf/arch/x86/tests/ |
D | bp-modify.c | 209 TEST_ASSERT_VAL("modify test 1 failed\n", !bp_modify1()); in test__bp_modify() 210 TEST_ASSERT_VAL("modify test 2 failed\n", !bp_modify2()); in test__bp_modify()
|