bpf: let kprobe programs use bpf_get_smp_processor_id() helper
authorAlexei Starovoitov <ast@plumgrid.com>
Sat, 13 Jun 2015 02:39:14 +0000 (19:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2015 22:53:50 +0000 (15:53 -0700)
commitab1973d3258aa8c40d153dc12bbb1aac56731e47
tree6b4c9543550d114d75fad4362c6ef526a0d24b77
parent0756ea3e85139d23a8148ebaa95411c2f0aa4f11
bpf: let kprobe programs use bpf_get_smp_processor_id() helper

It's useful to do per-cpu histograms.

Suggested-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/trace/bpf_trace.c