Need this vendor hook to support patial init functionality. This hook needs to be restricted as the additional vendor handling need to perform operations (such as wait_for_completion) in non-atomic context. One of the main functionality of Partial init feature is to reduce latency during resume. Bug: 231654364 Link: https://lore.kernel.org/lkml/ea318551ec0b43429ce47bfac9ebf285@quicinc.com/#r Change-Id: Ia1cb0b7173db3318d2d6686f4bd4719f3cfefd8b Signed-off-by: kamasali <quic_kamasali@quicinc.com>
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM mmc
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
#if !defined(_TRACE_HOOK_MMC_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_MMC_H
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
struct blk_mq_queue_data;
|
|
struct mmc_host;
|
|
|
|
/*
|
|
* Following tracepoints are not exported in tracefs and provide a
|
|
* mechanism for vendor modules to hook and extend functionality
|
|
*/
|
|
DECLARE_HOOK(android_vh_mmc_check_status,
|
|
TP_PROTO(const struct blk_mq_queue_data *bd, int *ret),
|
|
TP_ARGS(bd, ret));
|
|
|
|
DECLARE_HOOK(android_vh_mmc_sdio_pm_flag_set,
|
|
TP_PROTO(struct mmc_host *host),
|
|
TP_ARGS(host));
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_mmc_cache_card_properties,
|
|
TP_PROTO(struct mmc_host *host),
|
|
TP_ARGS(host), 1);
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_partial_init,
|
|
TP_PROTO(struct mmc_host *host, bool *partial_init),
|
|
TP_ARGS(host, partial_init), 1);
|
|
|
|
#endif /* _TRACE_HOOK_MMC_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|