perf/core: Add perf_clear_branch_entry_bitfields() helper
mainline inclusion from mainline-v5.19 commit bfe4daf8 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5S3WV CVE: NA ------------------------------------------------- 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: NStephane Eranian <eranian@google.com> Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220322221517.2510440-2-eranian@google.comSigned-off-by: NXie Haocheng <haocheng.xie@amd.com>
Showing
想要评论请 注册 或 登录