net: filter: test fill/spill of all M[] regs
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 26 May 2014 18:17:34 +0000 (20:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 May 2014 23:27:39 +0000 (16:27 -0700)
commit108cc22a93e1843e728b9753442429c71f48f9e4
tree0e6eb0fa8b79c3a11676ff042bacd2e8d8d6dffa
parentc4438f03ca439daa349d93d7102ed36422dfcd7f
net: filter: test fill/spill of all M[] regs

This test for classic BPF probes stores and load combination
via X on all 16 registers of the scratch memory store. It
initially loads integer 100 and passes this value around
to each register while incrementing it every time, thus we
expect to have 116 as a result. Might be useful for JIT
testing.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c