Merge "net: stmmac: Add place marker"
This commit is contained in:
commit
ff862e8611
3 changed files with 25 additions and 4 deletions
|
|
@ -375,8 +375,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;
|
||||
}
|
||||
|
|
@ -422,8 +425,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;
|
||||
}
|
||||
|
|
@ -2266,8 +2272,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 (enet)
|
||||
|
|
@ -2468,8 +2477,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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue