File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2641,6 +2641,14 @@ static int x86_pmu_aux_output_match(struct perf_event *event)
26412641 return 0 ;
26422642}
26432643
2644+ static int x86_pmu_filter_match (struct perf_event * event )
2645+ {
2646+ if (x86_pmu .filter_match )
2647+ return x86_pmu .filter_match (event );
2648+
2649+ return 1 ;
2650+ }
2651+
26442652static struct pmu pmu = {
26452653 .pmu_enable = x86_pmu_enable ,
26462654 .pmu_disable = x86_pmu_disable ,
@@ -2668,6 +2676,8 @@ static struct pmu pmu = {
26682676 .check_period = x86_pmu_check_period ,
26692677
26702678 .aux_output_match = x86_pmu_aux_output_match ,
2679+
2680+ .filter_match = x86_pmu_filter_match ,
26712681};
26722682
26732683void arch_perf_update_userpage (struct perf_event * event ,
Original file line number Diff line number Diff line change @@ -879,6 +879,7 @@ struct x86_pmu {
879879
880880 int (* aux_output_match ) (struct perf_event * event );
881881
882+ int (* filter_match )(struct perf_event * event );
882883 /*
883884 * Hybrid support
884885 *
You can’t perform that action at this time.
0 commit comments