perf/x86/intel: Reorganize attrs and is_visible
authorKan Liang <kan.liang@linux.intel.com>
Wed, 25 Oct 2023 20:16:22 +0000 (13:16 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 27 Oct 2023 13:05:10 +0000 (15:05 +0200)
commit318c4985911245508f7e0bab5265e208a38b5f18
tree6394635bbfad7f1af19e29ed37204cf11359cc32
parent1f2376cd03dd3b965d130ed46a7c92769d614ba1
perf/x86/intel: Reorganize attrs and is_visible

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.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20231025201626.3000228-4-kan.liang@linux.intel.com
arch/x86/events/intel/core.c