]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: add skb->field examples and tests
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 13 Mar 2015 18:57:43 +0000 (11:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 02:02:28 +0000 (22:02 -0400)
commit6db7199d108c21f2098392b2c2520b9d58898b68
tree3c294086671617614f672aeb0d14bd2496fdb23c
parent6c418a8d3be299017ce49af4890298de04871b05
samples: bpf: add skb->field examples and tests

- modify sockex1 example to count number of bytes in outgoing packets
- modify sockex2 example to count number of bytes and packets per flow
- add 4 stress tests that exercise 'skb->field' code path of verifier

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/sockex1_kern.c
samples/bpf/sockex1_user.c
samples/bpf/sockex2_kern.c
samples/bpf/sockex2_user.c
samples/bpf/test_verifier.c