diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2021-01-27 18:46:15 +0100 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-29 02:20:28 +0100 |
| commit | 61ca36c8c4eb3bae35a285b1ae18c514cde65439 (patch) | |
| tree | 966784915300da93b4732ab8704af443465a2d4d /tools/perf/scripts/python/flamegraph.py | |
| parent | bpf: Enable bpf_{g,s}etsockopt in BPF_CGROUP_UDP{4,6}_RECVMSG (diff) | |
| download | linux-61ca36c8c4eb3bae35a285b1ae18c514cde65439.tar.gz linux-61ca36c8c4eb3bae35a285b1ae18c514cde65439.zip | |
bpf: Simplify cases in bpf_base_func_proto
!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
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
