net: stmmac: Add place marker

Add place marker for Link Up, driver probe start to probe end,
first packet received/send to measure the KPI value.

Change-Id: I3a644a0d3f7df1133b2fc79f28103fe80baea369
Signed-off-by: Suraj Jaiswal <quic_jsuraj@quicinc.com>
This commit is contained in:
Suraj Jaiswal 2024-09-16 17:18:48 +05:30
parent 03411905c8
commit 682a671f05
3 changed files with 25 additions and 4 deletions

View file

@ -338,8 +338,11 @@ static int qcom_ethqos_add_ipaddr(struct ip_params *ip_info,
} else {
ETHQOSINFO("Assigned IPv4 address: %s\r\n",
ip_info->ipv4_addr_str);
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Etherent Assigned IPv4 address");
#else
ETHQOSINFO("M - Etherent Assigned IPv4 address\n");
#endif
}
return res;
}
@ -385,8 +388,11 @@ static int qcom_ethqos_add_ipv6addr(struct ip_params *ip_info,
} else {
ETHQOSDBG("Assigned IPv6 address: %s\r\n",
ip_info->ipv6_addr_str);
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Ethernet Assigned IPv6 address");
#else
ETHQOSINFO("M - Ethernet Assigned IPv6 address\n");
#endif
}
return ret;
}
@ -2217,8 +2223,11 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
ETHQOSERR("Error creating logging context for emac\n");
else
ETHQOSDBG("IPC logging has been enabled for emac\n");
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Ethernet probe start");
#else
ETHQOSINFO("M - Ethernet probe start\n");
#endif
#ifdef MODULE
if (eipv4)
@ -2412,8 +2421,11 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
ethqos_set_early_eth_param(priv, ethqos);
}
atomic_set(&priv->plat->phy_clks_suspended, 0);
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Ethernet probe end");
#else
ETHQOSINFO("M - Ethernet probe end\n");
#endif
return ret;
err_clk:

View file

@ -23,6 +23,7 @@
#include <linux/reset.h>
#include <net/page_pool.h>
#include <uapi/linux/bpf.h>
#include <linux/bootmarker_kernel.h>
struct stmmac_resources {
void __iomem *addr;

View file

@ -1229,7 +1229,11 @@ static void stmmac_mac_link_up(struct phylink_config *config,
stmmac_fpe_link_state_handle(priv, true);
if (!priv->boot_kpi) {
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Ethernet is Ready.Link is UP");
#else
pr_info("M - Ethernet is Ready.Link is UP\n");
#endif
priv->boot_kpi = true;
}
}
@ -2854,7 +2858,11 @@ static int stmmac_tx_clean(struct stmmac_priv *priv, int budget, u32 queue)
priv->xstats.txq_stats[queue].tx_pkt_n++;
if (priv->dev->stats.tx_packets == 1)
#if (IS_ENABLED(CONFIG_BOOTMARKER_PROXY))
bootmarker_place_marker("M - Ethernet first pkt xmit");
#else
pr_info("M - Ethernet first packet transmitted\n");
#endif
}
if (skb)
stmmac_get_tx_hwtstamp(priv, p, skb);