lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 13 Mar 2014 22:15:39 +0100
From:	Wolfram Sang <wsa@...-dreams.de>
To:	David Howells <dhowells@...hat.com>
Cc:	wolfram@...-dreams.de, khali@...ux-fr.org,
	linux-i2c@...r.kernel.org, rostedt@...dmis.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] i2c: Add message transfer tracepoints for SMBUS [ver
 #2]

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@...hat.com>
> Reviewed-by: Steven Rostedt <rostedt@...dmis.org>

Applied to for-next, thanks!


Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ