diff options
author | 2019-06-14 16:22:18 -0700 | |
---|---|---|
committer | 2019-06-14 20:18:27 -0700 | |
commit | a8e11e5c5611a9f70470aebeb2c1dd6132f609d7 (patch) | |
tree | f63600a91cf14ba2590ab2bad28dfae9729630a8 /kernel/bpf | |
parent | hv_netvsc: Set probe mode to sync (diff) | |
download | linux-a8e11e5c5611a9f70470aebeb2c1dd6132f609d7.tar.gz linux-a8e11e5c5611a9f70470aebeb2c1dd6132f609d7.tar.bz2 linux-a8e11e5c5611a9f70470aebeb2c1dd6132f609d7.zip |
sysctl: define proc_do_static_key()
Convert proc_dointvec_minmax_bpf_stats() into a more generic
helper, since we are going to use jump labels more often.
Note that sysctl_bpf_stats_enabled is removed, since
it is no longer needed/used.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 7c473f208a10..080e2bb644cc 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -2097,7 +2097,6 @@ int __weak skb_copy_bits(const struct sk_buff *skb, int offset, void *to, DEFINE_STATIC_KEY_FALSE(bpf_stats_enabled_key); EXPORT_SYMBOL(bpf_stats_enabled_key); -int sysctl_bpf_stats_enabled __read_mostly; /* All definitions of tracepoints related to BPF. */ #define CREATE_TRACE_POINTS |