[Intel-wired-lan] [PATCH iwl-next v2] i40e: add trace events related to SFP module IOCTLs
Loktionov, Aleksandr
aleksandr.loktionov at intel.com
Thu Dec 21 16:27:57 UTC 2023
> -----Original Message-----
> From: Simon Horman <horms at kernel.org>
> Sent: Thursday, December 21, 2023 4:35 PM
> To: Loktionov, Aleksandr <aleksandr.loktionov at intel.com>
> Cc: intel-wired-lan at lists.osuosl.org; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; netdev at vger.kernel.org; Kitszel,
> Przemyslaw <przemyslaw.kitszel at intel.com>
> Subject: Re: [PATCH iwl-next v2] i40e: add trace events related to
> SFP module IOCTLs
>
> On Wed, Dec 20, 2023 at 06:38:37PM +0100, Aleksandr Loktionov
> wrote:
> > Add trace events related to SFP module IOCTLs for
> troubleshooting.
> >
> > Example:
> > echo "i40e_*" >/sys/kernel/tracing/set_ftrace_filter
> > echo "i40e_ioctl*"
> >/sys/kernel/tracing/events/i40e/filter
> > echo 1 >/sys/kernel/tracing/tracing_on
> > echo 1 >/sys/kernel/tracing/events/i40e/enable
> > ...
> > cat /sys/kernel/tracing/trace
> >
> > Riewed-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>
> > Signed-off-by: Aleksandr Loktionov
> <aleksandr.loktionov at intel.com>
> > ---
> > v1->v2 applied to proper git branch
> > ---
> > drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 5 +++++
> > drivers/net/ethernet/intel/i40e/i40e_trace.h | 18
> ++++++++++++++++++
> > 2 files changed, 23 insertions(+)
> >
> > diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
> > b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
> > index c841779..bdf2b6b 100644
> > --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
> > +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
> > @@ -1074,6 +1074,7 @@ static int i40e_get_link_ksettings(struct
> net_device *netdev,
> > ethtool_link_ksettings_zero_link_mode(ks, supported);
> > ethtool_link_ksettings_zero_link_mode(ks, advertising);
> >
> > + i40e_trace(ioctl_get_link_ksettings, pf, hw_link_info-
> >link_info);
> > if (link_up)
> > i40e_get_settings_link_up(hw, ks, netdev, pf);
> > else
>
> Hi Aleksandr,
>
> I think that i40e_trace.h needs to be included in i40e_ethtool.c as
> part of this patch.
>
This patch is just needs to be applied after ' i40e: add tracepoints for nvmupdate troubleshooting' patch.
> .../i40e_ethtool.c: In function ‘i40e_get_link_ksettings’:
> .../i40e_ethtool.c:1077:9: error: implicit declaration of function
> ‘i40e_trace’ [-Werror=implicit-function-declaration]
> 1077 | i40e_trace(ioctl_get_link_ksettings, pf,
> hw_link_info->link_info);
> | ^~~~~~~~~~
>
> ...
>
> Flagged by gcc-13 W=1 build
>
> ...
>
> --
> pw-bot: changes-requested
More information about the Intel-wired-lan
mailing list