[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230928081052.GG9829@noisy.programming.kicks-ass.net>
Date: Thu, 28 Sep 2023 10:10:52 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Dan Raymond <raymod2@...il.com>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org, mingo@...hat.com,
bp@...en8.de, dave.hansen@...ux.intel.com, hpa@...or.com
Subject: Re: [PATCH v2] arch/x86: port I/O tracing on x86
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
Powered by blists - more mailing lists