summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorKP Singh <kpsingh@google.com>2020-11-06 13:37:41 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-11-06 19:08:37 +0300
commit8885274d225985807deeb95de74642073c3b97bb (patch)
tree605b005728cf7b5f8562652ba910eae2d1d55a4c /tools/lib
parent4cf1bc1f10452065a29d576fc5693fc4fab5b919 (diff)
downloadlinux-8885274d225985807deeb95de74642073c3b97bb.tar.xz
libbpf: Add support for task local storage
Updates the bpf_probe_map_type API to also support BPF_MAP_TYPE_TASK_STORAGE similar to other local storage maps. Signed-off-by: KP Singh <kpsingh@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20201106103747.2780972-4-kpsingh@chromium.org
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf_probes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf_probes.c b/tools/lib/bpf/libbpf_probes.c
index 5482a9b7ae2d..ecaae2927ab8 100644
--- a/tools/lib/bpf/libbpf_probes.c
+++ b/tools/lib/bpf/libbpf_probes.c
@@ -230,6 +230,7 @@ bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex)
break;
case BPF_MAP_TYPE_SK_STORAGE:
case BPF_MAP_TYPE_INODE_STORAGE:
+ case BPF_MAP_TYPE_TASK_STORAGE:
btf_key_type_id = 1;
btf_value_type_id = 3;
value_size = 8;