Thread (5 messages) 5 messages, 3 authors, 2025-05-08

Re: [PATCH v7] PCI: hotplug: Add a generic RAS tracepoint for hotplug event

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-05-07 15:36:31
Also in: linux-edac, linux-pci, lkml

On Wed,  7 May 2025 09:15:35 +0800
Shuai Xue [off-list ref] wrote:
+#endif /* _TRACE_HW_EVENT_PCI_HP_H */
+
+#undef TRACE_INCLUDE_PATH
+#define TRACE_INCLUDE_PATH  ../../drivers/pci/hotplug
Note, this is not always safe to do. If "drivers", "pci" or "hotplug" ever
become a macro, the path will also be updated, and this will fail to build.
quoted hunk ↗ jump to hunk
+#undef TRACE_INCLUDE_FILE
+#define TRACE_INCLUDE_FILE trace
+
+/* This part must be outside protection */
+#include <trace/define_trace.h>
diff --git a/include/uapi/linux/pci.h b/include/uapi/linux/pci.h
The safer way to do this is to have:

In drivers/pci/hotplug/Makefile:

CFLAGS_pciehp_ctrl.o := -I$(src)

And replace the TRACE_INCLUDE_PATH to:

#define TRACE_INCLUDE_PATH .

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help