Rtwo/kernel/motorola/sm8550/include/trace/events/dcvsh.h

64 lines
1.2 KiB
C
Raw Normal View History

2025-09-30 20:22:48 -04:00
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM dcvsh
#if !defined(_TRACE_DCVSH_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_DCVSH_H
#include <linux/tracepoint.h>
TRACE_EVENT(dcvsh_freq,
TP_PROTO(unsigned long cpu, unsigned long req_freq,
unsigned long throttled_freq),
TP_ARGS(cpu, req_freq, throttled_freq),
TP_STRUCT__entry(
__field(unsigned long, cpu)
__field(unsigned long, req_freq)
__field(unsigned long, throttled_freq)
),
TP_fast_assign(
__entry->cpu = cpu;
__entry->req_freq = req_freq;
__entry->throttled_freq = throttled_freq;
),
TP_printk("cpu:%lu requested_freq:%lu throttled_freq:%lu",
__entry->cpu,
__entry->req_freq,
__entry->throttled_freq)
);
TRACE_EVENT(dcvsh_throttle,
TP_PROTO(unsigned long cpu, bool state),
TP_ARGS(cpu, state),
TP_STRUCT__entry(
__field(unsigned long, cpu)
__field(bool, state)
),
TP_fast_assign(
__entry->cpu = cpu;
__entry->state = state;
),
TP_printk("cpu:%lu throttle_%s",
__entry->cpu,
__entry->state ? "begin" : "end")
);
#endif /* _TRACE_DCVSH_H */
/* This part must be outside protection */
#include <trace/define_trace.h>