Lines Matching full:core
27 * opened once for each core PMU type. Otherwise fall back to the legacy in num_core_entries()
39 __u32 type = evsel->core.attr.type; in test_config()
40 __u64 config = evsel->core.attr.config; in test_config()
87 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint()
89 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
91 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
92 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
100 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
105 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
107 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
109 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
119 TEST_ASSERT_VAL("wrong number of entries", 0 != evlist->core.nr_entries); in test__checkevent_raw()
121 perf_evlist__for_each_evsel(&evlist->core, evsel) { in test__checkevent_raw()
132 * always successfully open on the first available core PMU in test__checkevent_raw()
156 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_numeric()
157 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_numeric()
182 TEST_ASSERT_VAL("wrong number of entries", 0 != evlist->core.nr_entries); in test__checkevent_symbolic_name()
184 perf_evlist__for_each_evsel(&evlist->core, evsel) { in test__checkevent_symbolic_name()
198 TEST_ASSERT_VAL("wrong number of entries", 0 != evlist->core.nr_entries); in test__checkevent_symbolic_name_config()
200 perf_evlist__for_each_evsel(&evlist->core, evsel) { in test__checkevent_symbolic_name_config()
220 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_alias()
221 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_symbolic_alias()
230 TEST_ASSERT_VAL("wrong number of entries", 0 != evlist->core.nr_entries); in test__checkevent_genhw()
232 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_genhw()
243 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint()
244 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint()
247 evsel->core.attr.bp_type); in test__checkevent_breakpoint()
249 evsel->core.attr.bp_len); in test__checkevent_breakpoint()
257 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_x()
258 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_x()
261 HW_BREAKPOINT_X == evsel->core.attr.bp_type); in test__checkevent_breakpoint_x()
262 TEST_ASSERT_VAL("wrong bp_len", default_breakpoint_len() == evsel->core.attr.bp_len); in test__checkevent_breakpoint_x()
270 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_r()
272 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_r()
275 HW_BREAKPOINT_R == evsel->core.attr.bp_type); in test__checkevent_breakpoint_r()
277 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_r()
285 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_w()
287 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_w()
290 HW_BREAKPOINT_W == evsel->core.attr.bp_type); in test__checkevent_breakpoint_w()
292 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_w()
300 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_rw()
302 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_rw()
305 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type); in test__checkevent_breakpoint_rw()
307 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_rw()
315 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_tracepoint_modifier()
316 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_modifier()
317 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_modifier()
318 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_modifier()
328 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi_modifier()
330 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_tracepoint_multi_modifier()
344 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_raw_modifier()
357 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_numeric_modifier()
371 evlist->core.nr_entries == num_core_entries()); in test__checkevent_symbolic_name_modifier()
373 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_symbolic_name_modifier()
386 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_exclude_host_modifier()
397 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_exclude_guest_modifier()
408 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_symbolic_alias_modifier()
409 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_alias_modifier()
410 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_symbolic_alias_modifier()
411 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_alias_modifier()
420 perf_evlist__for_each_entry(&evlist->core, evsel) { in test__checkevent_genhw_modifier()
433 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier()
434 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier()
435 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier()
436 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier()
437 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier()
438 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier()
439 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier()
448 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier_1()
449 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier_1()
450 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier_1()
451 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier_1()
452 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier_1()
453 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier_1()
454 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier_1()
464 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_modifier()
465 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_modifier()
466 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_modifier()
467 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_modifier()
477 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_x_modifier()
478 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_x_modifier()
479 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_x_modifier()
480 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_x_modifier()
490 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_r_modifier()
491 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_r_modifier()
492 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_r_modifier()
493 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_r_modifier()
503 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_w_modifier()
504 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_w_modifier()
505 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_w_modifier()
506 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_w_modifier()
516 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_rw_modifier()
517 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_rw_modifier()
518 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_rw_modifier()
519 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_rw_modifier()
529 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_modifier_name()
530 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_modifier_name()
531 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_modifier_name()
532 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_modifier_name()
542 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_x_modifier_name()
543 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_x_modifier_name()
544 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_x_modifier_name()
545 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_x_modifier_name()
555 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_r_modifier_name()
556 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_r_modifier_name()
557 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_r_modifier_name()
558 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_r_modifier_name()
568 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_w_modifier_name()
569 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_w_modifier_name()
570 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_w_modifier_name()
571 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_w_modifier_name()
581 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_rw_modifier_name()
582 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_rw_modifier_name()
583 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_rw_modifier_name()
584 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_rw_modifier_name()
594 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_breakpoint_2_events()
596 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_2_events()
601 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_2_events()
612 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_pmu()
613 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu()
615 TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1); in test__checkevent_pmu()
616 TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2); in test__checkevent_pmu()
617 TEST_ASSERT_VAL("wrong config3", 0 == evsel->core.attr.config3); in test__checkevent_pmu()
622 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu()
631 TEST_ASSERT_VAL("wrong number of entries", 3 <= evlist->core.nr_entries); in test__checkevent_list()
634 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT != evsel->core.attr.type); in test__checkevent_list()
635 while (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { in test__checkevent_list()
637 TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1); in test__checkevent_list()
638 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__checkevent_list()
639 TEST_ASSERT_VAL("wrong config3", 0 == evsel->core.attr.config3); in test__checkevent_list()
640 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_list()
641 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
642 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
643 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
648 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_list()
650 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_list()
651 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_list()
652 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
653 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
654 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_list()
655 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
659 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_list()
661 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
662 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_list()
663 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
664 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_list()
674 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
675 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
681 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
682 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
694 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_partial_time_callgraph()
695 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
701 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
703 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
707 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
713 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
715 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
724 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_pmu_events()
725 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type || in test__checkevent_pmu_events()
728 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events()
730 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events()
731 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events()
732 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events()
733 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events()
734 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events()
746 * opened on each core PMU. in test__checkevent_pmu_events_mix()
748 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries >= 2); in test__checkevent_pmu_events_mix()
749 for (int i = 0; i < evlist->core.nr_entries - 1; i++) { in test__checkevent_pmu_events_mix()
753 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
755 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
756 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
757 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
758 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
759 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events_mix()
765 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
767 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
768 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
769 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
770 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
771 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
861 evlist->core.nr_entries == (num_core_entries() * 2)); in test__group1()
870 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__group1()
874 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group1()
875 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group1()
876 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
877 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group1()
878 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
879 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group1()
881 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group1()
887 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group1()
891 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group1()
892 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group1()
893 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
894 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group1()
895 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
896 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group1()
909 evlist->core.nr_entries == (2 * num_core_entries() + 1)); in test__group2()
919 if (evsel->core.attr.type == PERF_TYPE_SOFTWARE) { in test__group2()
924 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
925 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
926 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
927 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group2()
928 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
929 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
931 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group2()
936 if (evsel->core.attr.type == PERF_TYPE_HARDWARE && in test__group2()
939 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
940 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group2()
941 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
942 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group2()
943 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
944 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
951 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group2()
955 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group2()
956 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
957 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
958 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group2()
959 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
960 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
973 evlist->core.nr_entries == (3 * perf_pmus__num_core_pmus() + 2)); in test__group3()
977 * regardless of the number of core PMUs. in test__group3()
982 if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) { in test__group3()
986 evsel->core.attr.sample_type == PERF_TP_SAMPLE_TYPE); in test__group3()
987 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__group3()
988 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
989 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
990 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
991 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
992 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
993 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
996 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
1001 if (evsel->core.attr.type == PERF_TYPE_HARDWARE && in test__group3()
1003 if (evsel->core.attr.exclude_user) { in test__group3()
1006 evsel->core.attr.exclude_user); in test__group3()
1008 !evsel->core.attr.exclude_kernel); in test__group3()
1009 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
1011 !evsel->core.attr.exclude_guest); in test__group3()
1013 !evsel->core.attr.exclude_host); in test__group3()
1015 evsel->core.attr.precise_ip == 3); in test__group3()
1026 !evsel->core.attr.exclude_kernel); in test__group3()
1028 !evsel->core.attr.exclude_hv); in test__group3()
1030 !evsel->core.attr.exclude_guest); in test__group3()
1032 evsel->core.attr.exclude_host); in test__group3()
1033 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
1035 if (evsel->core.nr_members == 2) { in test__group3()
1043 if (evsel->core.attr.type == 1) { in test__group3()
1046 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
1047 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
1048 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
1049 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
1050 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group3()
1051 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
1058 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__group3()
1062 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
1063 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group3()
1064 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
1065 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
1066 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
1067 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
1079 evlist->core.nr_entries == (num_core_entries() * 2)); in test__group4()
1088 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group4()
1092 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group4()
1093 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group4()
1094 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
1095 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group4()
1096 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
1097 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1); in test__group4()
1100 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group4()
1106 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__group4()
1110 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group4()
1111 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group4()
1112 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
1113 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group4()
1114 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
1115 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group4()
1129 evlist->core.nr_entries == (5 * num_core_entries())); in test__group5()
1136 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group5()
1140 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
1141 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
1142 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
1143 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
1144 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
1145 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
1148 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
1154 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__group5()
1158 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
1159 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
1160 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
1161 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
1162 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
1163 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
1171 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group5()
1175 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
1176 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
1177 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
1178 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
1179 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
1180 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
1183 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
1189 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__group5()
1193 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
1194 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
1195 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
1196 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
1197 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
1198 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
1205 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group5()
1209 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
1210 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
1211 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
1212 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
1213 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group5()
1214 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
1225 evlist->core.nr_entries == (2 * num_core_entries())); in test__group_gh1()
1234 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group_gh1()
1238 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1239 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1240 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1241 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh1()
1242 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1243 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1246 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh1()
1251 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__group_gh1()
1255 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1256 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1257 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1258 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh1()
1259 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1260 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1272 evlist->core.nr_entries == (2 * num_core_entries())); in test__group_gh2()
1281 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group_gh2()
1285 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1286 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1287 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1288 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1289 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh2()
1290 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1293 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh2()
1298 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__group_gh2()
1302 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1303 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1304 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1305 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1306 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh2()
1307 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1319 evlist->core.nr_entries == (2 * num_core_entries())); in test__group_gh3()
1328 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group_gh3()
1332 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1333 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1334 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1335 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh3()
1336 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh3()
1337 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1340 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh3()
1345 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__group_gh3()
1349 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1350 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1351 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1352 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh3()
1353 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh3()
1354 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1366 evlist->core.nr_entries == (2 * num_core_entries())); in test__group_gh4()
1375 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__group_gh4()
1379 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1380 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1381 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1382 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1383 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh4()
1384 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1387 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh4()
1392 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__group_gh4()
1396 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1397 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1398 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1399 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1400 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh4()
1401 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1413 evlist->core.nr_entries == (3 * num_core_entries())); in test__leader_sample1()
1420 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__leader_sample1()
1424 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1425 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1426 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1427 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__leader_sample1()
1428 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1429 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1436 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__leader_sample1()
1440 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1441 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1442 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1443 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__leader_sample1()
1444 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1445 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1451 ret = assert_hw(&evsel->core, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses"); in test__leader_sample1()
1455 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1456 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1457 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1458 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__leader_sample1()
1459 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1460 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1473 evlist->core.nr_entries == (2 * num_core_entries())); in test__leader_sample2()
1480 ret = assert_hw(&evsel->core, PERF_COUNT_HW_INSTRUCTIONS, "instructions"); in test__leader_sample2()
1484 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1485 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1486 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1487 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__leader_sample2()
1488 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1489 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1496 ret = assert_hw(&evsel->core, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses"); in test__leader_sample2()
1500 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1501 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1502 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1503 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__leader_sample2()
1504 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1505 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1518 evlist->core.nr_entries == num_core_entries()); in test__checkevent_pinned_modifier()
1522 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_pinned_modifier()
1523 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_pinned_modifier()
1524 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pinned_modifier()
1525 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_pinned_modifier()
1526 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__checkevent_pinned_modifier()
1536 evlist->core.nr_entries == (3 * num_core_entries())); in test__pinned_group()
1543 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__pinned_group()
1551 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__pinned_group()
1555 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__pinned_group()
1559 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1563 ret = assert_hw(&evsel->core, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses"); in test__pinned_group()
1567 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1576 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclusive_modifier()
1577 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_exclusive_modifier()
1578 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclusive_modifier()
1579 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_exclusive_modifier()
1580 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__checkevent_exclusive_modifier()
1590 evlist->core.nr_entries == 3 * num_core_entries()); in test__exclusive_group()
1597 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__exclusive_group()
1605 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__exclusive_group()
1609 ret = assert_hw(&evsel->core, PERF_COUNT_HW_CACHE_MISSES, "cache-misses"); in test__exclusive_group()
1613 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1617 ret = assert_hw(&evsel->core, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses"); in test__exclusive_group()
1621 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1629 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_len()
1630 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len()
1633 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len()
1635 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len()
1644 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_len_w()
1645 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len_w()
1648 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len_w()
1650 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len_w()
1660 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_len_rw_modifier()
1661 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_len_rw_modifier()
1662 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_len_rw_modifier()
1663 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_len_rw_modifier()
1673 evlist->core.nr_entries == 1 + num_core_entries()); in test__checkevent_precise_max_modifier()
1674 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_precise_max_modifier()
1753 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw_pmu()
1754 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_raw_pmu()
1762 int ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__sym_event_slash()
1767 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__sym_event_slash()
1774 int ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__sym_event_dc()
1779 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__sym_event_dc()
1786 int ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__term_equal_term()
1798 int ret = assert_hw(&evsel->core, PERF_COUNT_HW_CPU_CYCLES, "cycles"); in test__term_equal_legacy()
1856 count_tracepoints() == evlist->core.nr_entries); in test__all_tracepoints()
2780 TEST_ASSERT_VAL("wrong type", evsel1->core.attr.type == evsel2->core.attr.type); in test__checkevent_pmu_events_alias()
2781 TEST_ASSERT_VAL("wrong config", evsel1->core.attr.config == evsel2->core.attr.config); in test__checkevent_pmu_events_alias()