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)
commitbfe4daf850f45d92dcd3da477f0b0456620294c3
treeebe7d7fcb6d0d0f4d26fbbf0f46a9859fd46d56d
parent3123109284176b1532874591f7c81f3837bbdc17
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