diff options
| author | Mark Wielaard <[email protected]> | 2018-11-04 21:34:38 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-11-09 18:26:38 +0100 |
| commit | cff53f1784c9a4344604bedf41b7d499b3eb30d5 (patch) | |
| tree | 15a16d979052bfa43df66d3619e333899f66d176 /lib/bpf.h | |
| parent | ecbe3120cddb1b9597a19a68c4265e4f2c530444 (diff) | |
libcpu: Recognize bpf jump variants BPF_JLT, BPF_JLE, BPF_JSLT and BPF_JSLE
Linux kernel 4.13 introduced 4 more jump class variants.
commit 92b31a9af73b3a3fc801899335d6c47966351830
Author: Daniel Borkmann <[email protected]>
Date: Thu Aug 10 01:39:55 2017 +0200
bpf: add BPF_J{LT,LE,SLT,SLE} instructions
For conditional jumping on unsigned and signed < and <= between a register
and another register or immediate.
Add these new constants to bpf.h, recognize them in bpf_disasm and update
the testfile-bpf-dis1.expect file.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'lib/bpf.h')
| -rw-r--r-- | lib/bpf.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -23,6 +23,10 @@ #define BPF_JSGE 0x70 #define BPF_CALL 0x80 #define BPF_EXIT 0x90 +#define BPF_JLT 0xa0 +#define BPF_JLE 0xb0 +#define BPF_JSLT 0xc0 +#define BPF_JSLE 0xd0 #define BPF_W 0x00 #define BPF_H 0x08 |
