net: qrtr: use new update_marker api

Boot KPI driver has a limitation to print a maximum of 73 KPI node
entries due to sysfs implementation limitation. To fix this issue
replace place_marker calls with update_marker in the required drivers.
Unlike place_maker API update_marker API will first remove the marker
and add it again. So, the marker comes at end of the table when we
cat /sys/kernel/bootkpi/kpi_values.

Change-Id: I3137e6909c17a3e8f3237c0bc4df62ee628d8e7e
Signed-off-by: Khaja Hussain Shaik Khaji <quic_kshaikkh@quicinc.com>
This commit is contained in:
Khaja Hussain Shaik Khaji 2023-09-12 18:20:58 +05:30
parent e3e31ae3a6
commit 6139a3e1b0

View File

@ -268,7 +268,7 @@ static void qrtr_log_tx_msg(struct qrtr_node *node, struct qrtr_hdr_v1 *hdr,
type, hdr->src_node_id);
if (le32_to_cpu(hdr->dst_node_id) == 0 ||
le32_to_cpu(hdr->dst_node_id) == 3) {
place_marker("M - Modem QMI Readiness TX");
update_marker("M - Modem QMI Readiness TX");
pr_err("qrtr: Modem QMI Readiness TX cmd:0x%x node[0x%x]\n",
type, hdr->src_node_id);
}
@ -340,7 +340,7 @@ static void qrtr_log_rx_msg(struct qrtr_node *node, struct sk_buff *skb)
"RX CTRL: cmd:0x%x node[0x%x]\n",
cb->type, cb->src_node);
if (cb->src_node == 0 || cb->src_node == 3) {
place_marker("M - Modem QMI Readiness RX");
update_marker("M - Modem QMI Readiness RX");
pr_err("qrtr: Modem QMI Readiness RX cmd:0x%x node[0x%x]\n",
cb->type, cb->src_node);
}