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

Commit

Permalink
ANDROID: vendor_hooks: Add hooks for ufs scheduler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
duwenchao authored and Treehugger Robot committed Feb 7, 2024
1 parent 90494a3 commit 4323574
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/android/vendor_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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_vh_iommu_iovad_alloc_iova);
Expand Down
2 changes: 2 additions & 0 deletions drivers/ufs/core/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5191,6 +5191,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)

ufshcd_setup_links(hba, sdev);

trace_android_vh_ufs_update_sdev(sdev);

return 0;
}

Expand Down
5 changes: 5 additions & 0 deletions include/trace/hooks/ufshcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 4323574

Please sign in to comment.