Lines Matching refs:core

53 	TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);  in test__checkevent_tracepoint()
54 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->core.nr_groups); in test__checkevent_tracepoint()
55 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
57 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
58 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
66 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
67 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->core.nr_groups); in test__checkevent_tracepoint_multi()
71 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
73 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
75 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
84 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw()
85 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw()
86 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw()
94 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_numeric()
95 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_numeric()
96 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_numeric()
104 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_name()
105 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name()
107 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__checkevent_symbolic_name()
115 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_name_config()
116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name_config()
118 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__checkevent_symbolic_name_config()
124 0 == evsel->core.attr.sample_period); in test__checkevent_symbolic_name_config()
126 0 == evsel->core.attr.config1); in test__checkevent_symbolic_name_config()
128 1 == evsel->core.attr.config2); in test__checkevent_symbolic_name_config()
136 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_alias()
137 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_symbolic_alias()
139 PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); in test__checkevent_symbolic_alias()
147 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_genhw()
148 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); in test__checkevent_genhw()
149 TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config); in test__checkevent_genhw()
157 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint()
158 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint()
159 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint()
161 evsel->core.attr.bp_type); in test__checkevent_breakpoint()
163 evsel->core.attr.bp_len); in test__checkevent_breakpoint()
171 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_x()
172 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_x()
173 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_x()
175 HW_BREAKPOINT_X == evsel->core.attr.bp_type); in test__checkevent_breakpoint_x()
176 TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len); in test__checkevent_breakpoint_x()
184 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_r()
186 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_r()
187 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_r()
189 HW_BREAKPOINT_R == evsel->core.attr.bp_type); in test__checkevent_breakpoint_r()
191 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_r()
199 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_w()
201 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_w()
202 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_w()
204 HW_BREAKPOINT_W == evsel->core.attr.bp_type); in test__checkevent_breakpoint_w()
206 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_w()
214 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_rw()
216 PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_rw()
217 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_rw()
219 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type); in test__checkevent_breakpoint_rw()
221 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_rw()
229 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_tracepoint_modifier()
230 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_modifier()
231 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_modifier()
232 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_modifier()
242 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi_modifier()
246 !evsel->core.attr.exclude_user); in test__checkevent_tracepoint_multi_modifier()
248 evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_multi_modifier()
249 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_multi_modifier()
250 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_multi_modifier()
260 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_raw_modifier()
261 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_raw_modifier()
262 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_raw_modifier()
263 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_raw_modifier()
272 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_numeric_modifier()
273 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_numeric_modifier()
274 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_numeric_modifier()
275 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_numeric_modifier()
284 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_symbolic_name_modifier()
285 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_name_modifier()
286 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_symbolic_name_modifier()
287 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_name_modifier()
296 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_host_modifier()
297 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_host_modifier()
306 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__checkevent_exclude_guest_modifier()
307 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_guest_modifier()
316 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_symbolic_alias_modifier()
317 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_alias_modifier()
318 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_symbolic_alias_modifier()
319 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_alias_modifier()
328 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_genhw_modifier()
329 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_genhw_modifier()
330 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_genhw_modifier()
331 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_genhw_modifier()
340 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier()
341 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier()
342 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier()
343 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier()
344 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier()
345 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier()
346 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier()
355 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier_1()
356 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier_1()
357 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier_1()
358 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier_1()
359 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier_1()
360 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier_1()
361 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier_1()
371 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_modifier()
372 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_modifier()
373 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_modifier()
374 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_modifier()
385 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_x_modifier()
386 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_x_modifier()
387 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_x_modifier()
388 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_x_modifier()
399 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_r_modifier()
400 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_r_modifier()
401 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_r_modifier()
402 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_r_modifier()
413 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_w_modifier()
414 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_w_modifier()
415 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_w_modifier()
416 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_w_modifier()
427 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_rw_modifier()
428 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_rw_modifier()
429 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_rw_modifier()
430 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_rw_modifier()
442 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_pmu()
443 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu()
444 TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config); in test__checkevent_pmu()
445 TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1); in test__checkevent_pmu()
446 TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2); in test__checkevent_pmu()
451 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu()
460 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__checkevent_list()
463 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_list()
464 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
465 TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1); in test__checkevent_list()
466 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__checkevent_list()
467 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_list()
468 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
469 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
470 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
474 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_list()
476 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_list()
477 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_list()
478 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
479 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
480 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_list()
481 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
485 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_list()
486 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
487 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
488 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_list()
489 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
490 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_list()
500 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
501 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
502 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_name()
507 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
508 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
509 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); in test__checkevent_pmu_name()
521 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_partial_time_callgraph()
522 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
523 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_partial_time_callgraph()
528 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
530 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
534 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
535 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); in test__checkevent_pmu_partial_time_callgraph()
540 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
542 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
551 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_pmu_events()
552 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_events()
554 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events()
556 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events()
557 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events()
558 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events()
559 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events()
560 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events()
571 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_events_mix()
573 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
575 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
576 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
577 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
578 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
579 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__checkevent_pmu_events_mix()
583 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_events_mix()
584 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_events_mix()
586 !evsel->core.attr.exclude_user); in test__checkevent_pmu_events_mix()
588 evsel->core.attr.exclude_kernel); in test__checkevent_pmu_events_mix()
589 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pmu_events_mix()
590 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_pmu_events_mix()
591 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
592 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.pinned); in test__checkevent_pmu_events_mix()
672 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group1()
673 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group1()
677 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
679 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group1()
680 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group1()
681 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group1()
682 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
683 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group1()
684 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
685 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group1()
687 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group1()
693 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
695 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group1()
696 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group1()
697 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group1()
698 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group1()
700 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group1()
701 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group1()
702 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group1()
714 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__group2()
715 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group2()
719 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__group2()
721 PERF_COUNT_SW_PAGE_FAULTS == evsel->core.attr.config); in test__group2()
722 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
723 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
724 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
725 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group2()
726 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
727 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
729 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group2()
735 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
737 PERF_COUNT_HW_CACHE_REFERENCES == evsel->core.attr.config); in test__group2()
738 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group2()
739 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group2()
740 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
741 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group2()
742 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
743 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
750 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
752 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group2()
753 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group2()
754 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group2()
755 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group2()
756 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group2()
757 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group2()
758 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group2()
769 TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries); in test__group3()
770 TEST_ASSERT_VAL("wrong number of groups", 2 == evlist->core.nr_groups); in test__group3()
774 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__group3()
776 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__group3()
777 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__group3()
778 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
779 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
780 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
781 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
782 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
783 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
787 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
793 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
795 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group3()
796 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group3()
797 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
798 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
800 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
801 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
802 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 3); in test__group3()
810 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
812 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group3()
813 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
814 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
815 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
816 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
817 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group3()
818 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
822 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
828 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__group3()
829 TEST_ASSERT_VAL("wrong config", 3 == evsel->core.attr.config); in test__group3()
830 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
831 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group3()
832 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group3()
833 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group3()
834 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group3()
835 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
842 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
844 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group3()
845 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group3()
846 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group3()
847 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group3()
848 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group3()
849 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group3()
850 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group3()
861 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group4()
862 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group4()
866 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
868 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group4()
869 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group4()
870 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group4()
871 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
873 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group4()
874 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
875 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1); in test__group4()
878 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group4()
884 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
886 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group4()
887 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__group4()
888 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group4()
889 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group4()
891 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group4()
892 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group4()
893 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2); in test__group4()
905 TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries); in test__group5()
906 TEST_ASSERT_VAL("wrong number of groups", 2 == evlist->core.nr_groups); in test__group5()
910 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
912 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
913 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
914 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
915 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
916 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
917 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
918 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
921 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
927 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
929 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group5()
930 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
931 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
932 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
933 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
934 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
935 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
942 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
944 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
945 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
946 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
947 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
948 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
949 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
950 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
953 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
959 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
961 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__group5()
962 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
963 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
964 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
965 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group5()
966 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group5()
967 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
973 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
975 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group5()
976 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group5()
977 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group5()
978 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group5()
979 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group5()
980 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group5()
981 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group5()
991 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group_gh1()
992 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group_gh1()
996 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
998 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh1()
999 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1000 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1001 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1002 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh1()
1003 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1004 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1007 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh1()
1012 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
1014 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh1()
1015 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh1()
1016 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh1()
1017 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh1()
1018 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh1()
1019 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh1()
1020 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh1()
1031 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group_gh2()
1032 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group_gh2()
1036 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1038 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh2()
1039 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1040 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1041 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1042 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1043 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh2()
1044 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1047 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh2()
1052 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1054 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh2()
1055 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh2()
1056 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__group_gh2()
1057 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__group_gh2()
1058 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh2()
1059 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh2()
1060 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh2()
1071 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group_gh3()
1072 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group_gh3()
1076 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1078 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh3()
1079 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1080 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1081 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1082 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh3()
1083 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh3()
1084 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1087 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh3()
1092 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1094 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh3()
1095 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh3()
1096 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh3()
1097 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh3()
1098 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__group_gh3()
1099 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh3()
1100 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh3()
1111 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__group_gh4()
1112 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->core.nr_groups); in test__group_gh4()
1116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1118 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__group_gh4()
1119 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1120 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1121 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1122 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1123 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__group_gh4()
1124 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1127 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh4()
1132 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1134 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__group_gh4()
1135 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__group_gh4()
1136 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__group_gh4()
1137 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__group_gh4()
1138 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__group_gh4()
1139 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__group_gh4()
1140 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__group_gh4()
1151 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__leader_sample1()
1155 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1157 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__leader_sample1()
1158 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1159 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1160 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1161 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1162 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1163 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1172 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__leader_sample1()
1173 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1174 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1175 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1176 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1177 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1178 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1184 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1186 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__leader_sample1()
1187 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample1()
1188 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__leader_sample1()
1189 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__leader_sample1()
1190 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample1()
1191 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample1()
1192 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample1()
1204 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__leader_sample2()
1208 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample2()
1210 PERF_COUNT_HW_INSTRUCTIONS == evsel->core.attr.config); in test__leader_sample2()
1211 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1212 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1213 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1214 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample2()
1215 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1216 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1223 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample2()
1225 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__leader_sample2()
1226 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__leader_sample2()
1227 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__leader_sample2()
1228 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__leader_sample2()
1229 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__leader_sample2()
1230 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__leader_sample2()
1231 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__leader_sample2()
1243 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_pinned_modifier()
1244 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_pinned_modifier()
1245 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_pinned_modifier()
1246 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_pinned_modifier()
1247 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__checkevent_pinned_modifier()
1256 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__pinned_group()
1260 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__pinned_group()
1262 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__pinned_group()
1265 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned); in test__pinned_group()
1269 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__pinned_group()
1271 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__pinned_group()
1272 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1277 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__pinned_group()
1278 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1287 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclusive_modifier()
1288 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_exclusive_modifier()
1289 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclusive_modifier()
1290 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_exclusive_modifier()
1291 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__checkevent_exclusive_modifier()
1300 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__exclusive_group()
1304 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__exclusive_group()
1306 PERF_COUNT_HW_CPU_CYCLES == evsel->core.attr.config); in test__exclusive_group()
1309 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive); in test__exclusive_group()
1313 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__exclusive_group()
1315 PERF_COUNT_HW_CACHE_MISSES == evsel->core.attr.config); in test__exclusive_group()
1316 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1321 PERF_COUNT_HW_BRANCH_MISSES == evsel->core.attr.config); in test__exclusive_group()
1322 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1330 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_len()
1331 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len()
1332 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_len()
1334 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len()
1336 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len()
1345 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_len_w()
1346 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_len_w()
1347 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_len_w()
1349 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len_w()
1351 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len_w()
1361 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_len_rw_modifier()
1362 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_len_rw_modifier()
1363 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_len_rw_modifier()
1364 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_len_rw_modifier()
1373 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_precise_max_modifier()
1374 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_precise_max_modifier()
1376 PERF_COUNT_SW_TASK_CLOCK == evsel->core.attr.config); in test__checkevent_precise_max_modifier()
1437 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw_pmu()
1438 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_raw_pmu()
1439 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw_pmu()
1447 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); in test__sym_event_slash()
1448 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); in test__sym_event_slash()
1449 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__sym_event_slash()
1457 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE); in test__sym_event_dc()
1458 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES); in test__sym_event_dc()
1459 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__sym_event_dc()
1512 count_tracepoints() == evlist->core.nr_entries); in test__all_tracepoints()
1521 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_hw_event_with_pmu()
1522 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_event_with_pmu()
1523 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_event_with_pmu()
1532 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_hw_group_event()
1533 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_group_event()
1534 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_group_event()
1538 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_group_event()
1539 TEST_ASSERT_VAL("wrong config", 0xc0 == evsel->core.attr.config); in test__hybrid_hw_group_event()
1549 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_sw_hw_group_event()
1550 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__hybrid_sw_hw_group_event()
1554 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_sw_hw_group_event()
1555 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_sw_hw_group_event()
1565 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_hw_sw_group_event()
1566 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_hw_sw_group_event()
1567 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_hw_sw_group_event()
1571 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__hybrid_hw_sw_group_event()
1581 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_group_modifier1()
1582 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_group_modifier1()
1583 TEST_ASSERT_VAL("wrong config", 0x3c == evsel->core.attr.config); in test__hybrid_group_modifier1()
1585 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__hybrid_group_modifier1()
1586 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__hybrid_group_modifier1()
1589 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_group_modifier1()
1590 TEST_ASSERT_VAL("wrong config", 0xc0 == evsel->core.attr.config); in test__hybrid_group_modifier1()
1592 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__hybrid_group_modifier1()
1593 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__hybrid_group_modifier1()
1602 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_raw1()
1603 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw1()
1604 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1608 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_raw1()
1609 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw1()
1610 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1614 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw1()
1622 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_raw2()
1623 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__hybrid_raw2()
1624 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__hybrid_raw2()
1632 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_cache_event()
1633 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); in test__hybrid_cache_event()
1634 TEST_ASSERT_VAL("wrong config", 0x2 == (evsel->core.attr.config & 0xffffffff)); in test__hybrid_cache_event()
2261 TEST_ASSERT_VAL("wrong type", evsel1->core.attr.type == evsel2->core.attr.type); in test__checkevent_pmu_events_alias()
2262 TEST_ASSERT_VAL("wrong config", evsel1->core.attr.config == evsel2->core.attr.config); in test__checkevent_pmu_events_alias()