@@ -468,7 +468,7 @@ static int test__checkevent_list(struct evlist *evlist)
468468 TEST_ASSERT_VAL ("wrong precise_ip" , !evsel -> core .attr .precise_ip );
469469
470470 /* syscalls:sys_enter_openat:k */
471- evsel = perf_evsel__next (evsel );
471+ evsel = evsel__next (evsel );
472472 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_TRACEPOINT == evsel -> core .attr .type );
473473 TEST_ASSERT_VAL ("wrong sample_type" ,
474474 PERF_TP_SAMPLE_TYPE == evsel -> core .attr .sample_type );
@@ -479,7 +479,7 @@ static int test__checkevent_list(struct evlist *evlist)
479479 TEST_ASSERT_VAL ("wrong precise_ip" , !evsel -> core .attr .precise_ip );
480480
481481 /* 1:1:hp */
482- evsel = perf_evsel__next (evsel );
482+ evsel = evsel__next (evsel );
483483 TEST_ASSERT_VAL ("wrong type" , 1 == evsel -> core .attr .type );
484484 TEST_ASSERT_VAL ("wrong config" , 1 == evsel -> core .attr .config );
485485 TEST_ASSERT_VAL ("wrong exclude_user" , evsel -> core .attr .exclude_user );
@@ -501,7 +501,7 @@ static int test__checkevent_pmu_name(struct evlist *evlist)
501501 TEST_ASSERT_VAL ("wrong name" , !strcmp (evsel__name (evsel ), "krava" ));
502502
503503 /* cpu/config=2/u" */
504- evsel = perf_evsel__next (evsel );
504+ evsel = evsel__next (evsel );
505505 TEST_ASSERT_VAL ("wrong number of entries" , 2 == evlist -> core .nr_entries );
506506 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_RAW == evsel -> core .attr .type );
507507 TEST_ASSERT_VAL ("wrong config" , 2 == evsel -> core .attr .config );
@@ -529,7 +529,7 @@ static int test__checkevent_pmu_partial_time_callgraph(struct evlist *evlist)
529529 TEST_ASSERT_VAL ("wrong time" , !(PERF_SAMPLE_TIME & evsel -> core .attr .sample_type ));
530530
531531 /* cpu/config=2,call-graph=no,time=0,period=2000/ */
532- evsel = perf_evsel__next (evsel );
532+ evsel = evsel__next (evsel );
533533 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_RAW == evsel -> core .attr .type );
534534 TEST_ASSERT_VAL ("wrong config" , 2 == evsel -> core .attr .config );
535535 /*
@@ -577,7 +577,7 @@ static int test__checkevent_pmu_events_mix(struct evlist *evlist)
577577 TEST_ASSERT_VAL ("wrong pinned" , !evsel -> core .attr .pinned );
578578
579579 /* cpu/pmu-event/u*/
580- evsel = perf_evsel__next (evsel );
580+ evsel = evsel__next (evsel );
581581 TEST_ASSERT_VAL ("wrong number of entries" , 2 == evlist -> core .nr_entries );
582582 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_RAW == evsel -> core .attr .type );
583583 TEST_ASSERT_VAL ("wrong exclude_user" ,
@@ -658,7 +658,7 @@ static int test__group1(struct evlist *evlist)
658658 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
659659
660660 /* cycles:upp */
661- evsel = perf_evsel__next (evsel );
661+ evsel = evsel__next (evsel );
662662 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
663663 TEST_ASSERT_VAL ("wrong config" ,
664664 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -700,7 +700,7 @@ static int test__group2(struct evlist *evlist)
700700 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
701701
702702 /* cache-references + :u modifier */
703- evsel = perf_evsel__next (evsel );
703+ evsel = evsel__next (evsel );
704704 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
705705 TEST_ASSERT_VAL ("wrong config" ,
706706 PERF_COUNT_HW_CACHE_REFERENCES == evsel -> core .attr .config );
@@ -715,7 +715,7 @@ static int test__group2(struct evlist *evlist)
715715 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
716716
717717 /* cycles:k */
718- evsel = perf_evsel__next (evsel );
718+ evsel = evsel__next (evsel );
719719 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
720720 TEST_ASSERT_VAL ("wrong config" ,
721721 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -758,7 +758,7 @@ static int test__group3(struct evlist *evlist __maybe_unused)
758758 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
759759
760760 /* group1 cycles:kppp */
761- evsel = perf_evsel__next (evsel );
761+ evsel = evsel__next (evsel );
762762 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
763763 TEST_ASSERT_VAL ("wrong config" ,
764764 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -775,7 +775,7 @@ static int test__group3(struct evlist *evlist __maybe_unused)
775775 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
776776
777777 /* group2 cycles + G modifier */
778- evsel = leader = perf_evsel__next (evsel );
778+ evsel = leader = evsel__next (evsel );
779779 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
780780 TEST_ASSERT_VAL ("wrong config" ,
781781 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -793,7 +793,7 @@ static int test__group3(struct evlist *evlist __maybe_unused)
793793 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
794794
795795 /* group2 1:3 + G modifier */
796- evsel = perf_evsel__next (evsel );
796+ evsel = evsel__next (evsel );
797797 TEST_ASSERT_VAL ("wrong type" , 1 == evsel -> core .attr .type );
798798 TEST_ASSERT_VAL ("wrong config" , 3 == evsel -> core .attr .config );
799799 TEST_ASSERT_VAL ("wrong exclude_user" , !evsel -> core .attr .exclude_user );
@@ -807,7 +807,7 @@ static int test__group3(struct evlist *evlist __maybe_unused)
807807 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
808808
809809 /* instructions:u */
810- evsel = perf_evsel__next (evsel );
810+ evsel = evsel__next (evsel );
811811 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
812812 TEST_ASSERT_VAL ("wrong config" ,
813813 PERF_COUNT_HW_INSTRUCTIONS == evsel -> core .attr .config );
@@ -849,7 +849,7 @@ static int test__group4(struct evlist *evlist __maybe_unused)
849849 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
850850
851851 /* instructions:kp + p */
852- evsel = perf_evsel__next (evsel );
852+ evsel = evsel__next (evsel );
853853 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
854854 TEST_ASSERT_VAL ("wrong config" ,
855855 PERF_COUNT_HW_INSTRUCTIONS == evsel -> core .attr .config );
@@ -892,7 +892,7 @@ static int test__group5(struct evlist *evlist __maybe_unused)
892892 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
893893
894894 /* instructions + G */
895- evsel = perf_evsel__next (evsel );
895+ evsel = evsel__next (evsel );
896896 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
897897 TEST_ASSERT_VAL ("wrong config" ,
898898 PERF_COUNT_HW_INSTRUCTIONS == evsel -> core .attr .config );
@@ -907,7 +907,7 @@ static int test__group5(struct evlist *evlist __maybe_unused)
907907 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
908908
909909 /* cycles:G */
910- evsel = leader = perf_evsel__next (evsel );
910+ evsel = leader = evsel__next (evsel );
911911 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
912912 TEST_ASSERT_VAL ("wrong config" ,
913913 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -924,7 +924,7 @@ static int test__group5(struct evlist *evlist __maybe_unused)
924924 TEST_ASSERT_VAL ("wrong sample_read" , !evsel -> sample_read );
925925
926926 /* instructions:G */
927- evsel = perf_evsel__next (evsel );
927+ evsel = evsel__next (evsel );
928928 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
929929 TEST_ASSERT_VAL ("wrong config" ,
930930 PERF_COUNT_HW_INSTRUCTIONS == evsel -> core .attr .config );
@@ -938,7 +938,7 @@ static int test__group5(struct evlist *evlist __maybe_unused)
938938 TEST_ASSERT_VAL ("wrong group_idx" , perf_evsel__group_idx (evsel ) == 1 );
939939
940940 /* cycles */
941- evsel = perf_evsel__next (evsel );
941+ evsel = evsel__next (evsel );
942942 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
943943 TEST_ASSERT_VAL ("wrong config" ,
944944 PERF_COUNT_HW_CPU_CYCLES == evsel -> core .attr .config );
@@ -977,7 +977,7 @@ static int test__group_gh1(struct evlist *evlist)
977977 TEST_ASSERT_VAL ("wrong group_idx" , perf_evsel__group_idx (evsel ) == 0 );
978978
979979 /* cache-misses:G + :H group modifier */
980- evsel = perf_evsel__next (evsel );
980+ evsel = evsel__next (evsel );
981981 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
982982 TEST_ASSERT_VAL ("wrong config" ,
983983 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
@@ -1017,7 +1017,7 @@ static int test__group_gh2(struct evlist *evlist)
10171017 TEST_ASSERT_VAL ("wrong group_idx" , perf_evsel__group_idx (evsel ) == 0 );
10181018
10191019 /* cache-misses:H + :G group modifier */
1020- evsel = perf_evsel__next (evsel );
1020+ evsel = evsel__next (evsel );
10211021 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
10221022 TEST_ASSERT_VAL ("wrong config" ,
10231023 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
@@ -1057,7 +1057,7 @@ static int test__group_gh3(struct evlist *evlist)
10571057 TEST_ASSERT_VAL ("wrong group_idx" , perf_evsel__group_idx (evsel ) == 0 );
10581058
10591059 /* cache-misses:H + :u group modifier */
1060- evsel = perf_evsel__next (evsel );
1060+ evsel = evsel__next (evsel );
10611061 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
10621062 TEST_ASSERT_VAL ("wrong config" ,
10631063 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
@@ -1097,7 +1097,7 @@ static int test__group_gh4(struct evlist *evlist)
10971097 TEST_ASSERT_VAL ("wrong group_idx" , perf_evsel__group_idx (evsel ) == 0 );
10981098
10991099 /* cache-misses:H + :uG group modifier */
1100- evsel = perf_evsel__next (evsel );
1100+ evsel = evsel__next (evsel );
11011101 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
11021102 TEST_ASSERT_VAL ("wrong config" ,
11031103 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
@@ -1135,7 +1135,7 @@ static int test__leader_sample1(struct evlist *evlist)
11351135 TEST_ASSERT_VAL ("wrong sample_read" , evsel -> sample_read );
11361136
11371137 /* cache-misses - not sampling */
1138- evsel = perf_evsel__next (evsel );
1138+ evsel = evsel__next (evsel );
11391139 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
11401140 TEST_ASSERT_VAL ("wrong config" ,
11411141 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
@@ -1149,7 +1149,7 @@ static int test__leader_sample1(struct evlist *evlist)
11491149 TEST_ASSERT_VAL ("wrong sample_read" , evsel -> sample_read );
11501150
11511151 /* branch-misses - not sampling */
1152- evsel = perf_evsel__next (evsel );
1152+ evsel = evsel__next (evsel );
11531153 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
11541154 TEST_ASSERT_VAL ("wrong config" ,
11551155 PERF_COUNT_HW_BRANCH_MISSES == evsel -> core .attr .config );
@@ -1188,7 +1188,7 @@ static int test__leader_sample2(struct evlist *evlist __maybe_unused)
11881188 TEST_ASSERT_VAL ("wrong sample_read" , evsel -> sample_read );
11891189
11901190 /* branch-misses - not sampling */
1191- evsel = perf_evsel__next (evsel );
1191+ evsel = evsel__next (evsel );
11921192 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
11931193 TEST_ASSERT_VAL ("wrong config" ,
11941194 PERF_COUNT_HW_BRANCH_MISSES == evsel -> core .attr .config );
@@ -1234,14 +1234,14 @@ static int test__pinned_group(struct evlist *evlist)
12341234 TEST_ASSERT_VAL ("wrong pinned" , evsel -> core .attr .pinned );
12351235
12361236 /* cache-misses - can not be pinned, but will go on with the leader */
1237- evsel = perf_evsel__next (evsel );
1237+ evsel = evsel__next (evsel );
12381238 TEST_ASSERT_VAL ("wrong type" , PERF_TYPE_HARDWARE == evsel -> core .attr .type );
12391239 TEST_ASSERT_VAL ("wrong config" ,
12401240 PERF_COUNT_HW_CACHE_MISSES == evsel -> core .attr .config );
12411241 TEST_ASSERT_VAL ("wrong pinned" , !evsel -> core .attr .pinned );
12421242
12431243 /* branch-misses - ditto */
1244- evsel = perf_evsel__next (evsel );
1244+ evsel = evsel__next (evsel );
12451245 TEST_ASSERT_VAL ("wrong config" ,
12461246 PERF_COUNT_HW_BRANCH_MISSES == evsel -> core .attr .config );
12471247 TEST_ASSERT_VAL ("wrong pinned" , !evsel -> core .attr .pinned );
0 commit comments