| /tools/perf/tests/ |
| A D | parse-events.c | 104 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi() 260 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_x() 271 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_r() 274 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_r() 276 TEST_ASSERT_VAL("wrong bp_len", in test__checkevent_breakpoint_r() 286 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_w() 289 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_w() 291 TEST_ASSERT_VAL("wrong bp_len", in test__checkevent_breakpoint_w() 301 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_rw() 304 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_rw() [all …]
|
| A D | expr.c | 134 TEST_ASSERT_VAL("find ids", in test__expr() 144 TEST_ASSERT_VAL("find ids", in test__expr() 152 TEST_ASSERT_VAL("find ids", in test__expr() 186 TEST_ASSERT_VAL("find ids", in test__expr() 193 TEST_ASSERT_VAL("find ids", in test__expr() 197 TEST_ASSERT_VAL("find ids", in test__expr() 201 TEST_ASSERT_VAL("find ids", in test__expr() 206 TEST_ASSERT_VAL("find ids", in test__expr() 213 TEST_ASSERT_VAL("find ids", in test__expr() 217 TEST_ASSERT_VAL("find ids", in test__expr() [all …]
|
| A D | thread-map.c | 32 TEST_ASSERT_VAL("failed to alloc map", map); in test__thread_map() 36 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 37 TEST_ASSERT_VAL("wrong pid", in test__thread_map() 39 TEST_ASSERT_VAL("wrong comm", in test__thread_map() 42 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map() 52 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 54 TEST_ASSERT_VAL("wrong comm", in test__thread_map() 57 TEST_ASSERT_VAL("wrong refcnt", in test__thread_map() 79 TEST_ASSERT_VAL("wrong pid", in process_event() 81 TEST_ASSERT_VAL("wrong comm", in process_event() [all …]
|
| A D | subcmd-help.c | 15 TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds, "aaa") == 1); in test__load_cmdnames() 16 TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds, "bar") == 0); in test__load_cmdnames() 17 TEST_ASSERT_VAL("case sensitive", is_in_cmdlist(&cmds, "XYZ") == 0); in test__load_cmdnames() 33 TEST_ASSERT_VAL("invalid original size", cmds.cnt == 3); in test__uniq_cmdnames() 36 TEST_ASSERT_VAL("invalid final size", cmds.cnt == 2); in test__uniq_cmdnames() 40 TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds, "ccc") == 0); in test__uniq_cmdnames() 67 TEST_ASSERT_VAL("invalid original size", cmds1.cnt == 10); in test__exclude_cmdnames() 68 TEST_ASSERT_VAL("invalid original size", cmds2.cnt == 3); in test__exclude_cmdnames() 73 TEST_ASSERT_VAL("invalid excluded size", cmds1.cnt == 7); in test__exclude_cmdnames() 74 TEST_ASSERT_VAL("invalid excluded size", cmds2.cnt == 3); in test__exclude_cmdnames() [all …]
|
| A D | topology.c | 42 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in session_write_header() 45 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() 76 TEST_ASSERT_VAL("can't get session", !IS_ERR(session)); in check_cpu_topology() 129 TEST_ASSERT_VAL("Cpu map - CPU ID doesn't match", in check_cpu_topology() 132 TEST_ASSERT_VAL("Cpu map - Core ID doesn't match", in check_cpu_topology() 137 TEST_ASSERT_VAL("Cpu map - Die ID doesn't match", in check_cpu_topology() 146 TEST_ASSERT_VAL("Core map - Core ID doesn't match", in check_cpu_topology() 152 TEST_ASSERT_VAL("Core map - Die ID doesn't match", in check_cpu_topology() 164 TEST_ASSERT_VAL("Die map - Die ID doesn't match", in check_cpu_topology() [all …]
|
| A D | cpumap.c | 32 TEST_ASSERT_VAL("wrong nr", data->mask32_data.nr == 1); in process_event_mask() 40 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20); in process_event_mask() 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() 68 TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 2); in process_event_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() 176 TEST_ASSERT_VAL("unexpected refcnt: bad result", in __test__cpu_map_merge() 270 TEST_ASSERT_VAL("pair", perf_cpu_map__equal(pair, two)); in test__cpu_map_equal() [all …]
|
| A D | event_update.c | 22 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit() 24 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->unit, "KRAVA")); in process_event_unit() 35 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale() 37 TEST_ASSERT_VAL("wrong scale", ev->scale.scale == 0.123); in process_event_scale() 54 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name() 70 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_cpus() 86 TEST_ASSERT_VAL("failed to get evlist", evlist); in test__event_update() 90 TEST_ASSERT_VAL("failed to allocate ids", in test__event_update() 98 TEST_ASSERT_VAL("failed to synthesize attr update unit", in test__event_update() 109 TEST_ASSERT_VAL("failed to synthesize attr update name", in test__event_update() [all …]
|
| A D | hists_filter.c | 124 TEST_ASSERT_VAL("No memory", evlist); in test__hists_filter() 164 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 168 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter() 170 TEST_ASSERT_VAL("Unmatched nr samples", in test__hists_filter() 189 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 193 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter() 218 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 222 TEST_ASSERT_VAL("Invalid total period", in test__hists_filter() 253 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() 282 TEST_ASSERT_VAL("Invalid nr samples", in test__hists_filter() [all …]
|
| A D | stat.c | 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() 59 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat_config() 74 TEST_ASSERT_VAL("wrong cpu", st->cpu == 1); in process_stat_event() 75 TEST_ASSERT_VAL("wrong thread", st->thread == 2); in process_stat_event() 76 TEST_ASSERT_VAL("wrong id", st->id == 3); in process_stat_event() 77 TEST_ASSERT_VAL("wrong val", st->val == 100); in process_stat_event() 78 TEST_ASSERT_VAL("wrong run", st->ena == 200); in process_stat_event() 79 TEST_ASSERT_VAL("wrong ena", st->run == 300); in process_stat_event() 91 TEST_ASSERT_VAL("failed to synthesize stat_config", in test__synthesize_stat() [all …]
|
| A D | parse-metric.c | 140 TEST_ASSERT_VAL("failed to compute metric", in test_ipc() 143 TEST_ASSERT_VAL("IPC failed, wrong ratio", in test_ipc() 159 TEST_ASSERT_VAL("failed to compute metric", in test_frontend() 177 TEST_ASSERT_VAL("failed to compute metric", in test_cache_miss_cycles() 220 TEST_ASSERT_VAL("failed to compute metric", in test_dcache_l2() 226 TEST_ASSERT_VAL("failed to compute metric", in test_dcache_l2() 243 TEST_ASSERT_VAL("failed to find recursion", in test_recursion_fail() 246 TEST_ASSERT_VAL("failed to find recursion", in test_recursion_fail() 260 TEST_ASSERT_VAL("failed to compute metric", in test_memory_bandwidth() 279 TEST_ASSERT_VAL("failed to find recursion", in test_metric_group() [all …]
|
| A D | dso-data.c | 135 TEST_ASSERT_VAL("No test file", file); in test__dso_data() 142 TEST_ASSERT_VAL("Failed to access to dso", in test__dso_data() 166 TEST_ASSERT_VAL("ENOMEM\n", buf); in test__dso_data() 174 TEST_ASSERT_VAL("Wrong size", in test__dso_data() 178 TEST_ASSERT_VAL("Wrong data", in test__dso_data() 228 TEST_ASSERT_VAL("failed to get dso", dso); in dsos__create() 266 TEST_ASSERT_VAL("failed to create dsos\n", in test__dso_data_cache() 294 TEST_ASSERT_VAL("failed to get fd", fd > 0); in test__dso_data_cache() 344 TEST_ASSERT_VAL("failed to set file limit", in test__dso_data_reopen() 347 TEST_ASSERT_VAL("failed to create dsos\n", in test__dso_data_reopen() [all …]
|
| A D | pe-file-parsing.c | 41 TEST_ASSERT_VAL("Failed to read build_id", in run_dir() 43 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir() 47 TEST_ASSERT_VAL("Failed to read debuglink", ret == 0); in run_dir() 48 TEST_ASSERT_VAL("Wrong debuglink", in run_dir() 53 TEST_ASSERT_VAL("Failed to read debug file build_id", in run_dir() 55 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir() 59 TEST_ASSERT_VAL("Failed to get dso", dso); in run_dir() 62 TEST_ASSERT_VAL("Failed to load symbols", ret == 0); in run_dir() 66 TEST_ASSERT_VAL("Failed to find main", sym); in run_dir()
|
| A D | bitmap.c | 46 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1")); in test__bitmap_print() 47 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,5")); in test__bitmap_print() 48 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() 49 TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5")); 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,3-6,8-10,24,35-37")); in test__bitmap_print() 52 TEST_ASSERT_VAL("failed to convert map", test_bitmap("1-10,12-20,22-30,32-40")); in test__bitmap_print()
|
| A D | util.c | 40 TEST_ASSERT_VAL("failed to allocate digests", digests != NULL); in test_sha1() 56 TEST_ASSERT_VAL("wrong output from sha1()", in test_sha1() 64 TEST_ASSERT_VAL("empty string", test_strreplace(' ', "", "123", "")); in test__util() 65 TEST_ASSERT_VAL("no match", test_strreplace('5', "123", "4", "123")); in test__util() 66 TEST_ASSERT_VAL("replace 1", test_strreplace('3', "123", "4", "124")); in test__util() 67 TEST_ASSERT_VAL("replace 2", test_strreplace('a', "abcabc", "ef", "efbcefbc")); in test__util() 68 TEST_ASSERT_VAL("replace long", test_strreplace('a', "abcabc", "longlong", in test__util()
|
| A D | maps.c | 105 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in() 111 TEST_ASSERT_VAL("failed to create map", map); in test__maps__merge_in() 120 TEST_ASSERT_VAL("failed to create map", map_kcore1); in test__maps__merge_in() 123 TEST_ASSERT_VAL("failed to create map", map_kcore2); in test__maps__merge_in() 126 TEST_ASSERT_VAL("failed to create map", map_kcore3); in test__maps__merge_in() 141 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in() 144 TEST_ASSERT_VAL("merge check failed", !ret); in test__maps__merge_in() 147 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in() 150 TEST_ASSERT_VAL("merge check failed", !ret); in test__maps__merge_in() 153 TEST_ASSERT_VAL("failed to merge map", !ret); in test__maps__merge_in() [all …]
|
| A D | hists_output.c | 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() 223 TEST_ASSERT_VAL("Invalid hist entry", in test1() 229 TEST_ASSERT_VAL("Invalid hist entry", in test1() 281 TEST_ASSERT_VAL("Invalid hist entry", in test2() [all …]
|
| A D | thread-maps-share.c | 42 TEST_ASSERT_VAL("failed to create threads", in test__thread_maps_share() 49 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t1))); in test__thread_maps_share() 50 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t2))); in test__thread_maps_share() 51 TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t3))); in test__thread_maps_share() 59 TEST_ASSERT_VAL("failed to find other leader", other_leader); in test__thread_maps_share() 76 TEST_ASSERT_VAL("maps don't match", maps__equal(other_maps, thread__maps(other_leader))); in test__thread_maps_share()
|
| A D | kmod-path.c | 17 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))
|
| A D | pmu.c | 414 TEST_ASSERT_VAL("cpu", pmu_name_len_no_suffix("cpu") == strlen("cpu")); in test__name_len() 418 TEST_ASSERT_VAL("Strips uncore_cha suffix", in test__name_len() 423 TEST_ASSERT_VAL("Strips mrvl_ddr_pmu suffix", in test__name_len() 435 TEST_ASSERT_VAL("i915", pmu_name_cmp("cpu", "i915") < 0); in test__name_cmp() 436 TEST_ASSERT_VAL("i915", pmu_name_cmp("i915", "cpu") > 0); in test__name_cmp() 437 TEST_ASSERT_VAL("cpum_cf", pmu_name_cmp("cpum_cf", "cpum_ce") > 0); in test__name_cmp() 438 TEST_ASSERT_VAL("cpum_cf", pmu_name_cmp("cpum_cf", "cpum_d0") < 0); in test__name_cmp() 440 TEST_ASSERT_VAL("uncore_cha suffixes ordered lt", in test__name_cmp() 442 TEST_ASSERT_VAL("uncore_cha suffixes ordered gt", in test__name_cmp() 446 TEST_ASSERT_VAL("mrvl_ddr_pmu suffixes ordered lt", in test__name_cmp() [all …]
|
| A D | mmap-thread-lookup.c | 170 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events() 181 TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy()); in mmap_events() 182 TEST_ASSERT_VAL("failed to synthesize maps", !err); in mmap_events() 236 TEST_ASSERT_VAL("failed with synthesizing all", in test__mmap_thread_lookup() 240 TEST_ASSERT_VAL("failed with synthesizing process", in test__mmap_thread_lookup()
|
| A D | hists_cumulate.c | 221 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test() 223 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test() 229 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test() 237 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); in do_test() 244 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test() 246 TEST_ASSERT_VAL(buf, in do_test() 252 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test() 255 TEST_ASSERT_VAL("Incorrect number of hist entry", in do_test() 257 TEST_ASSERT_VAL("Incorrect number of callchain entry", in do_test() 720 TEST_ASSERT_VAL("No memory", evlist); in test__hists_cumulate()
|
| A D | expand-cgroup.c | 28 TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist)); in test_expand_events() 104 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_default_events() 121 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_group_events() 150 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_libpfm_events() 177 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_metric_events()
|
| A D | mem.c | 19 TEST_ASSERT_VAL("Memory allocation failed", mi); in check() 25 TEST_ASSERT_VAL(failure, !strcmp(string, out)); in check()
|
| A D | bp_account.c | 89 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting() 99 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting() 105 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
|
| /tools/perf/arch/x86/tests/ |
| A D | hybrid.c | 45 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event() 51 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event() 62 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event() 68 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event() 81 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_sw_group_event() 85 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_sw_group_event() 98 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_group_modifier1() 106 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_group_modifier1() 119 TEST_ASSERT_VAL("missing pmu", pmu); in test__hybrid_raw1() 121 TEST_ASSERT_VAL("wrong config", test_perf_config(evsel, 0x1a)); in test__hybrid_raw1() [all …]
|