To avoid changing the visibiliy of data types when including hook definition headers remove header file inclusions from the hook definition header files. Instead, the hook definition headers should just have forward declarations that don't require full definition. To provide full definitions of the types for the KMI, the headers that define the types should be included by the source file that instantiates the hooks - normally vendor_hooks.c. Bug: 233047575 Signed-off-by: Todd Kjos <tkjos@google.com> Change-Id: Iaaa1a6f45a356569c04ad2fea0b1514e0454f041
57 lines
1.7 KiB
C
57 lines
1.7 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;
|
|
struct mmc_card;
|
|
struct sdhci_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_HOOK(android_vh_mmc_blk_reset,
|
|
TP_PROTO(struct mmc_host *host, int err),
|
|
TP_ARGS(host, err));
|
|
DECLARE_HOOK(android_vh_mmc_blk_mq_rw_recovery,
|
|
TP_PROTO(struct mmc_card *card),
|
|
TP_ARGS(card));
|
|
DECLARE_HOOK(android_vh_sd_update_bus_speed_mode,
|
|
TP_PROTO(struct mmc_card *card),
|
|
TP_ARGS(card));
|
|
DECLARE_HOOK(android_vh_mmc_attach_sd,
|
|
TP_PROTO(struct mmc_host *host, u32 ocr, int err),
|
|
TP_ARGS(host, ocr, err));
|
|
DECLARE_HOOK(android_vh_sdhci_get_cd,
|
|
TP_PROTO(struct sdhci_host *host, bool *allow),
|
|
TP_ARGS(host, allow));
|
|
DECLARE_HOOK(android_vh_mmc_gpio_cd_irqt,
|
|
TP_PROTO(struct mmc_host *host, bool *allow),
|
|
TP_ARGS(host, allow));
|
|
|
|
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>
|