Cleanup: Remove toplevel directory from include search path
[lttng-modules.git] / include / instrumentation / events / lttng-module / regulator.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM regulator
4
5 #if !defined(LTTNG_TRACE_REGULATOR_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_REGULATOR_H
7
8 #include <lttng/tracepoint-event.h>
9 #include <linux/ktime.h>
10
11 /*
12 * Events which just log themselves and the regulator name for enable/disable
13 * type tracking.
14 */
15 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_basic,
16
17 TP_PROTO(const char *name),
18
19 TP_ARGS(name),
20
21 TP_FIELDS(
22 ctf_string(name, name)
23 )
24 )
25
26 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic, regulator_enable,
27
28 TP_PROTO(const char *name),
29
30 TP_ARGS(name)
31
32 )
33
34 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic, regulator_enable_delay,
35
36 TP_PROTO(const char *name),
37
38 TP_ARGS(name)
39
40 )
41
42 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic, regulator_enable_complete,
43
44 TP_PROTO(const char *name),
45
46 TP_ARGS(name)
47
48 )
49
50 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic, regulator_disable,
51
52 TP_PROTO(const char *name),
53
54 TP_ARGS(name)
55
56 )
57
58 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic, regulator_disable_complete,
59
60 TP_PROTO(const char *name),
61
62 TP_ARGS(name)
63
64 )
65
66 /*
67 * Events that take a range of numerical values, mostly for voltages
68 * and so on.
69 */
70 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_range,
71
72 TP_PROTO(const char *name, int min, int max),
73
74 TP_ARGS(name, min, max),
75
76 TP_FIELDS(
77 ctf_string(name, name)
78 ctf_integer(int, min, min)
79 ctf_integer(int, max, max)
80 )
81 )
82
83 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_range, regulator_set_voltage,
84
85 TP_PROTO(const char *name, int min, int max),
86
87 TP_ARGS(name, min, max)
88
89 )
90
91
92 /*
93 * Events that take a single value, mostly for readback and refcounts.
94 */
95 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_value,
96
97 TP_PROTO(const char *name, unsigned int val),
98
99 TP_ARGS(name, val),
100
101 TP_FIELDS(
102 ctf_string(name, name)
103 ctf_integer(unsigned int, val, val)
104 )
105 )
106
107 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_value, regulator_set_voltage_complete,
108
109 TP_PROTO(const char *name, unsigned int value),
110
111 TP_ARGS(name, value)
112
113 )
114
115 #endif /* _TRACE_POWER_H */
116
117 /* This part must be outside protection */
118 #include <lttng/define_trace.h>
This page took 0.031898 seconds and 4 git commands to generate.