scsi: ufs: add trace event for ufs upiu
authorOhad Sharabi <ohad.sharabi@sandisk.com>
Wed, 28 Mar 2018 09:42:18 +0000 (12:42 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 03:37:39 +0000 (23:37 -0400)
commit6667e6d91c88a788d5ab1b1e999d245473e84a90
treee327d812aeb947cb75657eabd2587f7544082f9d
parent4d79e7d0f0cfe22c05c21a1008fa000f153119aa
scsi: ufs: add trace event for ufs upiu

Add UFS Protocol Information Units(upiu) trace events for ufs driver,
used to trace various ufs transaction types- command, task-management
and device management.
The trace-point format is generic and can be easily adapted to trace
other upius if needed.
Currently tracing ufs transaction of type 'device management', which
this patch introduce, cannot be obtained from any other trace.
Device management transactions are used for communication with the
device such as reading and writing descriptor or attributes etc.

Signed-off-by: Ohad Sharabi <ohad.sharabi@sandisk.com>
Reviewed-by: Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
include/trace/events/ufs.h