]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libcpu: Recognize bpf jump variants BPF_JLT, BPF_JLE, BPF_JSLT and BPF_JSLE
authorMark Wielaard <mark@klomp.org>
Sun, 4 Nov 2018 20:34:38 +0000 (21:34 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 9 Nov 2018 17:26:38 +0000 (18:26 +0100)
commitcff53f1784c9a4344604bedf41b7d499b3eb30d5
tree15a16d979052bfa43df66d3619e333899f66d176
parentecbe3120cddb1b9597a19a68c4265e4f2c530444
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 <daniel@iogearbox.net>
  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 <mark@klomp.org>
lib/ChangeLog
lib/bpf.h
libcpu/ChangeLog
libcpu/bpf_disasm.c
tests/ChangeLog
tests/testfile-bpf-dis1.expect.bz2