Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / scsi / ufs / ufs-mediatek-trace.h
blob895e82ea6ece551d0a5c5fa5c6ba8cf3ee3452e0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020 MediaTek Inc.
4 */
5 #undef TRACE_SYSTEM
6 #define TRACE_SYSTEM ufs_mtk
8 #if !defined(_TRACE_EVENT_UFS_MEDIATEK_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define _TRACE_EVENT_UFS_MEDIATEK_H
11 #include <linux/tracepoint.h>
13 TRACE_EVENT(ufs_mtk_event,
14 TP_PROTO(unsigned int type, unsigned int data),
15 TP_ARGS(type, data),
17 TP_STRUCT__entry(
18 __field(unsigned int, type)
19 __field(unsigned int, data)
22 TP_fast_assign(
23 __entry->type = type;
24 __entry->data = data;
27 TP_printk("ufs:event=%u data=%u",
28 __entry->type, __entry->data)
30 #endif
32 #undef TRACE_INCLUDE_PATH
33 #undef TRACE_INCLUDE_FILE
34 #define TRACE_INCLUDE_PATH ../../drivers/scsi/ufs/
35 #define TRACE_INCLUDE_FILE ufs-mediatek-trace
36 #include <trace/define_trace.h>