mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
iscsi-scst, isert-scst: One trace flags variable per kernel module
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
|
||||
/* Protected by target_mgmt_mutex */
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/scatterlist.h>
|
||||
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
#include <linux/crc32c.h>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#else
|
||||
#include "iscsi_scst.h"
|
||||
#endif
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
|
||||
static struct sock *nl;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
|
||||
|
||||
@@ -55,13 +55,6 @@ extern unsigned long iscsi_get_flow_ctrl_or_mgmt_dbg_log_flag(
|
||||
#define iscsi_get_flow_ctrl_or_mgmt_dbg_log_flag(x) 0
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
||||
extern unsigned long iscsi_trace_flag;
|
||||
#ifndef trace_flag
|
||||
#define trace_flag iscsi_trace_flag
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define TRACE_CONN_CLOSE(args...) TRACE_DBG_FLAG(TRACE_DEBUG|TRACE_CONN_OC, args)
|
||||
#define TRACE_CONN_CLOSE_DBG(args...) TRACE(TRACE_CONN_OC_DBG, args)
|
||||
#define TRACE_NET_PAGE(args...) TRACE_DBG_FLAG(TRACE_NET_PG, args)
|
||||
|
||||
28
iscsi-scst/kernel/iscsi_trace_flag.h
Normal file
28
iscsi-scst/kernel/iscsi_trace_flag.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (C) 2007 - 2014 Vladislav Bolkhovitin
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation, version 2
|
||||
* of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef ISCSI_TRACE_FLAG_H
|
||||
#define ISCSI_TRACE_FLAG_H
|
||||
|
||||
/*
|
||||
* Only include this header file from iscsi-scst source files and not from
|
||||
* isert-scst source files.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
||||
extern unsigned long iscsi_trace_flag;
|
||||
#define trace_flag iscsi_trace_flag
|
||||
#endif
|
||||
|
||||
#endif /* ISCSI_TRACE_FLAG_H */
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
#include <linux/spinlock.h>
|
||||
#include "iscsi_trace_flag.h"
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/iscsit_transport.h>
|
||||
#else
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include "isert_dbg.h"
|
||||
#include "iser.h"
|
||||
|
||||
static int isert_buf_alloc_pg(struct ib_device *ib_dev,
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include "isert_dbg.h"
|
||||
#include "iser.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include "isert_dbg.h"
|
||||
#include "iser.h"
|
||||
|
||||
static struct isert_global isert_glob;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include "isert_dbg.h"
|
||||
#include "iser.h"
|
||||
#include "../iscsi.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <linux/in.h>
|
||||
#include <linux/in6.h>
|
||||
|
||||
#include "isert_dbg.h"
|
||||
#include "iser.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
|
||||
@@ -44,13 +44,12 @@
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "isert.h"
|
||||
#include "isert_dbg.h"
|
||||
#include "isert.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
||||
unsigned long isert_trace_flag = ISERT_DEFAULT_LOG_FLAGS;
|
||||
unsigned long iscsi_trace_flag = ISERT_DEFAULT_LOG_FLAGS;
|
||||
#endif
|
||||
|
||||
static unsigned int isert_nr_devs = ISERT_NR_DEVS;
|
||||
|
||||
@@ -41,9 +41,6 @@
|
||||
|
||||
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
|
||||
extern unsigned long isert_trace_flag;
|
||||
#ifdef trace_flag
|
||||
#undef trace_flag
|
||||
#endif
|
||||
#define trace_flag isert_trace_flag
|
||||
#endif
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
#include <linux/poll.h>
|
||||
#include <linux/freezer.h>
|
||||
#include <linux/file.h>
|
||||
#include "isert_dbg.h"
|
||||
#include "../iscsi.h"
|
||||
#include "isert.h"
|
||||
#include "isert_dbg.h"
|
||||
#include "iser_datamover.h"
|
||||
|
||||
static unsigned int n_devs;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#else
|
||||
#include "iscsit_transport.h"
|
||||
#endif
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
|
||||
|
||||
@@ -14,12 +14,14 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "iscsi.h"
|
||||
|
||||
#include <linux/version.h>
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
#include <linux/export.h>
|
||||
#endif
|
||||
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
|
||||
/* target_mutex supposed to be locked */
|
||||
struct iscsi_session *session_lookup(struct iscsi_target *target, u64 sid)
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#include "iscsi_trace_flag.h"
|
||||
#include "iscsi.h"
|
||||
#include "digest.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user