tmp_suning_uos_patched/tools/net
Chema Gonzalez 4cd3675ebf filter: added BPF random opcode
Added a new ancillary load (bpf call in eBPF parlance) that produces
a 32-bit random number. We are implementing it as an ancillary load
(instead of an ISA opcode) because (a) it is simpler, (b) allows easy
JITing, and (c) seems more in line with generic ISAs that do not have
"get a random number" as a instruction, but as an OS call.

The main use for this ancillary load is to perform random packet sampling.

Signed-off-by: Chema Gonzalez <chema@google.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-22 21:27:57 -04:00
..
bpf_asm.c filter: bpf_asm: add minimal bpf asm tool 2013-12-11 20:28:35 -05:00
bpf_dbg.c tools: bpf_dbg: various misc code cleanups 2014-02-24 19:02:10 -05:00
bpf_exp.l filter: added BPF random opcode 2014-04-22 21:27:57 -04:00
bpf_exp.y filter: added BPF random opcode 2014-04-22 21:27:57 -04:00
bpf_jit_disasm.c
Makefile tools/net/Makefile: Define PACKAGE to fix build problems 2014-03-12 00:07:55 -04:00