Fix: Use fs_initcall instead of rootfs_initcall
[lttng-modules.git] / instrumentation / events / lttng-module / rpm.h
... / ...
CommitLineData
1
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM rpm
4
5#if !defined(LTTNG_TRACE_RUNTIME_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
6#define LTTNG_TRACE_RUNTIME_POWER_H
7
8#include <probes/lttng-tracepoint-event.h>
9#include <linux/ktime.h>
10
11#ifndef _TRACE_RPM_DEF_
12#define _TRACE_RPM_DEF_
13struct device;
14#endif
15
16/*
17 * The rpm_internal events are used for tracing some important
18 * runtime pm internal functions.
19 */
20LTTNG_TRACEPOINT_EVENT_CLASS(rpm_internal,
21
22 TP_PROTO(struct device *dev, int flags),
23
24 TP_ARGS(dev, flags),
25
26 TP_FIELDS(
27 ctf_string(name, dev_name(dev))
28 ctf_integer(int, flags, flags)
29 ctf_integer(int, usage_count, atomic_read(&dev->power.usage_count))
30 ctf_integer(int, disable_depth, dev->power.disable_depth)
31 ctf_integer(int, runtime_auto, dev->power.runtime_auto)
32 ctf_integer(int, request_pending, dev->power.request_pending)
33 ctf_integer(int, irq_safe, dev->power.irq_safe)
34 ctf_integer(int, child_count, atomic_read(&dev->power.child_count))
35 )
36)
37
38LTTNG_TRACEPOINT_EVENT_INSTANCE(rpm_internal, rpm_suspend,
39
40 TP_PROTO(struct device *dev, int flags),
41
42 TP_ARGS(dev, flags)
43)
44
45LTTNG_TRACEPOINT_EVENT_INSTANCE(rpm_internal, rpm_resume,
46
47 TP_PROTO(struct device *dev, int flags),
48
49 TP_ARGS(dev, flags)
50)
51
52LTTNG_TRACEPOINT_EVENT_INSTANCE(rpm_internal, rpm_idle,
53
54 TP_PROTO(struct device *dev, int flags),
55
56 TP_ARGS(dev, flags)
57)
58
59LTTNG_TRACEPOINT_EVENT(rpm_return_int,
60 TP_PROTO(struct device *dev, unsigned long ip, int ret),
61 TP_ARGS(dev, ip, ret),
62
63 TP_FIELDS(
64 ctf_string(name, dev_name(dev))
65 ctf_integer(unsigned long, ip, ip)
66 ctf_integer(int, ret, ret)
67 )
68)
69
70#endif /* LTTNG_TRACE_RUNTIME_POWER_H */
71
72/* This part must be outside protection */
73#include <probes/define_trace.h>
This page took 0.024247 seconds and 4 git commands to generate.