]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add enum support to btf_ctx_access()
authorMartin KaFai Lau <kafai@fb.com>
Thu, 9 Jan 2020 00:34:59 +0000 (16:34 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2020 16:46:18 +0000 (08:46 -0800)
commita8e2301a6574de6eb79a8dfe1c24ce6f4c5f19b2
tree9d66fc821e86ac07295f33718371c80390838e46
parent8344e0c8b420f824878d9661fc0dc7dab18cef50
bpf: Add enum support to btf_ctx_access()

It allows bpf prog (e.g. tracing) to attach
to a kernel function that takes enum argument.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200109003459.3855366-1-kafai@fb.com
kernel/bpf/btf.c