Lines Matching refs:core
79 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_hw_config()
112 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_tracepoint()
114 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type, evsel); in test__checkevent_tracepoint()
116 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, evsel); in test__checkevent_tracepoint()
117 TEST_ASSERT_EVSEL("wrong sample_period", 1 == evsel->core.attr.sample_period, evsel); in test__checkevent_tracepoint()
125 TEST_ASSERT_EVLIST("wrong number of entries", evlist->core.nr_entries > 1, evlist); in test__checkevent_tracepoint_multi()
130 PERF_TYPE_TRACEPOINT == evsel->core.attr.type, in test__checkevent_tracepoint_multi()
133 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, in test__checkevent_tracepoint_multi()
136 1 == evsel->core.attr.sample_period, in test__checkevent_tracepoint_multi()
147 TEST_ASSERT_EVLIST("wrong number of entries", 0 != evlist->core.nr_entries, evlist); in test__checkevent_raw()
155 evsel->core.attr.type == PERF_TYPE_RAW, in test__checkevent_raw()
167 if (pmu->type == evsel->core.attr.type) { in test__checkevent_raw()
185 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_numeric()
186 TEST_ASSERT_EVSEL("wrong type", 1 == evsel->core.attr.type, evsel); in test__checkevent_numeric()
187 TEST_ASSERT_EVSEL("wrong config", 1 == evsel->core.attr.config, evsel); in test__checkevent_numeric()
196 TEST_ASSERT_EVLIST("wrong number of entries", 0 != evlist->core.nr_entries, evlist); in test__checkevent_symbolic_name()
210 TEST_ASSERT_EVLIST("wrong number of entries", 0 != evlist->core.nr_entries, evlist); in test__checkevent_symbolic_name_config()
220 TEST_ASSERT_EVSEL("wrong period", 0 == evsel->core.attr.sample_period, evsel); in test__checkevent_symbolic_name_config()
221 TEST_ASSERT_EVSEL("wrong config1", 0 == evsel->core.attr.config1, evsel); in test__checkevent_symbolic_name_config()
222 TEST_ASSERT_EVSEL("wrong config2", 1 == evsel->core.attr.config2, evsel); in test__checkevent_symbolic_name_config()
231 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_symbolic_alias()
241 TEST_ASSERT_EVLIST("wrong number of entries", 0 != evlist->core.nr_entries, evlist); in test__checkevent_genhw()
244 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type, evsel); in test__checkevent_genhw()
254 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint()
255 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint()
256 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint()
258 (HW_BREAKPOINT_R | HW_BREAKPOINT_W) == evsel->core.attr.bp_type, in test__checkevent_breakpoint()
260 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint()
268 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_x()
269 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_x()
270 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_x()
271 TEST_ASSERT_EVSEL("wrong bp_type", HW_BREAKPOINT_X == evsel->core.attr.bp_type, evsel); in test__checkevent_breakpoint_x()
272 TEST_ASSERT_EVSEL("wrong bp_len", default_breakpoint_len() == evsel->core.attr.bp_len, in test__checkevent_breakpoint_x()
281 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_r()
282 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_r()
283 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_r()
284 TEST_ASSERT_EVSEL("wrong bp_type", HW_BREAKPOINT_R == evsel->core.attr.bp_type, evsel); in test__checkevent_breakpoint_r()
285 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint_r()
293 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_w()
294 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_w()
295 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_w()
296 TEST_ASSERT_EVSEL("wrong bp_type", HW_BREAKPOINT_W == evsel->core.attr.bp_type, evsel); in test__checkevent_breakpoint_w()
297 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint_w()
305 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_rw()
306 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_rw()
307 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_rw()
309 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type, in test__checkevent_breakpoint_rw()
311 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint_rw()
319 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_tracepoint_modifier()
320 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_tracepoint_modifier()
321 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_tracepoint_modifier()
322 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_tracepoint_modifier()
323 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_tracepoint_modifier()
333 TEST_ASSERT_EVLIST("wrong number of entries", evlist->core.nr_entries > 1, evlist); in test__checkevent_tracepoint_multi_modifier()
336 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_tracepoint_multi_modifier()
337 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_tracepoint_multi_modifier()
338 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_tracepoint_multi_modifier()
339 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_tracepoint_multi_modifier()
349 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_raw_modifier()
352 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_raw_modifier()
353 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_raw_modifier()
354 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_raw_modifier()
355 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_raw_modifier()
364 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_numeric_modifier()
367 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_numeric_modifier()
368 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_numeric_modifier()
369 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_numeric_modifier()
370 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_numeric_modifier()
380 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_symbolic_name_modifier()
384 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_symbolic_name_modifier()
385 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_symbolic_name_modifier()
386 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_symbolic_name_modifier()
387 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_symbolic_name_modifier()
397 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_exclude_host_modifier()
401 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__checkevent_exclude_host_modifier()
402 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__checkevent_exclude_host_modifier()
412 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_exclude_guest_modifier()
416 TEST_ASSERT_EVSEL("wrong exclude guest", evsel->core.attr.exclude_guest, evsel); in test__checkevent_exclude_guest_modifier()
417 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__checkevent_exclude_guest_modifier()
426 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_symbolic_alias_modifier()
427 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_symbolic_alias_modifier()
428 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_symbolic_alias_modifier()
429 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_symbolic_alias_modifier()
430 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_symbolic_alias_modifier()
440 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_genhw_modifier()
444 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_genhw_modifier()
445 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_genhw_modifier()
446 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_genhw_modifier()
447 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_genhw_modifier()
457 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_exclude_idle_modifier()
460 TEST_ASSERT_EVSEL("wrong exclude idle", evsel->core.attr.exclude_idle, evsel); in test__checkevent_exclude_idle_modifier()
461 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__checkevent_exclude_idle_modifier()
462 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__checkevent_exclude_idle_modifier()
463 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_exclude_idle_modifier()
464 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_exclude_idle_modifier()
465 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_exclude_idle_modifier()
466 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_exclude_idle_modifier()
476 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_exclude_idle_modifier_1()
479 TEST_ASSERT_EVSEL("wrong exclude idle", evsel->core.attr.exclude_idle, evsel); in test__checkevent_exclude_idle_modifier_1()
480 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__checkevent_exclude_idle_modifier_1()
481 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__checkevent_exclude_idle_modifier_1()
482 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_exclude_idle_modifier_1()
483 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_exclude_idle_modifier_1()
484 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_exclude_idle_modifier_1()
485 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_exclude_idle_modifier_1()
495 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_modifier()
496 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_modifier()
497 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_modifier()
498 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_modifier()
508 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_x_modifier()
509 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_x_modifier()
510 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_x_modifier()
511 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_x_modifier()
521 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_r_modifier()
522 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_r_modifier()
523 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_r_modifier()
524 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_r_modifier()
534 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_w_modifier()
535 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_w_modifier()
536 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_w_modifier()
537 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_w_modifier()
547 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_rw_modifier()
548 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_rw_modifier()
549 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_rw_modifier()
550 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_rw_modifier()
560 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_modifier_name()
561 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_modifier_name()
562 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_modifier_name()
563 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_modifier_name()
573 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_x_modifier_name()
574 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_x_modifier_name()
575 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_x_modifier_name()
576 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_x_modifier_name()
586 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_r_modifier_name()
587 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_r_modifier_name()
588 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_r_modifier_name()
589 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_r_modifier_name()
599 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_w_modifier_name()
600 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_w_modifier_name()
601 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_w_modifier_name()
602 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_w_modifier_name()
612 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_rw_modifier_name()
613 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_rw_modifier_name()
614 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_rw_modifier_name()
615 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_rw_modifier_name()
625 TEST_ASSERT_EVSEL("wrong number of entries", 2 == evlist->core.nr_entries, evsel); in test__checkevent_breakpoint_2_events()
627 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_2_events()
632 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_2_events()
644 TEST_ASSERT_EVSEL("wrong number of entries", 1 == evlist->core.nr_entries, evsel); in test__checkevent_pmu()
645 TEST_ASSERT_EVSEL("wrong type", core_pmu->type == evsel->core.attr.type, evsel); in test__checkevent_pmu()
647 TEST_ASSERT_EVSEL("wrong config1", 1 == evsel->core.attr.config1, evsel); in test__checkevent_pmu()
648 TEST_ASSERT_EVSEL("wrong config2", 3 == evsel->core.attr.config2, evsel); in test__checkevent_pmu()
649 TEST_ASSERT_EVSEL("wrong config3", 0 == evsel->core.attr.config3, evsel); in test__checkevent_pmu()
650 TEST_ASSERT_EVSEL("wrong config4", 0 == evsel->core.attr.config4, evsel); in test__checkevent_pmu()
655 TEST_ASSERT_EVSEL("wrong period", 0 == evsel->core.attr.sample_period, evsel); in test__checkevent_pmu()
664 TEST_ASSERT_EVSEL("wrong number of entries", 3 <= evlist->core.nr_entries, evsel); in test__checkevent_list()
667 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT != evsel->core.attr.type, evsel); in test__checkevent_list()
668 while (evsel->core.attr.type != PERF_TYPE_TRACEPOINT) { in test__checkevent_list()
669 TEST_ASSERT_EVSEL("wrong config", 1 == evsel->core.attr.config, evsel); in test__checkevent_list()
670 TEST_ASSERT_EVSEL("wrong config1", 0 == evsel->core.attr.config1, evsel); in test__checkevent_list()
671 TEST_ASSERT_EVSEL("wrong config2", 0 == evsel->core.attr.config2, evsel); in test__checkevent_list()
672 TEST_ASSERT_EVSEL("wrong config3", 0 == evsel->core.attr.config3, evsel); in test__checkevent_list()
673 TEST_ASSERT_EVSEL("wrong config4", 0 == evsel->core.attr.config4, evsel); in test__checkevent_list()
674 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_list()
675 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_list()
676 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_list()
677 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_list()
682 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type, evsel); in test__checkevent_list()
683 TEST_ASSERT_EVSEL("wrong sample_type", PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, in test__checkevent_list()
685 TEST_ASSERT_EVSEL("wrong sample_period", 1 == evsel->core.attr.sample_period, evsel); in test__checkevent_list()
686 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_list()
687 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__checkevent_list()
688 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_list()
689 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_list()
693 TEST_ASSERT_EVSEL("wrong type", 1 == evsel->core.attr.type, evsel); in test__checkevent_list()
694 TEST_ASSERT_EVSEL("wrong config", 1 == evsel->core.attr.config, evsel); in test__checkevent_list()
695 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__checkevent_list()
696 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_list()
697 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__checkevent_list()
698 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_list()
710 TEST_ASSERT_EVLIST("wrong number of entries", 2 == evlist->core.nr_entries, evlist); in test__checkevent_pmu_name()
711 TEST_ASSERT_EVSEL("wrong type", core_pmu->type == evsel->core.attr.type, evsel); in test__checkevent_pmu_name()
712 TEST_ASSERT_EVSEL("wrong config", 1 == evsel->core.attr.config, evsel); in test__checkevent_pmu_name()
717 TEST_ASSERT_EVSEL("wrong number of entries", 2 == evlist->core.nr_entries, evsel); in test__checkevent_pmu_name()
718 TEST_ASSERT_EVSEL("wrong type", core_pmu->type == evsel->core.attr.type, evsel); in test__checkevent_pmu_name()
719 TEST_ASSERT_EVSEL("wrong config", 2 == evsel->core.attr.config, evsel); in test__checkevent_pmu_name()
732 TEST_ASSERT_EVLIST("wrong number of entries", 2 == evlist->core.nr_entries, evlist); in test__checkevent_pmu_partial_time_callgraph()
733 TEST_ASSERT_EVSEL("wrong type", core_pmu->type == evsel->core.attr.type, evsel); in test__checkevent_pmu_partial_time_callgraph()
734 TEST_ASSERT_EVSEL("wrong config", 1 == evsel->core.attr.config, evsel); in test__checkevent_pmu_partial_time_callgraph()
739 TEST_ASSERT_EVSEL("wrong period", 0 == evsel->core.attr.sample_period, evsel); in test__checkevent_pmu_partial_time_callgraph()
741 TEST_ASSERT_EVSEL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type), evsel); in test__checkevent_pmu_partial_time_callgraph()
745 TEST_ASSERT_EVSEL("wrong type", core_pmu->type == evsel->core.attr.type, evsel); in test__checkevent_pmu_partial_time_callgraph()
746 TEST_ASSERT_EVSEL("wrong config", 2 == evsel->core.attr.config, evsel); in test__checkevent_pmu_partial_time_callgraph()
751 TEST_ASSERT_EVSEL("wrong period", 0 == evsel->core.attr.sample_period, evsel); in test__checkevent_pmu_partial_time_callgraph()
753 TEST_ASSERT_EVSEL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type), evsel); in test__checkevent_pmu_partial_time_callgraph()
763 TEST_ASSERT_EVLIST("wrong number of entries", 1 <= evlist->core.nr_entries, evlist); in test__checkevent_pmu_events()
767 core_pmu->type == evsel->core.attr.type || in test__checkevent_pmu_events()
771 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_pmu_events()
772 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_pmu_events()
773 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_pmu_events()
774 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_pmu_events()
775 TEST_ASSERT_EVSEL("wrong pinned", !evsel->core.attr.pinned, evsel); in test__checkevent_pmu_events()
776 TEST_ASSERT_EVSEL("wrong exclusive", !evsel->core.attr.exclusive, evsel); in test__checkevent_pmu_events()
790 TEST_ASSERT_EVLIST("wrong number of entries", evlist->core.nr_entries >= 2, evlist); in test__checkevent_pmu_events_mix()
791 for (int i = 0; i < evlist->core.nr_entries - 1; i++) { in test__checkevent_pmu_events_mix()
794 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_pmu_events_mix()
795 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_pmu_events_mix()
796 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_pmu_events_mix()
797 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_pmu_events_mix()
798 TEST_ASSERT_EVSEL("wrong pinned", !evsel->core.attr.pinned, evsel); in test__checkevent_pmu_events_mix()
799 TEST_ASSERT_EVSEL("wrong exclusive", !evsel->core.attr.exclusive, evsel); in test__checkevent_pmu_events_mix()
804 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_pmu_events_mix()
805 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_pmu_events_mix()
806 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_pmu_events_mix()
807 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_pmu_events_mix()
808 TEST_ASSERT_EVSEL("wrong pinned", !evsel->core.attr.pinned, evsel); in test__checkevent_pmu_events_mix()
809 TEST_ASSERT_EVSEL("wrong exclusive", !evsel->core.attr.pinned, evsel); in test__checkevent_pmu_events_mix()
908 evlist->core.nr_entries == (num_core_entries(evlist) * 2), in test__group1()
920 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__group1()
921 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group1()
922 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group1()
923 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group1()
924 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group1()
925 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group1()
927 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group1()
935 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group1()
936 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group1()
937 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group1()
938 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group1()
939 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group1()
940 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip == 2, evsel); in test__group1()
953 evlist->core.nr_entries == (2 * num_core_entries(evlist) + 1), in test__group2()
965 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, in test__group2()
967 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, in test__group2()
969 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group2()
970 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, in test__group2()
972 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, in test__group2()
974 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group2()
976 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, in test__group2()
984 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, in test__group2()
986 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, in test__group2()
988 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group2()
989 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, in test__group2()
991 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, in test__group2()
993 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group2()
1004 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__group2()
1005 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group2()
1006 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group2()
1007 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group2()
1008 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group2()
1009 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group2()
1021 evlist->core.nr_entries == (3 * perf_pmus__num_core_pmus() + 2), in test__group3()
1031 if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT) { in test__group3()
1035 evsel->core.attr.sample_type == PERF_TP_SAMPLE_TYPE, in test__group3()
1038 1 == evsel->core.attr.sample_period, in test__group3()
1040 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, in test__group3()
1042 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, in test__group3()
1044 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group3()
1045 TEST_ASSERT_EVSEL("wrong exclude guest", evsel->core.attr.exclude_guest, in test__group3()
1047 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, in test__group3()
1049 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group3()
1053 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, in test__group3()
1060 if (evsel->core.attr.exclude_user) { in test__group3()
1063 evsel->core.attr.exclude_user, evsel); in test__group3()
1065 !evsel->core.attr.exclude_kernel, evsel); in test__group3()
1066 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, in test__group3()
1069 !evsel->core.attr.exclude_guest, evsel); in test__group3()
1071 !evsel->core.attr.exclude_host, evsel); in test__group3()
1073 evsel->core.attr.precise_ip == 3, evsel); in test__group3()
1086 !evsel->core.attr.exclude_kernel, evsel); in test__group3()
1088 !evsel->core.attr.exclude_hv, evsel); in test__group3()
1090 !evsel->core.attr.exclude_guest, evsel); in test__group3()
1092 evsel->core.attr.exclude_host, evsel); in test__group3()
1093 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, in test__group3()
1097 if (evsel->core.nr_members == 2) { in test__group3()
1106 if (evsel->core.attr.type == 1) { in test__group3()
1108 TEST_ASSERT_EVSEL("wrong config", 3 == evsel->core.attr.config, evsel); in test__group3()
1109 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, in test__group3()
1111 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, in test__group3()
1113 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group3()
1114 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, in test__group3()
1116 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, in test__group3()
1118 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group3()
1130 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group3()
1131 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group3()
1132 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group3()
1133 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group3()
1134 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group3()
1135 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group3()
1147 evlist->core.nr_entries == (num_core_entries(evlist) * 2), in test__group4()
1159 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group4()
1160 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group4()
1161 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group4()
1162 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group4()
1163 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group4()
1164 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip == 1, evsel); in test__group4()
1167 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group4()
1176 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__group4()
1177 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group4()
1178 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group4()
1179 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group4()
1180 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group4()
1181 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip == 2, evsel); in test__group4()
1194 evlist->core.nr_entries == (5 * num_core_entries(evlist)), in test__group5()
1206 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group5()
1207 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group5()
1208 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group5()
1209 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group5()
1210 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group5()
1211 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group5()
1214 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group5()
1223 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group5()
1224 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group5()
1225 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group5()
1226 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group5()
1227 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group5()
1228 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group5()
1239 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group5()
1240 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group5()
1241 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group5()
1242 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group5()
1243 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group5()
1244 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group5()
1247 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group5()
1256 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group5()
1257 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group5()
1258 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group5()
1259 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group5()
1260 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group5()
1261 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group5()
1271 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group5()
1272 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group5()
1273 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group5()
1274 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group5()
1275 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group5()
1276 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group5()
1287 evlist->core.nr_entries == (2 * num_core_entries(evlist)), in test__group_gh1()
1299 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh1()
1300 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group_gh1()
1301 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group_gh1()
1302 TEST_ASSERT_EVSEL("wrong exclude guest", evsel->core.attr.exclude_guest, evsel); in test__group_gh1()
1303 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group_gh1()
1304 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh1()
1307 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group_gh1()
1315 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh1()
1316 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group_gh1()
1317 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group_gh1()
1318 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh1()
1319 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group_gh1()
1320 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh1()
1332 evlist->core.nr_entries == (2 * num_core_entries(evlist)), in test__group_gh2()
1344 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh2()
1345 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group_gh2()
1346 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group_gh2()
1347 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh2()
1348 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group_gh2()
1349 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh2()
1352 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group_gh2()
1360 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh2()
1361 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__group_gh2()
1362 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__group_gh2()
1363 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh2()
1364 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group_gh2()
1365 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh2()
1377 evlist->core.nr_entries == (2 * num_core_entries(evlist)), in test__group_gh3()
1389 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh3()
1390 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group_gh3()
1391 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group_gh3()
1392 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh3()
1393 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group_gh3()
1394 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh3()
1397 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group_gh3()
1405 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh3()
1406 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group_gh3()
1407 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group_gh3()
1408 TEST_ASSERT_EVSEL("wrong exclude guest", evsel->core.attr.exclude_guest, evsel); in test__group_gh3()
1409 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group_gh3()
1410 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh3()
1422 evlist->core.nr_entries == (2 * num_core_entries(evlist)), in test__group_gh4()
1434 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh4()
1435 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group_gh4()
1436 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group_gh4()
1437 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh4()
1438 TEST_ASSERT_EVSEL("wrong exclude host", evsel->core.attr.exclude_host, evsel); in test__group_gh4()
1439 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh4()
1442 TEST_ASSERT_EVSEL("wrong core.nr_members", evsel->core.nr_members == 2, evsel); in test__group_gh4()
1450 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__group_gh4()
1451 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__group_gh4()
1452 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__group_gh4()
1453 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__group_gh4()
1454 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__group_gh4()
1455 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__group_gh4()
1467 evlist->core.nr_entries == (3 * num_core_entries(evlist)), in test__leader_sample1()
1476 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__leader_sample1()
1477 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__leader_sample1()
1478 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__leader_sample1()
1479 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__leader_sample1()
1480 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__leader_sample1()
1481 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__leader_sample1()
1491 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__leader_sample1()
1492 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__leader_sample1()
1493 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__leader_sample1()
1494 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__leader_sample1()
1495 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__leader_sample1()
1496 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__leader_sample1()
1505 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__leader_sample1()
1506 TEST_ASSERT_EVSEL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel, evsel); in test__leader_sample1()
1507 TEST_ASSERT_EVSEL("wrong exclude_hv", !evsel->core.attr.exclude_hv, evsel); in test__leader_sample1()
1508 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__leader_sample1()
1509 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__leader_sample1()
1510 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__leader_sample1()
1523 evlist->core.nr_entries == (2 * num_core_entries(evlist)), in test__leader_sample2()
1532 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__leader_sample2()
1533 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__leader_sample2()
1534 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__leader_sample2()
1535 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__leader_sample2()
1536 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__leader_sample2()
1537 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__leader_sample2()
1547 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__leader_sample2()
1548 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__leader_sample2()
1549 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__leader_sample2()
1550 TEST_ASSERT_EVSEL("wrong exclude guest", !evsel->core.attr.exclude_guest, evsel); in test__leader_sample2()
1551 TEST_ASSERT_EVSEL("wrong exclude host", !evsel->core.attr.exclude_host, evsel); in test__leader_sample2()
1552 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__leader_sample2()
1565 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_pinned_modifier()
1570 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_pinned_modifier()
1571 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_pinned_modifier()
1572 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_pinned_modifier()
1573 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_pinned_modifier()
1574 TEST_ASSERT_EVSEL("wrong pinned", evsel->core.attr.pinned, evsel); in test__checkevent_pinned_modifier()
1584 evlist->core.nr_entries == (3 * num_core_entries(evlist)), in test__pinned_group()
1597 TEST_ASSERT_EVSEL("wrong pinned", evsel->core.attr.pinned, evsel); in test__pinned_group()
1604 TEST_ASSERT_EVSEL("wrong pinned", !evsel->core.attr.pinned, evsel); in test__pinned_group()
1611 TEST_ASSERT_EVSEL("wrong pinned", !evsel->core.attr.pinned, evsel); in test__pinned_group()
1621 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_exclusive_modifier()
1623 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_exclusive_modifier()
1624 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_exclusive_modifier()
1625 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_exclusive_modifier()
1626 TEST_ASSERT_EVSEL("wrong precise_ip", evsel->core.attr.precise_ip, evsel); in test__checkevent_exclusive_modifier()
1627 TEST_ASSERT_EVSEL("wrong exclusive", evsel->core.attr.exclusive, evsel); in test__checkevent_exclusive_modifier()
1637 evlist->core.nr_entries == 3 * num_core_entries(evlist), in test__exclusive_group()
1650 TEST_ASSERT_EVSEL("wrong exclusive", evsel->core.attr.exclusive, evsel); in test__exclusive_group()
1657 TEST_ASSERT_EVSEL("wrong exclusive", !evsel->core.attr.exclusive, evsel); in test__exclusive_group()
1664 TEST_ASSERT_EVSEL("wrong exclusive", !evsel->core.attr.exclusive, evsel); in test__exclusive_group()
1672 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_len()
1673 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_len()
1674 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_len()
1676 (HW_BREAKPOINT_R | HW_BREAKPOINT_W) == evsel->core.attr.bp_type, in test__checkevent_breakpoint_len()
1678 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_1 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint_len()
1687 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_len_w()
1688 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type, evsel); in test__checkevent_breakpoint_len_w()
1689 TEST_ASSERT_EVSEL("wrong config", 0 == evsel->core.attr.config, evsel); in test__checkevent_breakpoint_len_w()
1690 TEST_ASSERT_EVSEL("wrong bp_type", HW_BREAKPOINT_W == evsel->core.attr.bp_type, evsel); in test__checkevent_breakpoint_len_w()
1691 TEST_ASSERT_EVSEL("wrong bp_len", HW_BREAKPOINT_LEN_2 == evsel->core.attr.bp_len, evsel); in test__checkevent_breakpoint_len_w()
1701 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_breakpoint_len_rw_modifier()
1702 TEST_ASSERT_EVSEL("wrong exclude_user", !evsel->core.attr.exclude_user, evsel); in test__checkevent_breakpoint_len_rw_modifier()
1703 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__checkevent_breakpoint_len_rw_modifier()
1704 TEST_ASSERT_EVSEL("wrong exclude_hv", evsel->core.attr.exclude_hv, evsel); in test__checkevent_breakpoint_len_rw_modifier()
1705 TEST_ASSERT_EVSEL("wrong precise_ip", !evsel->core.attr.precise_ip, evsel); in test__checkevent_breakpoint_len_rw_modifier()
1715 evlist->core.nr_entries == 1 + num_core_entries(evlist), in test__checkevent_precise_max_modifier()
1726 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_config_symbol()
1736 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_config_raw()
1745 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_config_num()
1755 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_config_cache()
1780 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__intel_pt()
1801 …TEST_ASSERT_VAL("wrong number of entries", 2 * perf_pmus__num_core_pmus() == evlist->core.nr_entri… in test__ratio_to_prev()
1808 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__ratio_to_prev()
1810 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__ratio_to_prev()
1816 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__ratio_to_prev()
1818 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 0); in test__ratio_to_prev()
1828 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__ratio_to_prev()
1838 evlist->core.nr_entries == num_core_entries(evlist), in test__checkevent_complex_name()
1851 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_raw_pmu()
1852 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type, evsel); in test__checkevent_raw_pmu()
1853 TEST_ASSERT_EVSEL("wrong config", 0x1a == evsel->core.attr.config, evsel); in test__checkevent_raw_pmu()
1862 evlist->core.nr_entries == num_core_entries(evlist), in test__sym_event_slash()
1865 TEST_ASSERT_EVSEL("wrong exclude_kernel", evsel->core.attr.exclude_kernel, evsel); in test__sym_event_slash()
1874 evlist->core.nr_entries == num_core_entries(evlist), in test__sym_event_dc()
1877 TEST_ASSERT_EVSEL("wrong exclude_user", evsel->core.attr.exclude_user, evsel); in test__sym_event_dc()
1886 evlist->core.nr_entries == num_core_entries(evlist), in test__term_equal_term()
1898 evlist->core.nr_entries == num_core_entries(evlist), in test__term_equal_legacy()
1954 count_tracepoints() == evlist->core.nr_entries); in test__all_tracepoints()
2871 TEST_ASSERT_EVSEL("wrong type", evsel1->core.attr.type == evsel2->core.attr.type, evsel1); in test__checkevent_pmu_events_alias()
2872 TEST_ASSERT_EVSEL("wrong config", evsel1->core.attr.config == evsel2->core.attr.config, in test__checkevent_pmu_events_alias()