/* SPDX-License-Identifier: GPL-2.0 */1/*2* Copyright (c) 2026 Meta Platforms, Inc. and affiliates.3* Copyright (c) 2026 Breno Leitao <[email protected]>4*/5#undef TRACE_SYSTEM6#define TRACE_SYSTEM coredump78#if !defined(_TRACE_COREDUMP_H) || defined(TRACE_HEADER_MULTI_READ)9#define _TRACE_COREDUMP_H1011#include <linux/sched.h>12#include <linux/tracepoint.h>1314/**15* coredump - called when a coredump starts16* @sig: signal number that triggered the coredump17*18* This tracepoint fires at the beginning of a coredump attempt,19* providing a stable interface for monitoring coredump events.20*/21TRACE_EVENT(coredump,2223TP_PROTO(int sig),2425TP_ARGS(sig),2627TP_STRUCT__entry(28__field(int, sig)29__array(char, comm, TASK_COMM_LEN)30),3132TP_fast_assign(33__entry->sig = sig;34memcpy(__entry->comm, current->comm, TASK_COMM_LEN);35),3637TP_printk("sig=%d comm=%s",38__entry->sig, __entry->comm)39);4041#endif /* _TRACE_COREDUMP_H */4243/* This part must be outside protection */44#include <trace/define_trace.h>454647