Trace

For LAN device drivers, trace points enable error monitoring as well as tracking packets as they move through the driver.

The drivers issue trace points for some or all of the following conditions:

  • Beginning and ending of main functions in the main path
  • Error conditions
  • Beginning and ending of each function that is tracking buffers outside of the main path
  • Debugging purposes (These trace points are only enabled when the driver is compiled with -DDEBUG turned on, and therefore the driver can contain as many of these trace points as necessary.)

The existing Ethernet device drivers each have either three or four trace points. The Trace Hook IDs the PCI Ethernet Adapter Device Driver (22100020) is defined in the sys/cdli_entuser.h file. Other drivers have defined local cdli_entuser.driver.h files with the Trace Hook definitions. For more information, see Debug and Performance Tracing.

Following is a list of trace hooks (and location of definition file) for the existing Ethernet device drivers.