aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorPaul Chaignon <paul@cilium.io>2020-10-26 18:46:05 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-10-26 19:17:24 +0100
commit8b3eaf58f88f0e0a776866110d9baf8367dde8f0 (patch)
tree91e1f2c46ba8f873c5b61b7b0b0a6a9c9f381e14 /sys/linux
parentdf76264d7be2971f0fdf145d6523437ef629f40c (diff)
sys/linux: update BPF_PROG_TEST_RUN's fields
These new fields were introduced in commit 1b4d60e ("bpf: Enable BPF_PROG_TEST_RUN for raw_tracepoint") upstream. Signed-off-by: Paul Chaignon <paul@cilium.io>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/bpf.txt3
-rw-r--r--sys/linux/bpf.txt.const1
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index 3d8b4ed79..33004b087 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -455,6 +455,8 @@ bpf_test_prog_arg {
outsizectx len[outctx, int32]
inctx ptr64[in, array[int8]]
outctx ptr64[in, array[int8]]
+ flags flags[bpf_prog_test_run_flags, int32]
+ cpu int32
}
bpf_prog_get_next_id_arg {
@@ -763,6 +765,7 @@ bpf_prog_load_flags = BPF_F_STRICT_ALIGNMENT, BPF_F_ANY_ALIGNMENT, BPF_F_TEST_RN
bpf_attach_flags = BPF_F_ALLOW_OVERRIDE, BPF_F_ALLOW_MULTI, BPF_F_REPLACE
bpf_link_update_flags = BPF_F_REPLACE
bpf_prog_query_flags = BPF_F_QUERY_EFFECTIVE
+bpf_prog_test_run_flags = BPF_F_TEST_RUN_ON_CPU
bpf_prog_query_attach_type = BPF_CGROUP_INET_INGRESS, BPF_CGROUP_INET_EGRESS, BPF_CGROUP_INET_SOCK_CREATE, BPF_CGROUP_SOCK_OPS, BPF_CGROUP_DEVICE, BPF_CGROUP_INET4_BIND, BPF_CGROUP_INET4_CONNECT, BPF_CGROUP_INET4_POST_BIND, BPF_CGROUP_INET6_BIND, BPF_CGROUP_INET6_CONNECT, BPF_CGROUP_INET6_POST_BIND, BPF_CGROUP_UDP4_SENDMSG, BPF_CGROUP_UDP6_SENDMSG, BPF_LIRC_MODE2, BPF_CGROUP_SYSCTL, BPF_FLOW_DISSECTOR, BPF_CGROUP_UDP4_RECVMSG, BPF_CGROUP_UDP6_RECVMSG, BPF_CGROUP_GETSOCKOPT, BPF_CGROUP_SETSOCKOPT, BPF_CGROUP_INET4_GETPEERNAME, BPF_CGROUP_INET4_GETSOCKNAME, BPF_CGROUP_INET6_GETPEERNAME, BPF_CGROUP_INET6_GETSOCKNAME, BPF_CGROUP_INET_SOCK_RELEASE, BPF_SK_LOOKUP
bpf_open_flags = BPF_F_RDONLY, BPF_F_WRONLY
bpf_stat_types = BPF_STATS_RUN_TIME
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const
index 7a96c1b25..51356fb39 100644
--- a/sys/linux/bpf.txt.const
+++ b/sys/linux/bpf.txt.const
@@ -62,6 +62,7 @@ BPF_F_SLEEPABLE = 16
BPF_F_STACK_BUILD_ID = 32
BPF_F_STRICT_ALIGNMENT = 1
BPF_F_TEST_RND_HI32 = 4
+BPF_F_TEST_RUN_ON_CPU = 1
BPF_F_TEST_STATE_FREQ = 8
BPF_F_WRONLY = 16
BPF_F_WRONLY_PROG = 256