OSDN Git Service

e1000e: Add e1000e trace module
authorSasha Neftin <sasha.neftin@intel.com>
Wed, 21 Sep 2022 07:59:37 +0000 (10:59 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 2 Nov 2022 18:08:38 +0000 (11:08 -0700)
commit7bab8828e1ec33e579a664c4262053e16e9cc936
treef7fcae29a94abdfceeeca32e39a145e1263f5cb3
parent0c9183ce61bc5e546fc06d1f3237120778a81192
e1000e: Add e1000e trace module

Add tracepoints to the driver via a new file e1000e_trace.h and some new
trace calls added in interesting places in the driver. Add some tracing
for s0ix flows to help in a debug of shared resources with the CSME
firmware. The idea here is that tracepoints have such low performance cost
when disabled that we can leave these in the upstream driver.

Performance not affected, and this can be very useful for debugging and
adding new trace events to paths in the future.

Usage:
echo "e1000e_trace:*" > /sys/kernel/debug/tracing/set_event
echo 1 > /sys/kernel/debug/tracing/events/e1000e_trace/enable

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/Makefile
drivers/net/ethernet/intel/e1000e/e1000e_trace.h [new file with mode: 0644]
drivers/net/ethernet/intel/e1000e/netdev.c