aboutsummaryrefslogtreecommitdiff
path: root/include/linux/met_ftrace_touch.h
blob: 8994b50d13f085f5830ced347d0d281db72ebece (plain) (blame)
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
#undef TRACE_SYSTEM
#define TRACE_SYSTEM met_touch

#if !defined(__TRACE_MET_FTRACE_TOUCH_H__) || defined(TRACE_HEADER_MULTI_READ)
#define __TRACE_MET_FTRACE_TOUCH_H__

#include <linux/tracepoint.h>
/*
 * Tracepoint for MET_touch
 */
TRACE_EVENT(MET_touch,

    TP_PROTO(char* touch_type, long tsec, long tusec, char* mode, int value),

    TP_ARGS(touch_type, tsec, tusec, mode, value),

    TP_STRUCT__entry(
        __array(char, _touch_type, 16)
        __field(long, _tsec)
        __field(long, _tusec)
        __array(char, _mode, 16)
        __field(int, _value)
    ),

    TP_fast_assign(
        memcpy(__entry->_touch_type, touch_type, 16);
        __entry->_tsec = tsec;
        __entry->_tusec = tusec;
        memcpy(__entry->_mode, mode, 16) ;
        __entry->_value = value;
    ),

    TP_printk("%s,%ld.%06ld,%s,%x",
        __entry->_touch_type,
        __entry->_tsec,
        __entry->_tusec,
        __entry->_mode,
        __entry->_value
    )
);

#endif /* __TRACE_MET_FTRACE_TOUCH_H__ */

/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
#undef linux
#define TRACE_INCLUDE_PATH ../../../include/linux
#define TRACE_INCLUDE_FILE met_ftrace_touch
#include <trace/define_trace.h>