linux-yocto/kernel/trace
Tao Chen f059795ec6 bpf: Remove migrate_disable in kprobe_multi_link_prog_run
[ Upstream commit abdaf49be5424db74e19d167c10d7dad79a0efc2 ]

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: 0dcac27254 ("bpf: Add multi kprobe link")
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250814121430.2347454-1-chen.dylane@linux.dev
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:59:56 +02:00
..
rv
blktrace.c
bpf_trace.c bpf: Remove migrate_disable in kprobe_multi_link_prog_run 2025-10-15 11:59:56 +02:00
bpf_trace.h
error_report-traces.c
fgraph.c trace/fgraph: Fix error handling 2025-09-19 16:35:43 +02:00
fprobe.c
ftrace_internal.h
ftrace.c ftrace: Also allocate and copy hash for reading of filter files 2025-08-28 16:31:08 +02:00
Kconfig
kprobe_event_gen_test.c
Makefile
pid_list.c
pid_list.h
power-traces.c
preemptirq_delay_test.c kernel: trace: preemptirq_delay_test: use offstack cpu mask 2025-08-15 12:13:53 +02:00
rethook.c
ring_buffer_benchmark.c
ring_buffer.c ring-buffer: Remove ring_buffer_read_prepare_sync() 2025-08-15 12:13:46 +02:00
rpm-traces.c
synth_event_gen_test.c
trace_benchmark.c
trace_benchmark.h
trace_boot.c
trace_branch.c
trace_btf.c
trace_btf.h
trace_clock.c tracing: Use atomic64_inc_return() in trace_clock_counter() 2024-12-14 20:03:58 +01:00
trace_dynevent.c tracing: dynevent: Add a missing lockdown check on dynevent 2025-10-02 13:44:13 +02:00
trace_dynevent.h tracing: probes: Fix a possible race in trace_probe_log APIs 2025-05-22 14:29:36 +02:00
trace_entries.h
trace_eprobe.c tracing/eprobe: Fix to release eprobe when failed to add dyn_event 2024-12-14 20:04:13 +01:00
trace_event_perf.c
trace_events_filter_test.h
trace_events_filter.c tracing: Fix filter string testing 2025-04-25 10:47:55 +02:00
trace_events_hist.c tracing: Rename event_trigger_alloc() to trigger_data_alloc() 2025-06-19 15:31:48 +02:00
trace_events_inject.c
trace_events_synth.c tracing: Do not add length to print format in synthetic events 2025-04-20 10:15:50 +02:00
trace_events_trigger.c tracing: Fix error handling in event_trigger_parse() 2025-06-19 15:31:48 +02:00
trace_events_user.c
trace_events.c tracing: Add down_write(trace_event_sem) when adding trace event 2025-07-24 08:56:22 +02:00
trace_export.c
trace_fprobe.c tracing: fprobe events: Fix possible UAF on modules 2025-04-20 10:15:50 +02:00
trace_functions_graph.c tracing: Fix use-after-free in print_graph_function_flags during tracer switching 2025-04-10 14:39:39 +02:00
trace_functions.c ftrace: Fix preemption accounting for stacktrace filter command 2025-05-22 14:29:48 +02:00
trace_hwlat.c
trace_irqsoff.c tracing: Fix use-after-free in print_graph_function_flags during tracer switching 2025-04-10 14:39:39 +02:00
trace_kdb.c ring-buffer: Remove ring_buffer_read_prepare_sync() 2025-08-15 12:13:46 +02:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_kprobe.c tracing: probes: Fix a possible race in trace_probe_log APIs 2025-05-22 14:29:36 +02:00
trace_mmiotrace.c
trace_nop.c
trace_osnoise.c tracing/osnoise: Fix crash in timerlat_dump_stack() 2025-07-24 08:56:22 +02:00
trace_output.c tracing: Do not take trace_event_sem in print_event_fields() 2025-05-09 09:50:32 +02:00
trace_output.h
trace_preemptirq.c
trace_printk.c
trace_probe_kernel.h
trace_probe_tmpl.h
trace_probe.c tracing/probes: Avoid using params uninitialized in parse_btf_arg() 2025-07-24 08:56:22 +02:00
trace_probe.h tracing: probe-events: Remove unused MAX_ARG_BUF_LEN macro 2025-03-13 13:02:05 +01:00
trace_recursion_record.c
trace_sched_switch.c
trace_sched_wakeup.c tracing: Fix use-after-free in print_graph_function_flags during tracer switching 2025-04-10 14:39:39 +02:00
trace_selftest_dynamic.c
trace_selftest.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_synth.h
trace_syscalls.c tracing/ftrace: disable preemption in syscall probe 2024-12-14 20:03:58 +01:00
trace_uprobe.c tracing: probes: Fix a possible race in trace_probe_log APIs 2025-05-22 14:29:36 +02:00
trace.c tracing: Silence warning when chunk allocation fails in trace_pid_write 2025-09-19 16:35:44 +02:00
trace.h tracing: Limit access to parser->buffer when trace_get_user failed 2025-08-28 16:31:10 +02:00
tracing_map.c tracing: Fix cmp_entries_dup() to respect sort() comparison rules 2024-12-14 20:03:21 +01:00
tracing_map.h