]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/fnic/fnic_main.c
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)
commitabb14148c0f850e7201efc3e7aea1762f993606b
tree8cc508236684996a2d036c84c6372b407dd7cac1
parent668186637e013f41bb3b275fa1a3b993b4da2ccb
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