diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-08-18 09:43:09 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 09:49:10 -0400 |
commit | 2e261af84cdb6a6008a9c361443e35ea646ec683 (patch) | |
tree | a17d7de8aa4d57de11117ba194e7b1ac22b59c56 /drivers/s390/scsi/zfcp_ext.h | |
parent | dcd20e2316cdc333dfdee09649dbe3642eb30e75 (diff) |
[SCSI] zfcp: Only collect FSF/HBA debug data for matching trace levels
The default trace level is to only trace failed FSF commands. Thus it
is not necessary to collect trace data for most FSF commands, since
it will be thrown away later. Restructure the FSF/HBA trace
infrastructure to first check the trace level in a inline function and
only do the expensive data collection for matching trace levels.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ext.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_ext.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h index 28e76f5be1af..eeed322f32d0 100644 --- a/drivers/s390/scsi/zfcp_ext.h +++ b/drivers/s390/scsi/zfcp_ext.h | |||
@@ -45,9 +45,12 @@ extern void zfcp_rec_dbf_event_trigger(char *, void *, u8, u8, void *, | |||
45 | struct zfcp_adapter *, | 45 | struct zfcp_adapter *, |
46 | struct zfcp_port *, struct zfcp_unit *); | 46 | struct zfcp_port *, struct zfcp_unit *); |
47 | extern void zfcp_rec_dbf_event_action(char *, struct zfcp_erp_action *); | 47 | extern void zfcp_rec_dbf_event_action(char *, struct zfcp_erp_action *); |
48 | extern void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *); | 48 | extern void _zfcp_hba_dbf_event_fsf_response(const char *, int level, |
49 | extern void zfcp_hba_dbf_event_fsf_unsol(const char *, struct zfcp_adapter *, | 49 | struct zfcp_fsf_req *, |
50 | struct fsf_status_read_buffer *); | 50 | struct zfcp_dbf *dbf); |
51 | extern void _zfcp_hba_dbf_event_fsf_unsol(const char *, int level, | ||
52 | struct zfcp_adapter *, | ||
53 | struct fsf_status_read_buffer *); | ||
51 | extern void zfcp_hba_dbf_event_qdio(struct zfcp_adapter *, unsigned int, int, | 54 | extern void zfcp_hba_dbf_event_qdio(struct zfcp_adapter *, unsigned int, int, |
52 | int); | 55 | int); |
53 | extern void zfcp_hba_dbf_event_berr(struct zfcp_adapter *, | 56 | extern void zfcp_hba_dbf_event_berr(struct zfcp_adapter *, |