Siddh Raman Pant
2450a69d2e
Revert "tracing/trigger: Fix to return error if failed to alloc snapshot"
...
This reverts commit 8ffd5590f4 which is
commit 0958b33ef5a04ed91f61cef4760ac412080c4e08 upstream.
The change has an incorrect assumption about the return value because
in the current stable trees for versions 5.15 and before, the following
commit responsible for making 0 a success value is not present:
b8cc44a4d3c1 ("tracing: Remove logic for registering multiple event triggers at a time")
The return value should be 0 on failure in the current tree, because in
the functions event_trigger_callback() and event_enable_trigger_func(),
we have:
ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file);
/*
* The above returns on success the # of functions enabled,
* but if it didn't find any functions it returns zero.
* Consider no functions a failure too.
*/
if (!ret) {
ret = -ENOENT;
Cc: [email protected] # 5.15, 5.10, 5.4, 4.19
Signed-off-by: Siddh Raman Pant <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2024-05-02 16:18:30 +02:00
..
blktrace.c
blktrace: Fix output non-blktrace event when blk_classic option enabled
2023-01-18 11:41:13 +01:00
bpf_trace.c
bpf: Clear the probe_addr for uprobe
2023-09-23 10:59:41 +02:00
fgraph.c
fgraph: Initialize tracing_graph_pause at task creation
2021-02-10 09:25:29 +01:00
ftrace.c
ftrace: Fix possible warning on checking all pages used in ftrace_process_locs()
2023-08-11 11:53:46 +02:00
ftrace_internal.h
Kconfig
tracing/kprobes: Do the notrace functions check without kprobes on ftrace
2021-01-19 18:26:12 +01:00
Makefile
power-traces.c
preemptirq_delay_test.c
ring_buffer.c
ring-buffer: Fix full_waiters_pending in poll
2024-04-13 12:51:26 +02:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
tracing: Inform kmemleak of saved_cmdlines allocation
2024-02-23 08:25:13 +01:00
trace.h
tracing: Have trace_event_file have ref counters
2023-11-28 16:50:22 +00:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
tracing: Do no increment trace_clock_global() by one
2021-06-23 14:41:28 +02:00
trace_dynevent.c
tracing: Free buffers when a used dynamic event is removed
2022-12-08 11:23:04 +01:00
trace_dynevent.h
trace_entries.h
trace_event_perf.c
trace_events.c
tracing: Have trace_event_file have ref counters
2023-11-28 16:50:22 +00:00
trace_events_filter.c
tracing: Have trace_event_file have ref counters
2023-11-28 16:50:22 +00:00
trace_events_filter_test.h
trace_events_hist.c
tracing/histograms: Return an error if we fail to add histogram to hist_vars list
2023-07-27 08:37:45 +02:00
trace_events_trigger.c
Revert "tracing/trigger: Fix to return error if failed to alloc snapshot"
2024-05-02 16:18:30 +02:00
trace_export.c
trace_functions.c
tracing: Have all levels of checks prevent recursion
2021-10-27 09:54:29 +02:00
trace_functions_graph.c
trace_hwlat.c
tracing: Remove WARN_ON in start_thread()
2020-12-08 10:40:28 +01:00
trace_irqsoff.c
tracing: Fix memleak due to race between current_tracer and trace
2023-08-30 16:27:23 +02:00
trace_kdb.c
trace_kprobe.c
tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
2023-08-30 16:27:14 +02:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c
tracing: Add size check when printing trace_marker output
2024-01-25 14:34:20 -08:00
trace_output.h
trace_preemptirq.c
tracing: hold caller_addr to hardirq_{enable,disable}_ip
2022-09-28 11:03:57 +02:00
trace_printk.c
trace_probe.c
tracing/probes: Have kprobes and uprobes use $COMM too
2022-08-25 11:18:39 +02:00
trace_probe.h
tracing/probe: trace_probe_primary_from_call(): checked list_first_entry
2023-06-09 10:29:02 +02:00
trace_probe_tmpl.h
tracing/probes: Fix to update dynamic data counter if fetcharg uses it
2023-08-30 16:27:14 +02:00
trace_sched_switch.c
trace_sched_wakeup.c
tracing: Fix memleak due to race between current_tracer and trace
2023-08-30 16:27:23 +02:00
trace_selftest.c
ftrace: Handle tracing when switching between context
2020-11-10 12:37:28 +01:00
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c
bpf: Clear the probe_addr for uprobe
2023-09-23 10:59:41 +02:00
tracing_map.c
tracing: Ensure visibility when inserting an element into tracing_map
2024-02-23 08:24:50 +01:00
tracing_map.h