diff options
author | Joanne Koong <[email protected]> | 2023-04-20 00:14:11 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-04-27 10:40:36 +0200 |
commit | 540ccf96ddbc173474c32e595787d5622253be3d (patch) | |
tree | c0228d85f2f719c4888102dd0605b7b87fb4369e /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 987d0242d189661f78b77cc4d77f843b15600fed (diff) |
bpf: Add bpf_dynptr_is_null and bpf_dynptr_is_rdonly
bpf_dynptr_is_null returns true if the dynptr is null / invalid
(determined by whether ptr->data is NULL), else false if
the dynptr is a valid dynptr.
bpf_dynptr_is_rdonly returns true if the dynptr is read-only,
else false if the dynptr is read-writable. If the dynptr is
null / invalid, false is returned by default.
Signed-off-by: Joanne Koong <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions