perf/amd/ibs: Use ->is_visible callback for dynamic attributes
mainline inclusion from mainline-v5.15 commit 2a7a7e65 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5S3WV CVE: NA ------------------------------------------------- Currently, some attributes are added at build time whereas others at boot time depending on IBS pmu capabilities. Instead, we can just add all attribute groups at build time but hide individual group at boot time using more appropriate ->is_visible() callback. Also, struct perf_ibs has bunch of fields for pmu attributes which just pass on the pointer, does not do anything else. Remove them. Signed-off-by:Ravi Bangoria <ravi.bangoria@amd.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220509044914.1473-3-ravi.bangoria@amd.com Signed-off-by:
Xie Haocheng <haocheng.xie@amd.com>
Loading
Please sign in to comment