]> git.baikalelectronics.ru Git - kernel.git/commit
ebpf: allow bpf_ktime_get_ns_proto also for networking
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 29 May 2015 21:23:06 +0000 (23:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 04:44:44 +0000 (21:44 -0700)
commit326f56af2661b17a94f14908040d44664a5e4c37
tree100f160426a26857a776c4b3fd3beb8848bda474
parent1386b6286240814fde42c5830791aa8251bcef51
ebpf: allow bpf_ktime_get_ns_proto also for networking

As this is already exported from tracing side via commit 3d1eb9998a93
("tracing: Allow BPF programs to call bpf_ktime_get_ns()"), we might
as well want to move it to the core, so also networking users can make
use of it, e.g. to measure diffs for certain flows from ingress/egress.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/helpers.c
kernel/trace/bpf_trace.c
net/core/filter.c