Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2236625

Browse files
duwenchaoTreehugger Robot
authored andcommitted
ANDROID: vendor_hooks: Add hooks for ufs scheduler
Add hooks to support oem's ufs scheduler feature. Bug: 323471172 Signed-off-by: duwenchao <duwenchao@xiaomi.com> (cherry picked from commit 00185a4) Change-Id: I8d1699815b7febd31b275c78c08ef5293df142f0 Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com> Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
1 parent 3787d2a commit 2236625

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

drivers/android/vendor_hooks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_syscall_prctl_finished);
9393
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_uic_command);
9494
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_tm_command);
9595
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_check_int_errors);
96+
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_update_sdev);
9697
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_attach);
9798
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_setup_dma_ops);
9899
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_iommu_iovad_alloc_iova);

drivers/ufs/core/ufshcd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,6 +5095,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
50955095

50965096
ufshcd_setup_links(hba, sdev);
50975097

5098+
trace_android_vh_ufs_update_sdev(sdev);
5099+
50985100
return 0;
50995101
}
51005102

include/trace/hooks/ufshcd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ DECLARE_HOOK(android_vh_ufs_check_int_errors,
4949
TP_PROTO(struct ufs_hba *hba, bool queue_eh_work),
5050
TP_ARGS(hba, queue_eh_work));
5151

52+
struct scsi_device;
53+
DECLARE_HOOK(android_vh_ufs_update_sdev,
54+
TP_PROTO(struct scsi_device *sdev),
55+
TP_ARGS(sdev));
56+
5257
#endif /* _TRACE_HOOK_UFSHCD_H */
5358
/* This part must be outside protection */
5459
#include <trace/define_trace.h>

0 commit comments

Comments
 (0)