2 #define TRACE_SYSTEM regulator
4 #if !defined(LTTNG_TRACE_REGULATOR_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_REGULATOR_H
7 #include <probes/lttng-tracepoint-event.h>
8 #include <linux/ktime.h>
11 * Events which just log themselves and the regulator name for enable/disable
14 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_basic
,
16 TP_PROTO(const char *name
),
21 ctf_string(name
, name
)
25 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic
, regulator_enable
,
27 TP_PROTO(const char *name
),
33 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic
, regulator_enable_delay
,
35 TP_PROTO(const char *name
),
41 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic
, regulator_enable_complete
,
43 TP_PROTO(const char *name
),
49 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic
, regulator_disable
,
51 TP_PROTO(const char *name
),
57 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_basic
, regulator_disable_complete
,
59 TP_PROTO(const char *name
),
66 * Events that take a range of numerical values, mostly for voltages
69 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_range
,
71 TP_PROTO(const char *name
, int min
, int max
),
73 TP_ARGS(name
, min
, max
),
76 ctf_string(name
, name
)
77 ctf_integer(int, min
, min
)
78 ctf_integer(int, max
, max
)
82 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_range
, regulator_set_voltage
,
84 TP_PROTO(const char *name
, int min
, int max
),
86 TP_ARGS(name
, min
, max
)
92 * Events that take a single value, mostly for readback and refcounts.
94 LTTNG_TRACEPOINT_EVENT_CLASS(regulator_value
,
96 TP_PROTO(const char *name
, unsigned int val
),
101 ctf_string(name
, name
)
102 ctf_integer(unsigned int, val
, val
)
106 LTTNG_TRACEPOINT_EVENT_INSTANCE(regulator_value
, regulator_set_voltage_complete
,
108 TP_PROTO(const char *name
, unsigned int value
),
114 #endif /* _TRACE_POWER_H */
116 /* This part must be outside protection */
117 #include <probes/define_trace.h>