Add support for i2c tracepoints
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 4 Oct 2016 21:07:05 +0000 (17:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Oct 2016 21:48:29 +0000 (17:48 -0400)
commit2ca394649a5fb4135bfbe541f090b06ef933a63b
treecb7c3344219a856274f23e2601a8cf4098ac7f00
parent78b334181cbe674cfb10f0f11ebd7d36e6feb045
Add support for i2c tracepoints

This patch teaches lttng-modules about the i2c tracepoints in the Linux
kernel.

It contains the following tracepoints:

  * i2c_write
  * i2c_read
  * i2c_reply
  * i2c_result

I translated the fields and assignments from the kernel's
include/trace/events/i2c.h as well as I could.  I also tried building
this module against a kernel without CONFIG_I2C, and it built fine (the
required types are unconditionally defined).  So I don't think any "#if
CONFIG_I2C" or similar are required.

A module parameter (extract_sensitive_payload) controls the extraction
of possibly sensitive data from events.

[ With edit by Mathieu Desnoyers. ]

Signed-off-by: Simon Marchi <simon.marchi@ericsson.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/i2c.h [new file with mode: 0644]
probes/Kbuild
probes/lttng-probe-i2c.c [new file with mode: 0644]
This page took 0.026671 seconds and 5 git commands to generate.