hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM mmc_core
 
#define TRACE_INCLUDE_PATH trace/hooks
 
#if !defined(_TRACE_HOOK_MMC_CORE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_MMC_CORE_H
 
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>
 
#if defined(__GENKSYMS__) || !IS_ENABLED(CONFIG_MMC_SDHCI)
struct sdhci_host;
#else
/* struct sdhci_host */
#include <../drivers/mmc/host/sdhci.h>
#endif
 
#ifdef __GENKSYMS__
struct mmc_card;
struct mmc_host;
#else
/* struct mmc_card */
#include <linux/mmc/card.h>
/* struct mmc_host */
#include <linux/mmc/host.h>
#endif /* __GENKSYMS__ */
 
DECLARE_HOOK(android_vh_mmc_blk_reset,
        TP_PROTO(struct mmc_host *host, int err, bool *allow),
        TP_ARGS(host, err, allow));
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));
 
/* macro versions of hooks are no longer required */
 
#endif /* _TRACE_HOOK_MMC_CORE_H */
/* This part must be outside protection */
#include <trace/define_trace.h>