diff options
| author | Andrii Nakryiko <[email protected]> | 2024-08-08 16:22:28 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-08-21 10:37:52 -0700 |
| commit | 496ddd19a0fad22f250fc7a7b7a8000155418934 (patch) | |
| tree | 17a266c5749d9adbb3015ae4640bfa15a9975ce0 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 01ac89d0a5c2332be25a1b7ef707bad9ddb9fc20 (diff) | |
bpf: extract iterator argument type and name validation logic
Verifier enforces that all iterator structs are named `bpf_iter_<name>`
and that whenever iterator is passed to a kfunc it's passed as a valid PTR ->
STRUCT chain (with potentially const modifiers in between).
We'll need this check for upcoming changes, so instead of duplicating
the logic, extract it into a helper function.
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions