> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Paul > M Stillwell Jr > Sent: Wednesday, November 29, 2023 4:57 AM > To: [email protected] > Cc: Stillwell Jr, Paul M <[email protected]> > Subject: [Intel-wired-lan] [PATCH net-next v18 3/5] ice: enable FW logging > > Once users have configured the FW logging then allow them to enable it > by writing to the 'fwlog/enable' file. The file accepts a boolean value > (0 or 1) where 1 means enable FW logging and 0 means disable FW logging. > > # echo <value> > /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/enable > > Where <value> is 0 or 1. > > The user can read the 'fwlog/enable' file to see whether logging is > enabled or not. Reading the actual data is a separate patch. To see the > current value then: > > # cat /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/enable > > Signed-off-by: Paul M Stillwell Jr <[email protected]> > --- > v17->v18: none > v16->v17: commit message changes only > v15->v16: none > v14->v15: none > v13->v14: fixed an issue where reading the file produced an 8 instead of > a 1 > v12->v13: created a new patch for the enable code > --- > .../net/ethernet/intel/ice/ice_adminq_cmd.h | 3 + > drivers/net/ethernet/intel/ice/ice_debugfs.c | 117 ++++++++++++++++++ > drivers/net/ethernet/intel/ice/ice_fwlog.c | 67 ++++++++++ > drivers/net/ethernet/intel/ice/ice_fwlog.h | 2 + > 4 files changed, 189 insertions(+) >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
