• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM mmc_core
4 
5 #define TRACE_INCLUDE_PATH trace/hooks
6 
7 #if !defined(_TRACE_HOOK_MMC_CORE_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _TRACE_HOOK_MMC_CORE_H
9 
10 #include <linux/tracepoint.h>
11 #include <trace/hooks/vendor_hooks.h>
12 
13 struct mmc_host;
14 struct mmc_card;
15 struct sdhci_host;
16 
17 DECLARE_HOOK(android_vh_mmc_blk_reset,
18 	     TP_PROTO(struct mmc_host *host, int err, bool *allow),
19 	     TP_ARGS(host, err, allow));
20 DECLARE_HOOK(android_vh_mmc_blk_mq_rw_recovery,
21 	     TP_PROTO(struct mmc_card *card),
22 	     TP_ARGS(card));
23 DECLARE_HOOK(android_vh_sd_update_bus_speed_mode,
24 	     TP_PROTO(struct mmc_card *card),
25 	     TP_ARGS(card));
26 DECLARE_HOOK(android_vh_mmc_attach_sd,
27 	     TP_PROTO(struct mmc_host *host, u32 ocr, int err),
28 	     TP_ARGS(host, ocr, err));
29 DECLARE_HOOK(android_vh_sdhci_get_cd,
30 	     TP_PROTO(struct sdhci_host *host, bool *allow),
31 	     TP_ARGS(host, allow));
32 DECLARE_HOOK(android_vh_mmc_gpio_cd_irqt,
33 	     TP_PROTO(struct mmc_host *host, bool *allow),
34 	     TP_ARGS(host, allow));
35 
36 /* macro versions of hooks are no longer required */
37 
38 #endif /* _TRACE_HOOK_MMC_CORE_H */
39 /* This part must be outside protection */
40 #include <trace/define_trace.h>
41