]> git.baikalelectronics.ru Git - kernel.git/commit
fnic: fnic Control Path Trace Utility
authorHiral Shah <hishah@cisco.com>
Fri, 18 Apr 2014 19:28:19 +0000 (12:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 11:33:00 +0000 (13:33 +0200)
commitc8f93574e92b36c7c9a5fbe626f7d1c4a6b6f301
tree8cc508236684996a2d036c84c6372b407dd7cac1
parenta9a96c3cf7eb2c4bc28a00eb8f2c9bb0faf5b27b
fnic: fnic Control Path Trace Utility

Fnic Ctlr Path Trace utility is a tracing functionality built directly into fnic
driver to trace the control path frames like discovery, FLOGI request/reply,
PLOGI request/reply, link event etc.  It will be one trace file for all fnics.
It will help us to debug and resolve the discovery and initialization related
issues in more convenient way. This trace information includes time stamp,
Host Number, Frame type, Frame Length and Frame. By default,64 pages are
allocated but we can change the number of allocated pages by module parameter
fnic_fc_trace_max_page. Each entry is of 256 byte and available entries are
depends on allocated number of pages. We can turn on or off the fnic control
path trace functionality by module paramter fc_trace_enable and/or reset the
trace contain by module paramter fc_trace_clear.

Signed-off-by: Hiral Shah <hishah@cisco.com>
Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic_debugfs.c
drivers/scsi/fnic/fnic_fcs.c
drivers/scsi/fnic/fnic_main.c
drivers/scsi/fnic/fnic_trace.c
drivers/scsi/fnic/fnic_trace.h