diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-11-15 00:45:28 +0530 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-11-14 21:52:45 -0800 |
commit | 6728aea7216c0c06c98e2e58d753a5e8b2ae1c6f (patch) | |
tree | 4397a958819a861067daa29aaa3c3a4983ffc89e /tools/perf/scripts/python/stackcollapse.py | |
parent | 894f2a8b1673a355a1a7507a4dfa6a3c836d07c1 (diff) |
bpf: Refactor btf_struct_access
Instead of having to pass multiple arguments that describe the register,
pass the bpf_reg_state into the btf_struct_access callback. Currently,
all call sites simply reuse the btf and btf_id of the reg they want to
check the access of. The only exception to this pattern is the callsite
in check_ptr_to_map_access, hence for that case create a dummy reg to
simulate PTR_TO_BTF_ID access.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions