android_kernel_oneplus_msm8998/include/trace
Lee Susman b0c1404cb0 scsi: ufs: add trace event for ufs commands
Use the ftrace infrastructure to conditionally trace ufs command events.
New trace event is created, which samples the following ufs command data:
- device name
- optional identification string
- task tag
- doorbell register
- number of transfer bytes
- interrupt status register
- request start LBA
- command opcode

Currently we only fully trace read(10) and write(10) commands.
All other commands which pass through ufshcd_send_command() will be
printed with "-1" in the lba and transfer_len fields.

Usage:
	echo 1 > /sys/kernel/debug/tracing/events/ufs/enable
	cat /sys/kernel/debug/tracing/trace_pipe

Change-Id: Id6e16a8c0b2a833c5453ed9923384f641e374a71
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
[gbroner@codeaurora.org: fix merge conflict]
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
[subhashj@codeaurora.org: resolved merge conflicts and compilation error]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-03-22 10:57:53 -07:00
..
events scsi: ufs: add trace event for ufs commands 2016-03-22 10:57:53 -07:00
define_trace.h tracing: Allow disabling compilation of specific trace systems 2015-10-20 21:55:44 -04:00
perf.h tracing: Move non perf code out of perf.h 2015-09-23 09:31:34 -04:00
syscall.h tracing: Rename ftrace_event_{call,class} to trace_event_{call,class} 2015-05-13 14:06:10 -04:00
trace_events.h tracing: Move non perf code out of perf.h 2015-09-23 09:31:34 -04:00
trace_thermal.h qpnp: Add snapshot of some qpnp, regulator and charger drivers 2016-03-01 12:22:31 -08:00