ANDROID: vendor_hooks: Add hooks for ufs scheduler

Add hooks to support oem's ufs scheduler feature.

Bug: 183085044
Signed-off-by: duwenchao <duwenchao@xiaomi.com>
Change-Id: I09bf9cba33412c81e4da83292772c0e95cf32022
(cherry picked from commit 00185a421ad41b6e5dbb57162439d5fa33814e5e)
Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com>
This commit is contained in:
duwenchao 2021-03-18 20:02:12 +08:00 committed by Akilesh Kailash
parent 0df6133988
commit fcc4497c47
3 changed files with 8 additions and 0 deletions

View file

@ -93,6 +93,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_syscall_prctl_finished);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_uic_command);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_tm_command);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_check_int_errors);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_update_sdev);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_attach);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_setup_dma_ops);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_alloc_insert_iova);

View file

@ -5047,6 +5047,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
ufshcd_setup_links(hba, sdev);
trace_android_vh_ufs_update_sdev(sdev);
return 0;
}

View file

@ -49,6 +49,11 @@ DECLARE_HOOK(android_vh_ufs_check_int_errors,
TP_PROTO(struct ufs_hba *hba, bool queue_eh_work),
TP_ARGS(hba, queue_eh_work));
struct scsi_device;
DECLARE_HOOK(android_vh_ufs_update_sdev,
TP_PROTO(struct scsi_device *sdev),
TP_ARGS(sdev));
#endif /* _TRACE_HOOK_UFSHCD_H */
/* This part must be outside protection */
#include <trace/define_trace.h>