aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-01-27 18:46:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-10 13:39:19 +0200
commitcdf3f6db1a86fc1e3d70423f4ee4fa81e4831157 (patch)
treef92d0944e46546c76586bf39744c95847db261ca /kernel/trace
parent4cf297ef595ce98cb4e9d80ae3e00bb5af0a8de0 (diff)
downloadkernel_replicant_linux-cdf3f6db1a86fc1e3d70423f4ee4fa81e4831157.tar.gz
kernel_replicant_linux-cdf3f6db1a86fc1e3d70423f4ee4fa81e4831157.tar.bz2
kernel_replicant_linux-cdf3f6db1a86fc1e3d70423f4ee4fa81e4831157.zip
bpf: Simplify cases in bpf_base_func_proto
[ Upstream commit 61ca36c8c4eb3bae35a285b1ae18c514cde65439 ] !perfmon_capable() is checked before the last switch(func_id) in bpf_base_func_proto. Thus, the cases BPF_FUNC_trace_printk and BPF_FUNC_snprintf_btf can be moved to that last switch(func_id) to omit the inline !perfmon_capable() checks. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20210127174615.3038-1-tklauser@distanz.ch Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions