android_kernel_motorola_sm6375/kernel/trace
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Potapenko 741d9ecacc
FROMGIT: tracing: add error_report_end trace point
Patch series "Add error_report_end tracepoint to KFENCE and KASAN", v3.

This patchset adds a tracepoint, error_repor_end, that is to be used by
KFENCE, KASAN, and potentially other bug detection tools, when they print
an error report.  One of the possible use cases is userspace collection of
kernel error reports: interested parties can subscribe to the tracing
event via tracefs, and get notified when an error report occurs.

This patch (of 3):

Introduce error_report_end tracepoint.  It can be used in debugging tools
like KASAN, KFENCE, etc.  to provide extensions to the error reporting
mechanisms (e.g.  allow tests hook into error reporting, ease error report
collection from production kernels).  Another benefit would be making use
of ftrace for debugging or benchmarking the tools themselves.

Should we need it, the tracepoint name leaves us with the possibility to
introduce a complementary error_report_start tracepoint in the future.

Link: https://lkml.kernel.org/r/20210121131915.1331302-1-glider@google.com
Link: https://lkml.kernel.org/r/20210121131915.1331302-2-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Suggested-by: Marco Elver <elver@google.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Bug: 177201466
(cherry picked from commit ba7612c00686f204f7bca4ceb7394a9e705e84bd
    https://github.com/hnaz/linux-mm v5.11-rc4-mmots-2021-01-21-20-10)
Test: CONFIG_KFENCE_KUNIT_TEST=y passes on Cuttlefish
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: Ic86e29982c04dad4b3b7889a424f37b22cc5f22b
2026-05-07 17:24:05 +03:00
..
blktrace.c UPSTREAM: cgroup: use cgrp->kn->id as the cgroup ID 2025-12-23 13:36:09 -08:00
bpf_trace.c UPSTREAM: bpf: Fix passing zero to PTR_ERR() in bpf_btf_printf_prepare 2026-02-01 20:44:47 -08:00
bpf_trace.h UPSTREAM: bpf: Use dedicated bpf_trace_printk event instead of trace_printk() 2026-02-01 20:44:43 -08:00
error_report-traces.c FROMGIT: tracing: add error_report_end trace point 2026-05-07 17:24:05 +03:00
fgraph.c
ftrace.c ftrace: Let ftrace_enable_sysctl take a kernel pointer buffer 2026-02-01 20:38:01 -08:00
ftrace_internal.h
ipc_logging.c
ipc_logging_debug.c
ipc_logging_private.h
Kconfig UPSTREAM: ftrace: Add register_ftrace_direct() 2025-12-23 13:35:45 -08:00
Makefile FROMGIT: tracing: add error_report_end trace point 2026-05-07 17:24:05 +03:00
msm_rtb.c
power-traces.c
preemptirq_delay_test.c
preemptirq_long.c
ring_buffer.c This is the 5.4.292 stable release 2025-04-11 08:16:05 +00:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c UPSTREAM: module: Fix up module_notifier return values 2026-01-14 18:12:53 -08:00
trace.h
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_dynevent.c
trace_dynevent.h
trace_entries.h
trace_event_perf.c
trace_events.c UPSTREAM: module: Fix up module_notifier return values 2026-01-14 18:12:53 -08:00
trace_events_filter.c
trace_events_filter_test.h
trace_events_hist.c Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
trace_events_trigger.c
trace_export.c
trace_functions.c
trace_functions_graph.c tracing: Fix use-after-free in print_graph_function_flags during tracer switching 2025-04-10 14:29:43 +02:00
trace_hwlat.c
trace_irqsoff.c Merge tag 'ASB-2025-05-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-05-18 08:00:20 +00:00
trace_kdb.c
trace_kprobe.c BACKPORT: maccess: rename probe_user_{read,write} to copy_{from,to}_user_nofault 2026-01-14 18:13:22 -08:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c
trace_output.h
trace_preemptirq.c
trace_printk.c UPSTREAM: module: Fix up module_notifier return values 2026-01-14 18:12:53 -08:00
trace_probe.c
trace_probe.h tracing: Fix race condition in kprobe initialization causing NULL pointer dereference 2025-10-29 13:59:55 +01:00
trace_probe_tmpl.h
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:29:43 +02:00
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c trace: fix an incorrect __user annotation on stack_trace_sysctl 2026-02-01 20:36:42 -08:00
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c Merge tag 'ASB-2025-12-01_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-04 19:21:35 +02:00
tracing_map.c
tracing_map.h