Files
linux/include/linux
KP Singh 3ca1032ab7 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 <kpsingh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201106103747.2780972-6-kpsingh@chromium.org
2020-11-06 08:08:37 -08:00
..
2020-10-12 10:06:39 +02:00
2020-11-06 08:08:37 -08:00
2020-11-06 08:08:37 -08:00
2020-10-21 23:22:37 -04:00
2020-10-13 18:38:32 -07:00
2020-10-18 09:27:09 -07:00
2020-10-07 14:28:39 -04:00
2020-10-18 09:27:10 -07:00
2020-10-18 09:27:10 -07:00
2020-10-05 13:21:49 +02:00