Commit cf16731
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>1 parent 4e0db84 commit cf16731
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | 723 | | |
732 | 724 | | |
733 | 725 | | |
| |||
742 | 734 | | |
743 | 735 | | |
744 | 736 | | |
| 737 | + | |
| 738 | + | |
745 | 739 | | |
746 | 740 | | |
747 | 741 | | |
| |||
752 | 746 | | |
753 | 747 | | |
754 | 748 | | |
| 749 | + | |
| 750 | + | |
755 | 751 | | |
756 | 752 | | |
757 | 753 | | |
| |||
0 commit comments