diff options
author | Lee Susman <lsusman@codeaurora.org> | 2016-12-22 18:42:03 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-01-05 18:10:04 -0500 |
commit | 1a07f2d96eb9085396cbfb2d6d42d4003aa2934a (patch) | |
tree | 8fd5227aa9e3bded8b153cbbfcfc67e0cf5a92f2 /drivers/vfio | |
parent | 911a0771b6fa7bac5eae753c17c87ecb77c77283 (diff) | |
download | linux-1a07f2d96eb9085396cbfb2d6d42d4003aa2934a.tar.bz2 |
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
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions