]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add bpf_verify_program() to the library.
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 May 2017 18:42:48 +0000 (11:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 May 2017 18:19:00 +0000 (14:19 -0400)
commit409972ec629612cc64df5bfe47036fad41867bd9
treee9acd575376236e1715bfa6704fdef67f7981a72
parenta84b1a4bac9e9d4e4a21532f37d6a1738407484b
bpf: Add bpf_verify_program() to the library.

This allows a test case to load a BPF program and unconditionally
acquire the verifier log.

It also allows specification of the strict alignment flag.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h