52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
*
|
|
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM clk_qcom
|
|
|
|
#if !defined(_TRACE_CLOCK_QCOM_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_CLOCK_QCOM
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
DECLARE_EVENT_CLASS(clk_measure_support,
|
|
|
|
TP_PROTO(const char *name, unsigned long rate),
|
|
|
|
TP_ARGS(name, rate),
|
|
|
|
TP_STRUCT__entry(
|
|
__string(name, name)
|
|
__field(unsigned long, rate)
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__assign_str(name, name);
|
|
__entry->rate = rate;
|
|
),
|
|
|
|
TP_printk("%s rate: %lu",
|
|
__get_str(name), (unsigned long)__entry->rate)
|
|
);
|
|
|
|
DEFINE_EVENT(clk_measure_support, clk_measure,
|
|
|
|
TP_PROTO(const char *name, unsigned long rate),
|
|
|
|
TP_ARGS(name, rate)
|
|
);
|
|
|
|
#endif /* _TRACE_CLOCK_QCOM */
|
|
|
|
/* This part must be outside protection */
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH ../../drivers/clk/qcom
|
|
|
|
#undef TRACE_INCLUDE_FILE
|
|
#define TRACE_INCLUDE_FILE trace
|
|
|
|
#include <trace/define_trace.h>
|