summaryrefslogtreecommitdiffstats
path: root/drivers/soc/qcom/trace_icc-bwmon.h
blob: beb8e6b485a9f8c9f719116b593f7b7ed25bdcdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#undef TRACE_SYSTEM
#define TRACE_SYSTEM icc_bwmon

#if !defined(_TRACE_ICC_BWMON_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_ICC_BWMON_H
#include <linux/tracepoint.h>

TRACE_EVENT(qcom_bwmon_update,
	    TP_PROTO(const char *name,
		     unsigned int meas_kbps, unsigned int up_kbps, unsigned int down_kbps),

	    TP_ARGS(name, meas_kbps, up_kbps, down_kbps),

	    TP_STRUCT__entry(
			     __string(name, name)
			     __field(unsigned int, meas_kbps)
			     __field(unsigned int, up_kbps)
			     __field(unsigned int, down_kbps)
	    ),

	    TP_fast_assign(
			   __assign_str(name);
			   __entry->meas_kbps = meas_kbps;
			   __entry->up_kbps = up_kbps;
			   __entry->down_kbps = down_kbps;
	    ),

	    TP_printk("name=%s meas_kbps=%u up_kbps=%u down_kbps=%u",
		      __get_str(name),
		      __entry->meas_kbps,
		      __entry->up_kbps,
		      __entry->down_kbps)
);

#endif /* _TRACE_ICC_BWMON_H */

#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH ../../drivers/soc/qcom/

#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace_icc-bwmon

#include <trace/define_trace.h>