Lines Matching refs:TEST_ASSERT_VAL
51 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
52 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups);
53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
54 TEST_ASSERT_VAL("wrong sample_type",
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
64 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1);
65 TEST_ASSERT_VAL("wrong number of groups", 0 == evlist->nr_groups);
68 TEST_ASSERT_VAL("wrong type",
70 TEST_ASSERT_VAL("wrong sample_type",
72 TEST_ASSERT_VAL("wrong sample_period",
82 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
83 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
84 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config);
92 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
93 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
94 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
102 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
103 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
104 TEST_ASSERT_VAL("wrong config",
113 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
114 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
115 TEST_ASSERT_VAL("wrong config",
121 TEST_ASSERT_VAL("wrong period",
123 TEST_ASSERT_VAL("wrong config1",
125 TEST_ASSERT_VAL("wrong config2",
134 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
135 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
136 TEST_ASSERT_VAL("wrong config",
145 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
146 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type);
147 TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->core.attr.config);
155 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
156 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
157 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
158 TEST_ASSERT_VAL("wrong bp_type", (HW_BREAKPOINT_R | HW_BREAKPOINT_W) ==
160 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_4 ==
169 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
171 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
172 TEST_ASSERT_VAL("wrong bp_type",
174 TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len);
182 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
183 TEST_ASSERT_VAL("wrong type",
185 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
186 TEST_ASSERT_VAL("wrong bp_type",
188 TEST_ASSERT_VAL("wrong bp_len",
197 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
198 TEST_ASSERT_VAL("wrong type",
200 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
201 TEST_ASSERT_VAL("wrong bp_type",
203 TEST_ASSERT_VAL("wrong bp_len",
212 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
213 TEST_ASSERT_VAL("wrong type",
215 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
216 TEST_ASSERT_VAL("wrong bp_type",
218 TEST_ASSERT_VAL("wrong bp_len",
227 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
228 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
229 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
230 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
240 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1);
243 TEST_ASSERT_VAL("wrong exclude_user",
245 TEST_ASSERT_VAL("wrong exclude_kernel",
247 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
248 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
258 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
259 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
260 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
261 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
270 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
271 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
272 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
273 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
282 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
283 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
284 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
285 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
294 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
295 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
304 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
305 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
314 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
315 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
316 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
317 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
326 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
327 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
328 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
329 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
338 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle);
339 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
340 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
341 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
342 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
343 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
344 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
353 TEST_ASSERT_VAL("wrong exclude idle", evsel->core.attr.exclude_idle);
354 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
355 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
356 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
357 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
358 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
359 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
369 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
370 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
371 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
372 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
373 TEST_ASSERT_VAL("wrong name",
383 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
384 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
385 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
386 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
387 TEST_ASSERT_VAL("wrong name",
397 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
398 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
399 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
400 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
401 TEST_ASSERT_VAL("wrong name",
411 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
412 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
413 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
414 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
415 TEST_ASSERT_VAL("wrong name",
425 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
426 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
427 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
428 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
429 TEST_ASSERT_VAL("wrong name",
440 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
441 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
442 TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config);
443 TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1);
444 TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2);
449 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period);
458 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
461 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
462 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
463 TEST_ASSERT_VAL("wrong config1", 0 == evsel->core.attr.config1);
464 TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2);
465 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
466 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
467 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
468 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
472 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
473 TEST_ASSERT_VAL("wrong sample_type",
475 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
476 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
477 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
478 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
479 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
483 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
484 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
485 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
486 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
487 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
488 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
498 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
499 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
500 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
501 TEST_ASSERT_VAL("wrong name", !strcmp(evsel__name(evsel), "krava"));
505 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
506 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
507 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config);
508 TEST_ASSERT_VAL("wrong name",
519 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
520 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
521 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr.config);
527 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period);
528 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel));
529 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type));
533 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
534 TEST_ASSERT_VAL("wrong config", 2 == evsel->core.attr.config);
540 TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period);
541 TEST_ASSERT_VAL("wrong callgraph", !evsel__has_callchain(evsel));
542 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type));
551 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
552 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
553 TEST_ASSERT_VAL("wrong exclude_user",
555 TEST_ASSERT_VAL("wrong exclude_kernel",
557 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
558 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
559 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
560 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive);
571 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
572 TEST_ASSERT_VAL("wrong exclude_user",
574 TEST_ASSERT_VAL("wrong exclude_kernel",
576 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
577 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
578 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
579 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive);
583 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
584 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
585 TEST_ASSERT_VAL("wrong exclude_user",
587 TEST_ASSERT_VAL("wrong exclude_kernel",
589 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
590 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
591 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
592 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.pinned);
603 TEST_ASSERT_VAL("wrong type term",
605 TEST_ASSERT_VAL("wrong type val",
607 TEST_ASSERT_VAL("wrong val", term->val.num == 10);
608 TEST_ASSERT_VAL("wrong config", !term->config);
612 TEST_ASSERT_VAL("wrong type term",
614 TEST_ASSERT_VAL("wrong type val",
616 TEST_ASSERT_VAL("wrong val", term->val.num == 1);
617 TEST_ASSERT_VAL("wrong config", !term->config);
621 TEST_ASSERT_VAL("wrong type term",
623 TEST_ASSERT_VAL("wrong type val",
625 TEST_ASSERT_VAL("wrong val", term->val.num == 3);
626 TEST_ASSERT_VAL("wrong config", !term->config);
630 TEST_ASSERT_VAL("wrong type term",
632 TEST_ASSERT_VAL("wrong type val",
634 TEST_ASSERT_VAL("wrong val", term->val.num == 1);
635 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask"));
645 TEST_ASSERT_VAL("wrong type term",
647 TEST_ASSERT_VAL("wrong type val",
649 TEST_ASSERT_VAL("wrong val", term->val.num == 1);
650 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "read"));
659 TEST_ASSERT_VAL("wrong type term",
661 TEST_ASSERT_VAL("wrong type val",
663 TEST_ASSERT_VAL("wrong val", term->val.num == 0xead);
664 TEST_ASSERT_VAL("wrong config", !term->config);
672 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
673 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
677 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
678 TEST_ASSERT_VAL("wrong config",
680 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
681 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
682 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
683 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
684 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
685 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
686 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
687 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
688 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
689 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
693 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
694 TEST_ASSERT_VAL("wrong config",
696 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
697 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
698 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
700 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
701 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
702 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2);
703 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
704 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
705 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
714 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
715 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
719 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
720 TEST_ASSERT_VAL("wrong config",
722 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
723 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
724 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
725 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
726 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
727 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
728 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
729 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
730 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
731 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
735 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
736 TEST_ASSERT_VAL("wrong config",
738 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
739 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
740 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
741 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
742 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
743 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
744 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
745 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
746 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
750 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
751 TEST_ASSERT_VAL("wrong config",
753 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
754 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
755 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
756 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
757 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
758 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
759 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
760 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
769 TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries);
770 TEST_ASSERT_VAL("wrong number of groups", 2 == evlist->nr_groups);
774 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type);
775 TEST_ASSERT_VAL("wrong sample_type",
777 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period);
778 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
779 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
780 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
781 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
782 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
783 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
784 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
785 TEST_ASSERT_VAL("wrong group name",
787 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
788 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
789 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
793 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
794 TEST_ASSERT_VAL("wrong config",
796 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
797 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
798 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
800 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
801 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
802 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 3);
803 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
804 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
805 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
806 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
810 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
811 TEST_ASSERT_VAL("wrong config",
813 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
814 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
815 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
816 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
817 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
818 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
819 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
820 TEST_ASSERT_VAL("wrong group name",
822 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
823 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
824 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
828 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type);
829 TEST_ASSERT_VAL("wrong config", 3 == evsel->core.attr.config);
830 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
831 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
832 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
833 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
834 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
835 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
836 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
837 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
838 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
842 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
843 TEST_ASSERT_VAL("wrong config",
845 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
846 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
847 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
848 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
849 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
850 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
851 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
852 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
861 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
862 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
866 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
867 TEST_ASSERT_VAL("wrong config",
869 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
870 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
871 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
873 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
874 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
875 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 1);
876 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
877 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
878 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
879 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
880 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
884 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
885 TEST_ASSERT_VAL("wrong config",
887 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
888 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
889 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
891 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
892 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
893 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip == 2);
894 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
895 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
896 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
905 TEST_ASSERT_VAL("wrong number of entries", 5 == evlist->core.nr_entries);
906 TEST_ASSERT_VAL("wrong number of groups", 2 == evlist->nr_groups);
910 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
911 TEST_ASSERT_VAL("wrong config",
913 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
914 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
915 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
916 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
917 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
918 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
919 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
920 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
921 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
922 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
923 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
927 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
928 TEST_ASSERT_VAL("wrong config",
930 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
931 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
932 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
933 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
934 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
935 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
936 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
937 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
938 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
942 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
943 TEST_ASSERT_VAL("wrong config",
945 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
946 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
947 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
948 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
949 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
950 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
951 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
952 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
953 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
954 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
955 TEST_ASSERT_VAL("wrong sample_read", !evsel->sample_read);
959 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
960 TEST_ASSERT_VAL("wrong config",
962 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
963 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
964 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
965 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
966 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
967 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
968 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
969 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
973 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
974 TEST_ASSERT_VAL("wrong config",
976 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
977 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
978 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
979 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
980 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
981 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
982 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
991 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
992 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
996 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
997 TEST_ASSERT_VAL("wrong config",
999 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1000 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1001 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1002 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1003 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1004 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1005 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1006 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
1007 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
1008 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
1012 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1013 TEST_ASSERT_VAL("wrong config",
1015 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1016 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1017 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1018 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1019 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1020 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1021 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1022 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
1031 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
1032 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
1036 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1037 TEST_ASSERT_VAL("wrong config",
1039 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1040 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1041 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1042 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1043 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
1044 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1045 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1046 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
1047 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
1048 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
1052 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1053 TEST_ASSERT_VAL("wrong config",
1055 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1056 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1057 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1058 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1059 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1060 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1061 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1062 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
1071 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
1072 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
1076 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1077 TEST_ASSERT_VAL("wrong config",
1079 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1080 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1081 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1082 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1083 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
1084 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1085 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1086 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
1087 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
1088 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
1092 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1093 TEST_ASSERT_VAL("wrong config",
1095 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1096 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1097 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1098 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1099 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1100 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1101 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1102 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
1111 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
1112 TEST_ASSERT_VAL("wrong number of groups", 1 == evlist->nr_groups);
1116 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1117 TEST_ASSERT_VAL("wrong config",
1119 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1120 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1121 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1122 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1123 TEST_ASSERT_VAL("wrong exclude host", evsel->core.attr.exclude_host);
1124 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1125 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1126 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
1127 TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
1128 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
1132 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1133 TEST_ASSERT_VAL("wrong config",
1135 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1136 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1137 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1138 TEST_ASSERT_VAL("wrong exclude guest", !evsel->core.attr.exclude_guest);
1139 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1140 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1141 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1142 TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
1151 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
1155 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1156 TEST_ASSERT_VAL("wrong config",
1158 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1159 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1160 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1161 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1162 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1163 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1164 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1165 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1166 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read);
1170 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1171 TEST_ASSERT_VAL("wrong config",
1173 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1174 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1175 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1176 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1177 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1178 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1179 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1180 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read);
1184 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1185 TEST_ASSERT_VAL("wrong config",
1187 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1188 TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
1189 TEST_ASSERT_VAL("wrong exclude_hv", !evsel->core.attr.exclude_hv);
1190 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1191 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1192 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1193 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1194 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1195 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read);
1204 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
1208 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1209 TEST_ASSERT_VAL("wrong config",
1211 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1212 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1213 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1214 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1215 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1216 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1217 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1218 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1219 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read);
1223 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1224 TEST_ASSERT_VAL("wrong config",
1226 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1227 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1228 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1229 TEST_ASSERT_VAL("wrong exclude guest", evsel->core.attr.exclude_guest);
1230 TEST_ASSERT_VAL("wrong exclude host", !evsel->core.attr.exclude_host);
1231 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1232 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1233 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1234 TEST_ASSERT_VAL("wrong sample_read", evsel->sample_read);
1243 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1244 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1245 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1246 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
1247 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned);
1256 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
1260 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1261 TEST_ASSERT_VAL("wrong config",
1263 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1264 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1265 TEST_ASSERT_VAL("wrong pinned", evsel->core.attr.pinned);
1269 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1270 TEST_ASSERT_VAL("wrong config",
1272 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
1276 TEST_ASSERT_VAL("wrong config",
1278 TEST_ASSERT_VAL("wrong pinned", !evsel->core.attr.pinned);
1287 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1288 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1289 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1290 TEST_ASSERT_VAL("wrong precise_ip", evsel->core.attr.precise_ip);
1291 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive);
1300 TEST_ASSERT_VAL("wrong number of entries", 3 == evlist->core.nr_entries);
1304 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1305 TEST_ASSERT_VAL("wrong config",
1307 TEST_ASSERT_VAL("wrong group name", !evsel->group_name);
1308 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader);
1309 TEST_ASSERT_VAL("wrong exclusive", evsel->core.attr.exclusive);
1313 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
1314 TEST_ASSERT_VAL("wrong config",
1316 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive);
1320 TEST_ASSERT_VAL("wrong config",
1322 TEST_ASSERT_VAL("wrong exclusive", !evsel->core.attr.exclusive);
1330 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
1331 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
1332 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
1333 TEST_ASSERT_VAL("wrong bp_type", (HW_BREAKPOINT_R | HW_BREAKPOINT_W) ==
1335 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_1 ==
1345 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
1346 TEST_ASSERT_VAL("wrong type", PERF_TYPE_BREAKPOINT == evsel->core.attr.type);
1347 TEST_ASSERT_VAL("wrong config", 0 == evsel->core.attr.config);
1348 TEST_ASSERT_VAL("wrong bp_type", HW_BREAKPOINT_W ==
1350 TEST_ASSERT_VAL("wrong bp_len", HW_BREAKPOINT_LEN_2 ==
1361 TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
1362 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1363 TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv);
1364 TEST_ASSERT_VAL("wrong precise_ip", !evsel->core.attr.precise_ip);
1373 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
1374 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
1375 TEST_ASSERT_VAL("wrong config",
1384 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "insn") == 0);
1392 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "rawpmu") == 0);
1400 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "numpmu") == 0);
1408 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "cachepmu") == 0);
1421 TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "intel_pt//u") == 0);
1429 TEST_ASSERT_VAL("wrong complex name parsing", strcmp(evsel->name, "COMPLEX_CYCLES_NAME:orig=cycles,desc=chip-clock-ticks") == 0);
1437 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
1438 TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
1439 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config);
1447 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE);
1448 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES);
1449 TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
1457 TEST_ASSERT_VAL("wrong type", evsel->core.attr.type == PERF_TYPE_HARDWARE);
1458 TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == PERF_COUNT_HW_CPU_CYCLES);
1459 TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
1471 TEST_ASSERT_VAL("Can't open events dir", events_dir);
1486 TEST_ASSERT_VAL("Can't get sys path", sys_path);
1489 TEST_ASSERT_VAL("Can't open sys dir", sys_dir);
1511 TEST_ASSERT_VAL("wrong events count",