perf: Add branch_sample_call_stack
authorKan Liang <kan.liang@linux.intel.com>
Wed, 25 Oct 2023 20:16:21 +0000 (13:16 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 27 Oct 2023 13:05:09 +0000 (15:05 +0200)
commit1f2376cd03dd3b965d130ed46a7c92769d614ba1
tree60be778b77f2f089cf348afce0f701ffe22650be
parent85846b27072defc7ab3dcee7ff36563a040079dc
perf: Add branch_sample_call_stack

Add a helper function to check call stack sample type.

The later patch will invoke the function in several places.

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-3-kan.liang@linux.intel.com
arch/x86/events/core.c
include/linux/perf_event.h