-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: qcom: icc-bwmon: Add tracepoints in bwmon_intr_thread
Add tracepoint for tracing the measured traffic in kbps, up_kbps and down_kbps in bwmon. This information is valuable for understanding what bwmon hw measures at the system cache level and at the DDR level which is helpful in debugging bwmon behavior. Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com> Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com> Link: https://lore.kernel.org/r/20240708101734.1999795-1-quic_kshivnan@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
- Loading branch information
Shivnandan Kumar
authored and
Bjorn Andersson
committed
Aug 1, 2024
1 parent
99a7b37
commit dc8c4a8
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |