3 #define TRACE_SYSTEM met_fuse
5 #if !defined(__TRACE_MET_FTRACE_FUSE_H__) || defined(TRACE_HEADER_MULTI_READ)
6 #define __TRACE_MET_FTRACE_FUSE_H__
8 #include <linux/tracepoint.h>
10 #include <linux/met_drv.h>
11 #include <linux/mmc/host.h>
14 * Tracepoint for met_event_fuse
17 TP_PROTO(int t_pid
, char *t_name
, unsigned int op
, unsigned int size
, struct timespec s_time
, struct timespec e_time
),
19 TP_ARGS(t_pid
, t_name
, op
, size
, s_time
, e_time
),
22 __field(int, task_pid
)
23 __field(unsigned int, op_code
)
24 __field(unsigned int, op_size
)
25 __field(long, start_time_s
)
26 __field(long, start_time_ns
)
27 __field(long, end_time_s
)
28 __field(long, end_time_ns
)
29 __array(char, task_name
, TASK_COMM_LEN
)
33 __entry
->task_pid
= t_pid
;
34 __entry
->op_code
= op
;
35 __entry
->op_size
= size
;
36 __entry
->start_time_s
= s_time
.tv_sec
;
37 __entry
->start_time_ns
= s_time
.tv_nsec
;
38 __entry
->end_time_s
= e_time
.tv_sec
;
39 __entry
->end_time_ns
= e_time
.tv_nsec
;
40 memcpy(__entry
->task_name
, t_name
, TASK_COMM_LEN
);
43 TP_printk("%d,%s,%u,%u,%ld,%ld,%ld,%ld",
44 __entry
->task_pid
, __entry
->task_name
,
45 __entry
->op_code
, __entry
->op_size
,
46 __entry
->start_time_s
, __entry
->start_time_ns
,
47 __entry
->end_time_s
, __entry
->end_time_ns
)
49 #endif /* __TRACE_MET_FTRACE_FUSE_H__ */
51 /* This part must be outside protection */
52 #undef TRACE_INCLUDE_PATH
54 #define TRACE_INCLUDE_PATH ../../include/linux
55 #define TRACE_INCLUDE_FILE met_ftrace_fuse
56 #include <trace/define_trace.h>