diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-11-15 00:45:27 +0530 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-11-14 21:52:45 -0800 |
commit | 894f2a8b1673a355a1a7507a4dfa6a3c836d07c1 (patch) | |
tree | fdbba646d976546607fe90cc72fb227fae130df8 /tools/perf/scripts/python/libxed.py | |
parent | 2de2669b4e52b2ae2f118bfc310004f50b47f0f5 (diff) |
bpf: Rename MEM_ALLOC to MEM_RINGBUF
Currently, verifier uses MEM_ALLOC type tag to specially tag memory
returned from bpf_ringbuf_reserve helper. However, this is currently
only used for this purpose and there is an implicit assumption that it
only refers to ringbuf memory (e.g. the check for ARG_PTR_TO_ALLOC_MEM
in check_func_arg_reg_off).
Hence, rename MEM_ALLOC to MEM_RINGBUF to indicate this special
relationship and instead open the use of MEM_ALLOC for more generic
allocations made for user types.
Also, since ARG_PTR_TO_ALLOC_MEM_OR_NULL is unused, simply drop it.
Finally, update selftests using 'alloc_' verifier string to 'ringbuf_'.
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/libxed.py')
0 files changed, 0 insertions, 0 deletions