Commit abdaf49
bpf: Remove migrate_disable in kprobe_multi_link_prog_run
Graph tracer framework ensures we won't migrate, kprobe_multi_link_prog_run
called all the way from graph tracer, which disables preemption in
function_graph_enter_regs, as Jiri and Yonghong suggested, there is no
need to use migrate_disable. As a result, some overhead may will be reduced.
And add cant_sleep check for __this_cpu_inc_return.
Fixes: 0dcac27 ("bpf: Add multi kprobe link")
Signed-off-by: Tao Chen <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]1 parent c80d797 commit abdaf49
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2728 | 2728 | | |
2729 | 2729 | | |
2730 | 2730 | | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
2731 | 2738 | | |
2732 | 2739 | | |
2733 | 2740 | | |
2734 | 2741 | | |
2735 | 2742 | | |
2736 | 2743 | | |
2737 | | - | |
2738 | 2744 | | |
2739 | 2745 | | |
2740 | 2746 | | |
2741 | 2747 | | |
2742 | 2748 | | |
2743 | 2749 | | |
2744 | | - | |
2745 | 2750 | | |
2746 | 2751 | | |
2747 | 2752 | | |
| |||
0 commit comments