]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa6ae24d5250d511a689463c63e435cd1a664f0b
tree0e6eb0fa8b79c3a11676ff042bacd2e8d8d6dffa
parent394e4b32dba96a3ae73dfea25760db64c9e21a04
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