diff options
| author | Paul Chaignon <paul.chaignon@orange.com> | 2019-09-17 11:41:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-09-17 14:41:41 +0200 |
| commit | c9364a464803dee7c57da611a17d01b57b53ff7d (patch) | |
| tree | 443176872012ac3f63d8709ca007a64fb9f037bc /sys/linux/bpf_amd64.const | |
| parent | 13dcda9b39492dcd91150df7d867bbe2a44cc5e6 (diff) | |
sys/linux: support for loopkup-free map value accesses
A new BPF instruction that allows lookup-free map value accesses was added
in Linux v5.2, with commit d8eca5b ("bpf: implement lookup-free direct
value access for maps"). It enables direct access to map values without
having to call a BPF helper. It is currently used to implement global
variable support.
This commit adds support for that new instruction.
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
Diffstat (limited to 'sys/linux/bpf_amd64.const')
| -rw-r--r-- | sys/linux/bpf_amd64.const | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/bpf_amd64.const b/sys/linux/bpf_amd64.const index ceca22509..5dc99bcc3 100644 --- a/sys/linux/bpf_amd64.const +++ b/sys/linux/bpf_amd64.const @@ -149,6 +149,7 @@ BPF_PROG_TYPE_SOCK_OPS = 13 BPF_PROG_TYPE_TRACEPOINT = 5 BPF_PROG_TYPE_XDP = 6 BPF_PSEUDO_MAP_FD = 1 +BPF_PSEUDO_MAP_VALUE = 2 BPF_RAW_TRACEPOINT_OPEN = 17 BPF_REG_0 = 0 BPF_REG_1 = 1 |
