mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 14:41:22 -05:00
tracing, AER: Hide PCIe AER event when PCIEAER is not configured
The event aer_event is only used when CONFIG_PCIEAER is configured. It should not be created when it is not. When an event is created it creates around 5K of text and meta data regardless if the tracepoint is used or not. Instead of wasting this memory, put #ifdef around the event to not create it when it is not used. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/20250612094932.4a08abd6@batman.local.home Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
89be9a83cc
commit
a3b366dbf4
@@ -252,6 +252,7 @@ TRACE_EVENT(non_standard_event,
|
||||
__print_hex(__get_dynamic_array(buf), __entry->len))
|
||||
);
|
||||
|
||||
#ifdef CONFIG_PCIEAER
|
||||
/*
|
||||
* PCIe AER Trace event
|
||||
*
|
||||
@@ -337,6 +338,7 @@ TRACE_EVENT(aer_event,
|
||||
__print_array(__entry->tlp_header, PCIE_STD_MAX_TLP_HEADERLOG, 4) :
|
||||
"Not available")
|
||||
);
|
||||
#endif /* CONFIG_PCIEAER */
|
||||
|
||||
/*
|
||||
* memory-failure recovery action result event
|
||||
|
||||
Reference in New Issue
Block a user