]> git.baikalelectronics.ru Git - kernel.git/commit
perf/core: Add perf_clear_branch_entry_bitfields() helper
authorStephane Eranian <eranian@google.com>
Tue, 22 Mar 2022 22:15:05 +0000 (15:15 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Apr 2022 08:24:36 +0000 (10:24 +0200)
commitc1f7236b21f9637fcfabff474e5510b2e787af82
treeebe7d7fcb6d0d0f4d26fbbf0f46a9859fd46d56d
parent6d94017b7b59bab528be97be158d0d602982e3a6
perf/core: Add perf_clear_branch_entry_bitfields() helper

Make it simpler to reset all the info fields on the
perf_branch_entry by adding a helper inline function.

The goal is to centralize the initialization to avoid missing
a field in case more are added.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220322221517.2510440-2-eranian@google.com
arch/x86/events/intel/lbr.c
include/linux/perf_event.h