Re: [PATCH v2] arch/x86: port I/O tracing on x86

From: Peter Zijlstra
Date: Thu Sep 28 2023 - 04:11:40 EST


On Wed, Sep 27, 2023 at 09:52:11AM -0600, Dan Raymond wrote:

> #define BUILDIO(bwl, bw, type) \
> static inline void __out##bwl(type value, u16 port) \
> { \
> asm volatile("out" #bwl " %" #bw "0, %w1" \
> : : "a"(value), "Nd"(port)); \
> + if (_tracepoint_enabled(portio_write)) \
> + do_trace_portio_write(value, port, #bwl[0]); \
> } \
> \
> static inline type __in##bwl(u16 port) \
> @@ -16,6 +39,8 @@ static inline type __in##bwl(u16 port) \
> type value; \
> asm volatile("in" #bwl " %w1, %" #bw "0" \
> : "=a"(value) : "Nd"(port)); \
> + if (_tracepoint_enabled(portio_read)) \
> + do_trace_portio_read(value, port, #bwl[0]); \
> return value; \
> }

NACK