OSDN Git Service

bpf: Add tests for eBPF file mode
authorChenbo Feng <fengc@google.com>
Wed, 18 Oct 2017 20:00:23 +0000 (13:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:32:59 +0000 (13:32 +0100)
commite043325b308745d6968673e7b53080bd7cc39f08
tree4639eaffa734660d47bfc4a3ac8e15c2741d10c9
parent6e71b04a82248ccf13a94b85cbc674a9fefe53f5
bpf: Add tests for eBPF file mode

Two related tests are added into bpf selftest to test read only map and
write only map. The tests verified the read only and write only flags
are working on hash maps.

Signed-off-by: Chenbo Feng <fengc@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_maps.c