Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/trace/events/ |
Upload File : |
| Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/trace/events/power.h |
#undef TRACE_SYSTEM
#define TRACE_SYSTEM power
#if !defined(_TRACE_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_POWER_H
#include <linux/ktime.h>
#include <linux/pm_qos.h>
#include <linux/tracepoint.h>
DECLARE_EVENT_CLASS(cpu,
TP_PROTO(unsigned int state, unsigned int cpu_id),
TP_ARGS(state, cpu_id),
TP_STRUCT__entry(
__field( u32, state )
__field( u32, cpu_id )
),
TP_fast_assign(
__entry->state = state;
__entry->cpu_id = cpu_id;
),
TP_printk("state=%lu cpu_id=%lu", (unsigned long)__entry->state,
(unsigned long)__entry->cpu_id)
);
DEFINE_EVENT(cpu, cpu_idle,
TP_PROTO(unsigned int state, unsigned int cpu_id),
TP_ARGS(state, cpu_id)
);
TRACE_EVENT(powernv_throttle,
TP_PROTO(int chip_id, const char *reason, int pmax),
TP_ARGS(chip_id, reason, pmax),
TP_STRUCT__entry(
__field(int, chip_id)
__string(reason, reason)
__field(int, pmax)
),
TP_fast_assign(
__entry->chip_id = chip_id;
__assign_str(reason, reason);
__entry->pmax = pmax;
),
TP_printk("Chip %d Pmax %d %s", __entry->chip_id,
__entry->pmax, __get_str(reason))
);
TRACE_EVENT(pstate_sample,
TP_PROTO(u32 core_busy,
u32 scaled_busy,
u32 from,
u32 to,
u64 mperf,
u64 aperf,
u64 tsc,
u32 freq
),
TP_ARGS(core_busy,
scaled_busy,
from,
to,
mperf,
aperf,
tsc,
freq
),
TP_STRUCT__entry(
__field(u32, core_busy)
__field(u32, scaled_busy)
__field(u32, from)
__field(u32, to)
__field(u64, mperf)
__field(u64, aperf)
__field(u64, tsc)
__field(u32, freq)
),
TP_fast_assign(
__entry->core_busy = core_busy;
__entry->scaled_busy = scaled_busy;
__entry->from = from;
__entry->to = to;
__entry->mperf = mperf;
__entry->aperf = aperf;
__entry->tsc = tsc;
__entry->freq = freq;
),
TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu ",
(unsigned long)__entry->core_busy,
(unsigned long)__entry->scaled_busy,
(unsigned long)__entry->from,
(unsigned long)__entry->to,
(unsigned long long)__entry->mperf,
(unsigned long long)__entry->aperf,
(unsigned long long)__entry->tsc,
(unsigned long)__entry->freq
)
);
/* This file can get included multiple times, TRACE_HEADER_MULTI_READ at top */
#ifndef _PWR_EVENT_AVOID_DOUBLE_DEFINING
#define _PWR_EVENT_AVOID_DOUBLE_DEFINING
#define PWR_EVENT_EXIT -1
#endif
DEFINE_EVENT(cpu, cpu_frequency,
TP_PROTO(unsigned int frequency, unsigned int cpu_id),
TP_ARGS(frequency, cpu_id)
);
TRACE_EVENT(machine_suspend,
TP_PROTO(unsigned int state),
TP_ARGS(state),
TP_STRUCT__entry(
__field( u32, state )
),
TP_fast_assign(
__entry->state = state;
),
TP_printk("state=%lu", (unsigned long)__entry->state)
);
DECLARE_EVENT_CLASS(wakeup_source,
TP_PROTO(const char *name, unsigned int state),
TP_ARGS(name, state),
TP_STRUCT__entry(
__string( name, name )
__field( u64, state )
),
TP_fast_assign(
__assign_str(name, name);
__entry->state = state;
),
TP_printk("%s state=0x%lx", __get_str(name),
(unsigned long)__entry->state)
);
DEFINE_EVENT(wakeup_source, wakeup_source_activate,
TP_PROTO(const char *name, unsigned int state),
TP_ARGS(name, state)
);
DEFINE_EVENT(wakeup_source, wakeup_source_deactivate,
TP_PROTO(const char *name, unsigned int state),
TP_ARGS(name, state)
);
/*
* The clock events are used for clock enable/disable and for
* clock rate change
*/
DECLARE_EVENT_CLASS(clock,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id),
TP_STRUCT__entry(
__string( name, name )
__field( u64, state )
__field( u64, cpu_id )
),
TP_fast_assign(
__assign_str(name, name);
__entry->state = state;
__entry->cpu_id = cpu_id;
),
TP_printk("%s state=%lu cpu_id=%lu", __get_str(name),
(unsigned long)__entry->state, (unsigned long)__entry->cpu_id)
);
DEFINE_EVENT(clock, clock_enable,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id)
);
DEFINE_EVENT(clock, clock_disable,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id)
);
DEFINE_EVENT(clock, clock_set_rate,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id)
);
/*
* The power domain events are used for power domains transitions
*/
DECLARE_EVENT_CLASS(power_domain,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id),
TP_STRUCT__entry(
__string( name, name )
__field( u64, state )
__field( u64, cpu_id )
),
TP_fast_assign(
__assign_str(name, name);
__entry->state = state;
__entry->cpu_id = cpu_id;
),
TP_printk("%s state=%lu cpu_id=%lu", __get_str(name),
(unsigned long)__entry->state, (unsigned long)__entry->cpu_id)
);
DEFINE_EVENT(power_domain, power_domain_target,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id)
);
/*
* The pm qos events are used for pm qos update
*/
DECLARE_EVENT_CLASS(pm_qos_request,
TP_PROTO(int pm_qos_class, s32 value),
TP_ARGS(pm_qos_class, value),
TP_STRUCT__entry(
__field( int, pm_qos_class )
__field( s32, value )
),
TP_fast_assign(
__entry->pm_qos_class = pm_qos_class;
__entry->value = value;
),
TP_printk("pm_qos_class=%s value=%d",
__print_symbolic(__entry->pm_qos_class,
{ PM_QOS_CPU_DMA_LATENCY, "CPU_DMA_LATENCY" },
{ PM_QOS_NETWORK_LATENCY, "NETWORK_LATENCY" },
{ PM_QOS_NETWORK_THROUGHPUT, "NETWORK_THROUGHPUT" }),
__entry->value)
);
DEFINE_EVENT(pm_qos_request, pm_qos_add_request,
TP_PROTO(int pm_qos_class, s32 value),
TP_ARGS(pm_qos_class, value)
);
DEFINE_EVENT(pm_qos_request, pm_qos_update_request,
TP_PROTO(int pm_qos_class, s32 value),
TP_ARGS(pm_qos_class, value)
);
DEFINE_EVENT(pm_qos_request, pm_qos_remove_request,
TP_PROTO(int pm_qos_class, s32 value),
TP_ARGS(pm_qos_class, value)
);
TRACE_EVENT(pm_qos_update_request_timeout,
TP_PROTO(int pm_qos_class, s32 value, unsigned long timeout_us),
TP_ARGS(pm_qos_class, value, timeout_us),
TP_STRUCT__entry(
__field( int, pm_qos_class )
__field( s32, value )
__field( unsigned long, timeout_us )
),
TP_fast_assign(
__entry->pm_qos_class = pm_qos_class;
__entry->value = value;
__entry->timeout_us = timeout_us;
),
TP_printk("pm_qos_class=%s value=%d, timeout_us=%ld",
__print_symbolic(__entry->pm_qos_class,
{ PM_QOS_CPU_DMA_LATENCY, "CPU_DMA_LATENCY" },
{ PM_QOS_NETWORK_LATENCY, "NETWORK_LATENCY" },
{ PM_QOS_NETWORK_THROUGHPUT, "NETWORK_THROUGHPUT" }),
__entry->value, __entry->timeout_us)
);
DECLARE_EVENT_CLASS(pm_qos_update,
TP_PROTO(enum pm_qos_req_action action, int prev_value, int curr_value),
TP_ARGS(action, prev_value, curr_value),
TP_STRUCT__entry(
__field( enum pm_qos_req_action, action )
__field( int, prev_value )
__field( int, curr_value )
),
TP_fast_assign(
__entry->action = action;
__entry->prev_value = prev_value;
__entry->curr_value = curr_value;
),
TP_printk("action=%s prev_value=%d curr_value=%d",
__print_symbolic(__entry->action,
{ PM_QOS_ADD_REQ, "ADD_REQ" },
{ PM_QOS_UPDATE_REQ, "UPDATE_REQ" },
{ PM_QOS_REMOVE_REQ, "REMOVE_REQ" }),
__entry->prev_value, __entry->curr_value)
);
DEFINE_EVENT(pm_qos_update, pm_qos_update_target,
TP_PROTO(enum pm_qos_req_action action, int prev_value, int curr_value),
TP_ARGS(action, prev_value, curr_value)
);
DEFINE_EVENT_PRINT(pm_qos_update, pm_qos_update_flags,
TP_PROTO(enum pm_qos_req_action action, int prev_value, int curr_value),
TP_ARGS(action, prev_value, curr_value),
TP_printk("action=%s prev_value=0x%x curr_value=0x%x",
__print_symbolic(__entry->action,
{ PM_QOS_ADD_REQ, "ADD_REQ" },
{ PM_QOS_UPDATE_REQ, "UPDATE_REQ" },
{ PM_QOS_REMOVE_REQ, "REMOVE_REQ" }),
__entry->prev_value, __entry->curr_value)
);
DECLARE_EVENT_CLASS(dev_pm_qos_request,
TP_PROTO(const char *name, enum dev_pm_qos_req_type type,
s32 new_value),
TP_ARGS(name, type, new_value),
TP_STRUCT__entry(
__string( name, name )
__field( enum dev_pm_qos_req_type, type )
__field( s32, new_value )
),
TP_fast_assign(
__assign_str(name, name);
__entry->type = type;
__entry->new_value = new_value;
),
TP_printk("device=%s type=%s new_value=%d",
__get_str(name),
__print_symbolic(__entry->type,
{ DEV_PM_QOS_LATENCY, "DEV_PM_QOS_LATENCY" },
{ DEV_PM_QOS_FLAGS, "DEV_PM_QOS_FLAGS" }),
__entry->new_value)
);
DEFINE_EVENT(dev_pm_qos_request, dev_pm_qos_add_request,
TP_PROTO(const char *name, enum dev_pm_qos_req_type type,
s32 new_value),
TP_ARGS(name, type, new_value)
);
DEFINE_EVENT(dev_pm_qos_request, dev_pm_qos_update_request,
TP_PROTO(const char *name, enum dev_pm_qos_req_type type,
s32 new_value),
TP_ARGS(name, type, new_value)
);
DEFINE_EVENT(dev_pm_qos_request, dev_pm_qos_remove_request,
TP_PROTO(const char *name, enum dev_pm_qos_req_type type,
s32 new_value),
TP_ARGS(name, type, new_value)
);
#endif /* _TRACE_POWER_H */
/* This part must be outside protection */
#include <trace/define_trace.h>
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
September 29 2025 07:01:25 |
0 / 0 |
0755 |
|
| | | | | |
| 9p.h |
5.534 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| asoc.h |
5.136 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| bcache.h |
5.146 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| block.h |
18.104 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| bridge.h |
3.453 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| btrfs.h |
36.518 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| compaction.h |
1.528 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| context_tracking.h |
1.111 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| devlink.h |
1.726 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| dma_fence.h |
2.922 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ext3.h |
18.821 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ext4.h |
60.785 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| f2fs.h |
14.89 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| filelock.h |
2.978 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| filemap.h |
1.331 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| fs_dax.h |
8.33 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gfpflags.h |
1.747 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gpio.h |
1.035 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| host1x.h |
5.751 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| hswadsp.h |
8.329 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| i2c.h |
10.944 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| intel-sst.h |
2.473 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| intel_ish.h |
0.505 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| iommu.h |
2.994 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irq.h |
3.429 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| jbd.h |
4.27 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| jbd2.h |
9.756 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| kmem.h |
6.979 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| kvm.h |
8.565 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| libata.h |
11.072 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| lock.h |
1.658 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| mce.h |
1.814 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| mdio.h |
0.985 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| migrate.h |
1.876 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| mmc.h |
7.2 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| module.h |
2.791 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| napi.h |
0.762 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| net.h |
4.424 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| oom.h |
0.7 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| pagemap.h |
2.134 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| percpu.h |
2.568 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| power.h |
9.382 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| printk.h |
0.562 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qdisc.h |
1.366 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| random.h |
7.197 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| rcu.h |
19.862 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| rdma.h |
3.237 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| regmap.h |
4.44 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| regulator.h |
2.36 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| rpcrdma.h |
31.287 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| rpm.h |
2.3 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| sched.h |
12.957 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| scsi.h |
12.388 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| signal.h |
3.389 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| skb.h |
1.341 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| sock.h |
1.544 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| sunrpc.h |
16.633 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| syscalls.h |
1.484 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| target.h |
7.473 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| task.h |
1.445 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| thp.h |
2.049 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| timer.h |
7.99 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| udp.h |
0.579 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| vmscan.h |
8.795 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| vsock_virtio_transport_common.h |
3.055 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| workqueue.h |
2.666 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| writeback.h |
16.093 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| xdp.h |
0.204 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| xen.h |
15.746 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|