android_kernel_samsung_sm8650/drivers/cpuidle/governors/trace-cluster-lpm.h
Rashid Zafar c4354bba6e cpuidle: governors: Add snapshot of qcom-lpm governor
Add snapshot of qcom-lpm governor from msm-5.15
'commit <0050a5bbad2c> ("cpuidle: governors: qcom-lpm:
 Ignore IPI trace when suspend in progress")'.

Change-Id: I354b9f34867d42ca0899adc3f593a4a3e33da20d
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-06-07 12:28:24 -07:00

120 lines
2.4 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
*/
#if !defined(_TRACE_CLUSTER_LPM_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_CLUSTER_LPM_H
#undef TRACE_SYSTEM
#define TRACE_SYSTEM cluster_lpm
#include <linux/tracepoint.h>
TRACE_EVENT(cluster_pred_select,
TP_PROTO(int index, u32 sleep_us,
u32 latency, int pred, u32 pred_us),
TP_ARGS(index, sleep_us, latency, pred, pred_us),
TP_STRUCT__entry(
__field(int, index)
__field(u32, sleep_us)
__field(u32, latency)
__field(int, pred)
__field(u32, pred_us)
),
TP_fast_assign(
__entry->index = index;
__entry->sleep_us = sleep_us;
__entry->latency = latency;
__entry->pred = pred;
__entry->pred_us = pred_us;
),
TP_printk("idx:%d sleep_time:%u latency:%u pred:%d pred_us:%u",
__entry->index, __entry->sleep_us,
__entry->latency, __entry->pred, __entry->pred_us)
);
TRACE_EVENT(cluster_pred_hist,
TP_PROTO(int idx, u32 resi, u32 sample, u32 tmr),
TP_ARGS(idx, resi, sample, tmr),
TP_STRUCT__entry(
__field(int, idx)
__field(u32, resi)
__field(u32, sample)
__field(u32, tmr)
),
TP_fast_assign(
__entry->idx = idx;
__entry->resi = resi;
__entry->sample = sample;
__entry->tmr = tmr;
),
TP_printk("idx:%d resi:%u sample:%u tmr:%u",
__entry->idx, __entry->resi,
__entry->sample, __entry->tmr)
);
TRACE_EVENT(cluster_exit,
TP_PROTO(int cpu, u32 idx, u32 suspend_param),
TP_ARGS(cpu, idx, suspend_param),
TP_STRUCT__entry(
__field(int, cpu)
__field(u32, idx)
__field(u32, suspend_param)
),
TP_fast_assign(
__entry->cpu = cpu;
__entry->idx = idx;
__entry->suspend_param = suspend_param;
),
TP_printk("first cpu:%d idx:%u suspend_param:0x%x", __entry->cpu,
__entry->idx, __entry->suspend_param)
);
TRACE_EVENT(cluster_enter,
TP_PROTO(int cpu, u32 idx, u32 suspend_param),
TP_ARGS(cpu, idx, suspend_param),
TP_STRUCT__entry(
__field(int, cpu)
__field(u32, idx)
__field(u32, suspend_param)
),
TP_fast_assign(
__entry->cpu = cpu;
__entry->idx = idx;
__entry->suspend_param = suspend_param;
),
TP_printk("last cpu:%d idx:%u suspend_param:0x%x", __entry->cpu,
__entry->idx, __entry->suspend_param)
);
#endif /* _TRACE_QCOM_LPM_H */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace-cluster-lpm
#include <trace/define_trace.h>