summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreeramya Soratkal <sreeramya.soratkal@oss.qualcomm.com>2026-06-26 14:22:52 +0530
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2026-06-30 14:20:24 -0700
commit6cc84fce7b999b0c6c8aaccdfa8669f0a55e8586 (patch)
tree5381a7df2e6353b4edcfbed39abf1eba4f6cdee3
parent34620d1890cc1fcf87a95219d6781d7f7b9d8cbd (diff)
downloadlinux-stable-6cc84fce7b999b0c6c8aaccdfa8669f0a55e8586.tar.gz
linux-stable-6cc84fce7b999b0c6c8aaccdfa8669f0a55e8586.zip
wifi: ath12k: Add timestamp to dp stats display
In MLO configurations the device_dp_stats debugfs file is read separately for each ath12k device. Without a timestamp it is impossible to know whether two snapshots were taken at the same moment, making counter comparisons across devices unreliable. Prepend a ktime-based millisecond timestamp to the output header so the reader can confirm when the snapshot was taken. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1 Signed-off-by: Sreeramya Soratkal <sreeramya.soratkal@oss.qualcomm.com> Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com> Reviewed-by: Aishwarya R <aishwarya.r@oss.qualcomm.com> Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com> Link: https://patch.msgid.link/20260626085253.3927269-3-sreeramya.soratkal@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath12k/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath12k/debugfs.c b/drivers/net/wireless/ath/ath12k/debugfs.c
index bab9d96d6acc..57c213111259 100644
--- a/drivers/net/wireless/ath/ath12k/debugfs.c
+++ b/drivers/net/wireless/ath/ath12k/debugfs.c
@@ -1082,6 +1082,9 @@ static ssize_t ath12k_debugfs_dump_device_dp_stats(struct file *file,
if (!buf)
return -ENOMEM;
+ len += scnprintf(buf + len, size - len,
+ "DEVICE DP STATS (timestamp: %lldms):\n\n",
+ ktime_to_ms(ktime_get()));
len += scnprintf(buf + len, size - len, "DEVICE RX STATS:\n\n");
len += scnprintf(buf + len, size - len, "err ring pkts: %u\n",
device_stats->err_ring_pkts);