diff options
author | KP Singh <[email protected]> | 2020-11-06 10:37:43 +0000 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-11-06 08:08:37 -0800 |
commit | 3ca1032ab7ab010eccb107aa515598788f7d93bb (patch) | |
tree | e09a5bff5dfa40b270ce5fe937ec1e0a9af7ff45 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 864ab0616dccf14e51618a24acc7cf23ddd2b98a (diff) |
bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID
The currently available bpf_get_current_task returns an unsigned integer
which can be used along with BPF_CORE_READ to read data from
the task_struct but still cannot be used as an input argument to a
helper that accepts an ARG_PTR_TO_BTF_ID of type task_struct.
In order to implement this helper a new return type, RET_PTR_TO_BTF_ID,
is added. This is similar to RET_PTR_TO_BTF_ID_OR_NULL but does not
require checking the nullness of returned pointer.
Signed-off-by: KP Singh <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions