Thread (12 messages) 12 messages, 6 authors, 2026-01-09

Re: [PATCH v2 1/3] PCI: trace: Add PCI controller LTSSM transition tracepoint

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-01-09 03:42:51
Also in: linux-doc, linux-pci, linux-rockchip

On Fri,  9 Jan 2026 11:29:47 +0800
Shawn Lin [off-list ref] wrote:
+	TP_printk("dev: %s state: %s rate: %s",
+		__get_str(dev_name), __get_str(state),
+		__print_symbolic(__entry->rate,
+			{ PCIE_SPEED_2_5GT,  "2.5 GT/s" },
+			{ PCIE_SPEED_5_0GT,  "5.0 GT/s" },
+			{ PCIE_SPEED_8_0GT,  "8.0 GT/s" },
+			{ PCIE_SPEED_16_0GT, "16.0 GT/s" },
+			{ PCIE_SPEED_32_0GT, "32.0 GT/s" },
+			{ PCIE_SPEED_64_0GT, "64.0 GT/s" },
+			{ PCI_SPEED_UNKNOWN, "Unknown" }
As these values are all enums, you may want to add in this file:

TRACE_DEFINE_ENUM(PCIE_SPEED_2_5GT);
TRACE_DEFINE_ENUM(PCIE_SPEED_5_0GT);
[..]
TRACE_DEFINE_ENUM(PCIE_SPEED_UNKNOWN);

So that this can be parsed by user space tooling such as trace-cmd and
perf.

-- 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