From cd3454ba97cb695ff923f4d7def0e25e85e5298c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 14 May 2019 15:08:05 +0200 Subject: sys/linux: improve btf descriptions Now that we have the len path expressions we can fix the TODO in btf descriptions to properly specify offsets of btf sections. Also add proper descriptions for btf type section and few other minor things around. --- sys/linux/bpf_ppc64le.const | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sys/linux/bpf_ppc64le.const') diff --git a/sys/linux/bpf_ppc64le.const b/sys/linux/bpf_ppc64le.const index a8f5111bc..166f386c9 100644 --- a/sys/linux/bpf_ppc64le.const +++ b/sys/linux/bpf_ppc64le.const @@ -164,6 +164,24 @@ BPF_TASK_FD_QUERY = 20 BPF_W0 = 0 BPF_XADD0 = 6 BPF_XOR0 = 10 +BTF_INT_BOOL = 4 +BTF_INT_CHAR = 2 +BTF_INT_SIGNED = 1 +BTF_KIND_ARRAY = 3 +BTF_KIND_CONST = 10 +BTF_KIND_DATASEC = 15 +BTF_KIND_ENUM = 6 +BTF_KIND_FUNC = 12 +BTF_KIND_FUNC_PROTO = 13 +BTF_KIND_FWD = 7 +BTF_KIND_INT = 1 +BTF_KIND_PTR = 2 +BTF_KIND_RESTRICT = 11 +BTF_KIND_STRUCT = 4 +BTF_KIND_TYPEDEF = 8 +BTF_KIND_UNION = 5 +BTF_KIND_VAR = 14 +BTF_KIND_VOLATILE = 9 BTF_MAGIC = 60319 BTF_VERSION = 1 MAX_BPF_REG = 11 -- cgit mrf-deployment