Skip to content
Commit cce6a2d7 authored by Jiri Olsa's avatar Jiri Olsa Committed by Peter Zijlstra
Browse files

bpf: Check flags for branch stack in bpf_read_branch_records helper



Recent commit [1] changed branch stack data indication from
br_stack pointer to sample_flags in perf_sample_data struct.

We need to check sample_flags for PERF_SAMPLE_BRANCH_STACK
bit for valid branch stack data.

[1] a9a931e2 ("perf: Use sample_flags for branch stack")

Fixes: a9a931e2 ("perf: Use sample_flags for branch stack")
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20220927203259.590950-1-jolsa@kernel.org
parent 4674ffe2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment