Lines Matching refs:TEST_ASSERT_VAL
51 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint()
52 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint()
53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
54 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint()
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
64 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
65 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups); in test__checkevent_tracepoint_multi()
68 TEST_ASSERT_VAL("wrong type", in test__checkevent_tracepoint_multi()
70 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_tracepoint_multi()
72 TEST_ASSERT_VAL("wrong sample_period", in test__checkevent_tracepoint_multi()
82 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw()
83 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw()
84 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw()
92 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_numeric()
93 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_numeric()
94 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_numeric()
102 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_name()
103 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name()
104 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_name()
113 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_name_config()
114 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__checkevent_symbolic_name_config()
115 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_name_config()
121 TEST_ASSERT_VAL("wrong period", in test__checkevent_symbolic_name_config()
123 TEST_ASSERT_VAL("wrong config1", in test__checkevent_symbolic_name_config()
125 TEST_ASSERT_VAL("wrong config2", in test__checkevent_symbolic_name_config()
134 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_symbolic_alias()
135 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__checkevent_symbolic_alias()
136 TEST_ASSERT_VAL("wrong config", in test__checkevent_symbolic_alias()
145 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_genhw()
146 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type); in test__checkevent_genhw()
147 TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config); in test__checkevent_genhw()
155 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint()
156 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint()
157 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint()
158 TEST_ASSERT_VAL("wrong bp_type", (HW_BREAKPOINT_R | HW_BREAKPOINT_W) == in test__checkevent_breakpoint()
160 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_4 == in test__checkevent_breakpoint()
169 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_x()
170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type); in test__checkevent_breakpoint_x()
171 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_x()
172 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_x()
174 TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len); in test__checkevent_breakpoint_x()
182 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_r()
183 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_r()
185 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_r()
186 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_r()
188 TEST_ASSERT_VAL("wrong bp_len", in test__checkevent_breakpoint_r()
197 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_w()
198 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_w()
200 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_w()
201 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_w()
203 TEST_ASSERT_VAL("wrong bp_len", in test__checkevent_breakpoint_w()
212 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_breakpoint_rw()
213 TEST_ASSERT_VAL("wrong type", in test__checkevent_breakpoint_rw()
215 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config); in test__checkevent_breakpoint_rw()
216 TEST_ASSERT_VAL("wrong bp_type", in test__checkevent_breakpoint_rw()
218 TEST_ASSERT_VAL("wrong bp_len", in test__checkevent_breakpoint_rw()
227 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_tracepoint_modifier()
228 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_tracepoint_modifier()
229 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_modifier()
230 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_modifier()
240 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi_modifier()
243 TEST_ASSERT_VAL("wrong exclude_user", in test__checkevent_tracepoint_multi_modifier()
245 TEST_ASSERT_VAL("wrong exclude_kernel", in test__checkevent_tracepoint_multi_modifier()
247 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_tracepoint_multi_modifier()
248 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_tracepoint_multi_modifier()
258 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_raw_modifier()
259 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_raw_modifier()
260 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_raw_modifier()
261 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_raw_modifier()
270 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_numeric_modifier()
271 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_numeric_modifier()
272 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_numeric_modifier()
273 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_numeric_modifier()
282 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_symbolic_name_modifier()
283 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_name_modifier()
284 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_symbolic_name_modifier()
285 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_name_modifier()
294 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_host_modifier()
295 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_host_modifier()
304 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest); in test__checkevent_exclude_guest_modifier()
305 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_guest_modifier()
314 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_symbolic_alias_modifier()
315 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_symbolic_alias_modifier()
316 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_symbolic_alias_modifier()
317 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_symbolic_alias_modifier()
326 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_genhw_modifier()
327 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_genhw_modifier()
328 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_genhw_modifier()
329 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_genhw_modifier()
338 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier()
339 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier()
340 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier()
341 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier()
342 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier()
343 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier()
344 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier()
353 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle); in test__checkevent_exclude_idle_modifier_1()
354 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest); in test__checkevent_exclude_idle_modifier_1()
355 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host); in test__checkevent_exclude_idle_modifier_1()
356 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_exclude_idle_modifier_1()
357 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_exclude_idle_modifier_1()
358 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_exclude_idle_modifier_1()
359 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_exclude_idle_modifier_1()
369 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_modifier()
370 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_modifier()
371 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_modifier()
372 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_modifier()
373 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_modifier()
383 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_x_modifier()
384 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_x_modifier()
385 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_x_modifier()
386 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_breakpoint_x_modifier()
387 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_x_modifier()
397 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_r_modifier()
398 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_r_modifier()
399 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_r_modifier()
400 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_r_modifier()
401 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_r_modifier()
411 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_breakpoint_w_modifier()
412 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_w_modifier()
413 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_w_modifier()
414 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_w_modifier()
415 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_w_modifier()
425 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_breakpoint_rw_modifier()
426 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_breakpoint_rw_modifier()
427 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_breakpoint_rw_modifier()
428 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_breakpoint_rw_modifier()
429 TEST_ASSERT_VAL("wrong name", in test__checkevent_breakpoint_rw_modifier()
440 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_pmu()
441 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu()
442 TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config); in test__checkevent_pmu()
443 TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1); in test__checkevent_pmu()
444 TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2); in test__checkevent_pmu()
449 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu()
458 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries); in test__checkevent_list()
461 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_list()
462 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
463 TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1); in test__checkevent_list()
464 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2); in test__checkevent_list()
465 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); in test__checkevent_list()
466 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
467 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
468 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
472 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_list()
473 TEST_ASSERT_VAL("wrong sample_type", in test__checkevent_list()
475 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_list()
476 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
477 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel); in test__checkevent_list()
478 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); in test__checkevent_list()
479 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip); in test__checkevent_list()
483 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_list()
484 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_list()
485 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user); in test__checkevent_list()
486 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); in test__checkevent_list()
487 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv); in test__checkevent_list()
488 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip); in test__checkevent_list()
498 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
499 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
500 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_name()
501 TEST_ASSERT_VAL("wrong name", !strcmp(evsel__name(evsel), "krava")); in test__checkevent_pmu_name()
505 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_name()
506 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_name()
507 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config); in test__checkevent_pmu_name()
508 TEST_ASSERT_VAL("wrong name", in test__checkevent_pmu_name()
519 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__checkevent_pmu_partial_time_callgraph()
520 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
521 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config); in test__checkevent_pmu_partial_time_callgraph()
527 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period); in test__checkevent_pmu_partial_time_callgraph()
528 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel)); in test__checkevent_pmu_partial_time_callgraph()
529 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph()
533 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_pmu_partial_time_callgraph()
534 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()
541 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel)); 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()
553 TEST_ASSERT_VAL("wrong exclude_user", in test__checkevent_pmu_events()
555 TEST_ASSERT_VAL("wrong 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()
572 TEST_ASSERT_VAL("wrong exclude_user", in test__checkevent_pmu_events_mix()
574 TEST_ASSERT_VAL("wrong 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()
585 TEST_ASSERT_VAL("wrong exclude_user", in test__checkevent_pmu_events_mix()
587 TEST_ASSERT_VAL("wrong 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()
603 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
605 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
607 TEST_ASSERT_VAL("wrong val", term->val.num == 10); in test__checkterms_simple()
608 TEST_ASSERT_VAL("wrong config", !term->config); in test__checkterms_simple()
612 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
614 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
616 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
617 TEST_ASSERT_VAL("wrong config", !term->config); in test__checkterms_simple()
621 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
623 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
625 TEST_ASSERT_VAL("wrong val", term->val.num == 3); in test__checkterms_simple()
626 TEST_ASSERT_VAL("wrong config", !term->config); in test__checkterms_simple()
630 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
632 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
634 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
635 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask")); in test__checkterms_simple()
645 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
647 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
649 TEST_ASSERT_VAL("wrong val", term->val.num == 1); in test__checkterms_simple()
650 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "read")); in test__checkterms_simple()
659 TEST_ASSERT_VAL("wrong type term", in test__checkterms_simple()
661 TEST_ASSERT_VAL("wrong type val", in test__checkterms_simple()
663 TEST_ASSERT_VAL("wrong val", term->val.num == 0xead); in test__checkterms_simple()
664 TEST_ASSERT_VAL("wrong config", !term->config); in test__checkterms_simple()
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->nr_groups); in test__group1()
677 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
678 TEST_ASSERT_VAL("wrong 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()
686 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group1()
687 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group1()
688 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group1()
689 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group1()
693 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group1()
694 TEST_ASSERT_VAL("wrong 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()
703 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group1()
704 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group1()
705 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); 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->nr_groups); in test__group2()
719 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type); in test__group2()
720 TEST_ASSERT_VAL("wrong 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()
728 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
729 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group2()
730 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group2()
731 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group2()
735 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
736 TEST_ASSERT_VAL("wrong 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()
744 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group2()
745 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group2()
746 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group2()
750 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group2()
751 TEST_ASSERT_VAL("wrong 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()
759 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
760 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); 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->nr_groups); in test__group3()
774 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__group3()
775 TEST_ASSERT_VAL("wrong 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()
784 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
785 TEST_ASSERT_VAL("wrong group name", in test__group3()
787 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
788 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group3()
789 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
793 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
794 TEST_ASSERT_VAL("wrong 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()
803 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group3()
804 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group3()
805 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group3()
806 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
810 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
811 TEST_ASSERT_VAL("wrong 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()
819 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
820 TEST_ASSERT_VAL("wrong group name", in test__group3()
822 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group3()
823 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group3()
824 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); 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()
836 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group3()
837 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group3()
838 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group3()
842 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group3()
843 TEST_ASSERT_VAL("wrong 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()
851 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
852 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); 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->nr_groups); in test__group4()
866 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
867 TEST_ASSERT_VAL("wrong 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()
876 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group4()
877 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group4()
878 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group4()
879 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group4()
880 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group4()
884 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group4()
885 TEST_ASSERT_VAL("wrong 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()
894 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group4()
895 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group4()
896 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); 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->nr_groups); in test__group5()
910 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
911 TEST_ASSERT_VAL("wrong 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()
919 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group5()
920 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group5()
921 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
922 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group5()
923 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
927 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
928 TEST_ASSERT_VAL("wrong 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()
936 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group5()
937 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group5()
938 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
942 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
943 TEST_ASSERT_VAL("wrong 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()
951 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group5()
952 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group5()
953 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group5()
954 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group5()
955 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read); in test__group5()
959 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
960 TEST_ASSERT_VAL("wrong 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()
968 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group5()
969 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); in test__group5()
973 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group5()
974 TEST_ASSERT_VAL("wrong 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()
982 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); 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->nr_groups); in test__group_gh1()
996 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
997 TEST_ASSERT_VAL("wrong 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()
1005 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh1()
1006 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh1()
1007 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh1()
1008 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh1()
1012 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh1()
1013 TEST_ASSERT_VAL("wrong 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()
1021 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group_gh1()
1022 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); 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->nr_groups); in test__group_gh2()
1036 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1037 TEST_ASSERT_VAL("wrong 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()
1045 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh2()
1046 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh2()
1047 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh2()
1048 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh2()
1052 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh2()
1053 TEST_ASSERT_VAL("wrong 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()
1061 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group_gh2()
1062 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); 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->nr_groups); in test__group_gh3()
1076 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1077 TEST_ASSERT_VAL("wrong 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()
1085 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh3()
1086 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh3()
1087 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh3()
1088 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh3()
1092 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh3()
1093 TEST_ASSERT_VAL("wrong 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()
1101 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group_gh3()
1102 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); 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->nr_groups); in test__group_gh4()
1116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1117 TEST_ASSERT_VAL("wrong 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()
1125 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__group_gh4()
1126 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group_gh4()
1127 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2); in test__group_gh4()
1128 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0); in test__group_gh4()
1132 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__group_gh4()
1133 TEST_ASSERT_VAL("wrong 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()
1141 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group_gh4()
1142 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1); 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()
1156 TEST_ASSERT_VAL("wrong 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()
1164 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample1()
1165 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__leader_sample1()
1166 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample1()
1170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1171 TEST_ASSERT_VAL("wrong 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()
1179 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__leader_sample1()
1180 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample1()
1184 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample1()
1185 TEST_ASSERT_VAL("wrong 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()
1193 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample1()
1194 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__leader_sample1()
1195 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); 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()
1209 TEST_ASSERT_VAL("wrong 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()
1217 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample2()
1218 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__leader_sample2()
1219 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); in test__leader_sample2()
1223 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__leader_sample2()
1224 TEST_ASSERT_VAL("wrong 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()
1232 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__leader_sample2()
1233 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__leader_sample2()
1234 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read); 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()
1261 TEST_ASSERT_VAL("wrong config", in test__pinned_group()
1263 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__pinned_group()
1264 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); 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()
1270 TEST_ASSERT_VAL("wrong config", in test__pinned_group()
1272 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned); in test__pinned_group()
1276 TEST_ASSERT_VAL("wrong 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()
1305 TEST_ASSERT_VAL("wrong config", in test__exclusive_group()
1307 TEST_ASSERT_VAL("wrong group name", !evsel->group_name); in test__exclusive_group()
1308 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); 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()
1314 TEST_ASSERT_VAL("wrong config", in test__exclusive_group()
1316 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive); in test__exclusive_group()
1320 TEST_ASSERT_VAL("wrong 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()
1333 TEST_ASSERT_VAL("wrong bp_type", (HW_BREAKPOINT_R | HW_BREAKPOINT_W) == in test__checkevent_breakpoint_len()
1335 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_1 == 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()
1348 TEST_ASSERT_VAL("wrong bp_type", HW_BREAKPOINT_W == in test__checkevent_breakpoint_len_w()
1350 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_2 == 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()
1375 TEST_ASSERT_VAL("wrong config", in test__checkevent_precise_max_modifier()
1384 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "insn") == 0); in test__checkevent_config_symbol()
1392 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "rawpmu") == 0); in test__checkevent_config_raw()
1400 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "numpmu") == 0); in test__checkevent_config_num()
1408 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "cachepmu") == 0); in test__checkevent_config_cache()
1421 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "intel_pt//u") == 0); in test__intel_pt()
1429 …TEST_ASSERT_VAL("wrong complex name parsing", strcmp(evsel->name, "COMPLEX_CYCLES_NAME:orig=cycles… in test__checkevent_complex_name()
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()
1471 TEST_ASSERT_VAL("Can't open events dir", events_dir); in count_tracepoints()
1486 TEST_ASSERT_VAL("Can't get sys path", sys_path); in count_tracepoints()
1489 TEST_ASSERT_VAL("Can't open sys dir", sys_dir); in count_tracepoints()
1511 TEST_ASSERT_VAL("wrong events count", in test__all_tracepoints()