[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YjZkFrPTW6sR6ATX@shikoro>
Date: Sun, 20 Mar 2022 00:15:34 +0100
From: Wolfram Sang <wsa@...nel.org>
To: Jae Hyun Yoo <quic_jaehyoo@...cinc.com>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>,
Jamie Iles <quic_jiles@...cinc.com>,
Graeme Gregory <quic_ggregory@...cinc.com>,
linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org
Subject: Re: [PATCH v3] i2c: add tracepoints for I2C slave events
On Fri, Mar 18, 2022 at 01:41:33PM -0700, Jae Hyun Yoo wrote:
> I2C slave events tracepoints can be enabled by:
>
> echo 1 > /sys/kernel/tracing/events/i2c_slave/enable
>
> and logs in /sys/kernel/tracing/trace will look like:
>
> ... i2c_slave: i2c-0 a=010 ret=0 WR_REQ []
> ... i2c_slave: i2c-0 a=010 ret=0 WR_RCV [02]
> ... i2c_slave: i2c-0 a=010 ret=0 WR_RCV [0c]
> ... i2c_slave: i2c-0 a=010 ret=0 STOP []
> ... i2c_slave: i2c-0 a=010 ret=0 RD_REQ [04]
> ... i2c_slave: i2c-0 a=010 ret=0 RD_PRO [b4]
> ... i2c_slave: i2c-0 a=010 ret=0 STOP []
>
> formatted as:
>
> i2c-<adapter_nr>
> a=<addr>
> ret=<ret> <- callback return value
> <event>
> [<data>]
>
> trace printings can be selected by adding a filter like:
>
> echo adapter_nr==1 >/sys/kernel/tracing/events/i2c_slave/filter
>
> Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@...cinc.com>
Applied to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists