diff --git a/drivers/android/vendor_hooks.c b/drivers/android/vendor_hooks.c index 979dc6a1957d..21496961475e 100644 --- a/drivers/android/vendor_hooks.c +++ b/drivers/android/vendor_hooks.c @@ -505,6 +505,13 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_transaction_received); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_free_oem_binder_struct); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_special_task); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_free_buf); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_perf_huristic_ctrl); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_command_post_change); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_abort_success_ctrl); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_compl_rsp_check_done); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_err_handler); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_err_check_ctrl); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_err_print_ctrl); /* * For type visibility */ diff --git a/include/trace/hooks/ufshcd.h b/include/trace/hooks/ufshcd.h index 906e02740f3f..1dc0ae956a42 100644 --- a/include/trace/hooks/ufshcd.h +++ b/include/trace/hooks/ufshcd.h @@ -75,6 +75,40 @@ DECLARE_HOOK(android_vh_ufs_update_sdev, DECLARE_HOOK(android_vh_ufs_clock_scaling, TP_PROTO(struct ufs_hba *hba, bool *force_out, bool *force_scaling, bool *scale_up), TP_ARGS(hba, force_out, force_scaling, scale_up)); + +DECLARE_HOOK(android_vh_ufs_send_command_post_change, + TP_PROTO(struct ufs_hba *hba, struct ufshcd_lrb *lrbp), + TP_ARGS(hba, lrbp)); + +DECLARE_HOOK(android_vh_ufs_perf_huristic_ctrl, + TP_PROTO(struct ufs_hba *hba, + struct ufshcd_lrb *lrbp, int *err), + TP_ARGS(hba, lrbp, err)); + +DECLARE_HOOK(android_vh_ufs_abort_success_ctrl, + TP_PROTO(struct ufs_hba *hba, + struct ufshcd_lrb *lrbp), + TP_ARGS(hba, lrbp)); + +DECLARE_HOOK(android_vh_ufs_err_handler, + TP_PROTO(struct ufs_hba *hba, + bool *err_handled), + TP_ARGS(hba, err_handled)); + +DECLARE_HOOK(android_vh_ufs_compl_rsp_check_done, + TP_PROTO(struct ufs_hba *hba, + struct ufshcd_lrb *lrbp, bool *done), + TP_ARGS(hba, lrbp, done)); + +DECLARE_HOOK(android_vh_ufs_err_print_ctrl, + TP_PROTO(struct ufs_hba *hba, + bool *skip), + TP_ARGS(hba, skip)); + +DECLARE_HOOK(android_vh_ufs_err_check_ctrl, + TP_PROTO(struct ufs_hba *hba, + bool *err_check), + TP_ARGS(hba, err_check)); #endif /* _TRACE_HOOK_UFSHCD_H */ /* This part must be outside protection */ #include