/* SPDX-License-Identifier: GPL-2.0-only */


#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 


#include <trace/define_trace.h>
