]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/amd/uncore: Use attr_update for format attributes
authorSandipan Das <sandipan.das@amd.com>
Thu, 19 May 2022 10:03:31 +0000 (15:33 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jun 2022 08:15:13 +0000 (10:15 +0200)
commit3e721f423ddf42983c5496e1ca0b35f5ffa61179
tree988fb968268ed86e574d81414b8f7e797bb0e2f7
parent8033b4b7f52e303c9693d73c15758c7f6b6d7a9b
perf/x86/amd/uncore: Use attr_update for format attributes

Use the update_attrs attribute group introduced by commit
818c3006d215 ("perf/core: Add attr_groups_update into struct
pmu") and the is_visible() callback to populate the family
specifc attributes for uncore events.

The changes apply to attributes that are unique to families
such as slicemask for Family 17h and coreid for Family 19h.
The addition of common attributes such as event and umask,
whose formats change across families, remain unchanged.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/a5e4f4dd5c459199fc497e82b858ba09dc91c064.1652954372.git.sandipan.das@amd.com
arch/x86/events/amd/uncore.c