bpf: allow bpf_get_prandom_u32() to be used in tracing
authorAlexei Starovoitov <ast@fb.com>
Fri, 12 Aug 2016 01:17:18 +0000 (18:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 04:57:05 +0000 (21:57 -0700)
commit8937bd80fce64a25be23c7790459d93f7b1e9b79
tree62cfc0819d3d6407636c8fc1e4d00a43081e24c3
parent1633ac0a2e774a9af339b9290ef33cd97a918c54
bpf: allow bpf_get_prandom_u32() to be used in tracing

bpf_get_prandom_u32() was initially introduced for socket filters
and later requested numberous times to be added to tracing bpf programs
for the same reason as in socket filters: to be able to randomly
select incoming events.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/trace/bpf_trace.c