Commit 78c459a0 authored by Kan Liang's avatar Kan Liang Committed by Yunying Sun
Browse files

perf/x86/intel: Reorganize attrs and is_visible

mainline inclusion
from mainline-v6.8-rc1
commit 318c4985911245508f7e0bab5265e208a38b5f18
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8XR3G
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=318c4985911245508f7e0bab5265e208a38b5f18



-------------------------------------

Some attrs and is_visible implementations are rather far away from one
another which makes the whole thing hard to interpret.

There are only two attribute groups which have both .attrs and
.is_visible, group_default and group_caps_lbr. Move them together.

No functional changes.

Intel-SIG: commit 318c49859112 perf/x86/intel: Reorganize attrs and is_visible
Backport LBR branch counter support to kernel v6.6.

Suggested-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20231025201626.3000228-4-kan.liang@linux.intel.com


Signed-off-by: default avatarYunying Sun <yunying.sun@intel.com>
parent 06364f69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment