Re: [PATCH v9 2/2] PCI: trace: Add a RAS tracepoint to monitor link speed changes

Steven Rostedt
2025-07-23T14:06:11Z

On Wed, 23 Jul 2025 11:31:08 +0800
Shuai Xue <xueshuai@linux.alibaba.com> wrote:

> + TP_printk("%s type:%d, reason:%d, cur_bus_speed:%s, max_bus_speed:%s, width:%u, flit_mode:%u, status:%s\n",
> + __get_str(port_name),
> + __entry->type,
> + __entry->reason,
> + pci_speed_string(__entry->cur_bus_speed),
> + pci_speed_string(__entry->max_bus_speed),

Hmm, I guess pci_speed_string() should be added to libtraceveent so
that perf and trace-cmd parses it correctly. I guess rasdaemon would
want that too (which also uses libtraceevent).

-- Steve

> + __entry->width,
> + __entry->flit_mode,
> + __print_flags((unsigned long)__entry->link_status, "|",
> + LNKSTA_FLAGS)
> + )
> +);