]> git.baikalelectronics.ru Git - kernel.git/commit
ice: add tracepoints
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 8 Jun 2021 23:35:17 +0000 (16:35 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 25 Jun 2021 15:32:18 +0000 (08:32 -0700)
commit8dcdbd376951e5d93e2bb22a124a7a51c560059a
treedce984ef01c516ec427a8b75c88ebeadeb4c6802
parentcaf4f86ab7bf350c21ae04d5f470c43216018d62
ice: add tracepoints

This patch is modeled after one by Scott Peterson for i40e.

Add tracepoints to the driver, via a new file ice_trace.h and some new
trace calls added in interesting places in the driver. Add some tracing
for DIMLIB to help debug interrupt moderation problems.

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

Note eBPF programs can attach to these events, as well as perf
can count them since we're attaching to the events subsystem
in the kernel.

Co-developed-by: Ben Shelton <benjamin.h.shelton@intel.com>
Signed-off-by: Ben Shelton <benjamin.h.shelton@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_trace.h [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_txrx.c