public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: David Howells <dhowells@redhat.com>
Cc: wolfram@the-dreams.de, khali@linux-fr.org,
	linux-i2c@vger.kernel.org, rostedt@goodmis.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] i2c: Add message transfer tracepoints for SMBUS [ver #2]
Date: Thu, 13 Mar 2014 22:15:39 +0100	[thread overview]
Message-ID: <20140313211539.GB2696@katana> (raw)
In-Reply-To: <20140306133606.29345.97103.stgit@warthog.procyon.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

On Thu, Mar 06, 2014 at 01:36:06PM +0000, David Howells wrote:
> The SMBUS tracepoints can be enabled thusly:
> 
> 	echo 1 >/sys/kernel/debug/tracing/events/i2c/enable
> 
> and will dump messages that can be viewed in /sys/kernel/debug/tracing/trace
> that look like:
> 
>          ... smbus_read: i2c-0 a=051 f=0000 c=fa BYTE_DATA
>          ... smbus_reply: i2c-0 a=051 f=0000 c=fa BYTE_DATA l=1 [39]
>          ... smbus_result: i2c-0 a=051 f=0000 c=fa BYTE_DATA rd res=0
> 
> formatted as:
> 
> 	i2c-<adapter-nr>
> 	a=<addr>
> 	f=<flags>
> 	c=<command>
> 	<protocol-name>
> 	<rd|wr>
> 	res=<result>
> 	l=<data-len>
> 	[<data-block>]
> 
> 
> The adapters to be traced can be selected by something like:
> 
> 	echo adapter_nr==1 >/sys/kernel/debug/tracing/events/i2c/filter
> 
> Note that this shares the same filter and enablement as i2c.
> 
> Signed-off-by: David Howells <dhowells@redhat.com>
> Reviewed-by: Steven Rostedt <rostedt@goodmis.org>

Applied to for-next, thanks!


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2014-03-13 21:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 13:35 [PATCH 1/2] i2c: Add message transfer tracepoints for I2C [ver #2] David Howells
2014-03-06 13:36 ` [PATCH 2/2] i2c: Add message transfer tracepoints for SMBUS " David Howells
2014-03-13 21:15   ` Wolfram Sang [this message]
2014-03-13 21:15 ` [PATCH 1/2] i2c: Add message transfer tracepoints for I2C " Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140313211539.GB2696@katana \
    --to=wsa@the-dreams.de \
    --cc=dhowells@redhat.com \
    --cc=khali@linux-fr.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=wolfram@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox