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:
Bart Van Assche
2015-06-23 15:01:17 +00:00
parent f0e98ee4b2
commit 79c8bf1f7c
20 changed files with 48 additions and 15 deletions

View File

@@ -14,6 +14,7 @@
*/
#include <linux/module.h>
#include "iscsi_trace_flag.h"
#include "iscsi.h"
/* Protected by target_mgmt_mutex */

View File

@@ -22,6 +22,7 @@
#else
#include "iscsit_transport.h"
#endif
#include "iscsi_trace_flag.h"
#include "iscsi.h"
#include "digest.h"

View File

@@ -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>

View File

@@ -22,6 +22,7 @@
#else
#include "iscsi_scst.h"
#endif
#include "iscsi_trace_flag.h"
#include "iscsi.h"
static struct sock *nl;

View File

@@ -28,6 +28,7 @@
#else
#include "iscsit_transport.h"
#endif
#include "iscsi_trace_flag.h"
#include "iscsi.h"
#include "digest.h"

View File

@@ -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)

View 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 */

View File

@@ -1,5 +1,6 @@
#include <linux/spinlock.h>
#include "iscsi_trace_flag.h"
#ifdef INSIDE_KERNEL_TREE
#include <scst/iscsit_transport.h>
#else

View File

@@ -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,

View File

@@ -37,6 +37,7 @@
#include <linux/kernel.h>
#include "isert_dbg.h"
#include "iser.h"
#include "iser_datamover.h"

View File

@@ -37,6 +37,7 @@
#include <linux/kernel.h>
#include "isert_dbg.h"
#include "iser.h"
static struct isert_global isert_glob;

View File

@@ -37,6 +37,7 @@
#include <linux/kernel.h>
#include "isert_dbg.h"
#include "iser.h"
#include "../iscsi.h"
#include "iser_datamover.h"

View File

@@ -39,6 +39,7 @@
#include <linux/in.h>
#include <linux/in6.h>
#include "isert_dbg.h"
#include "iser.h"
#include "iser_datamover.h"

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -25,6 +25,7 @@
#else
#include "iscsit_transport.h"
#endif
#include "iscsi_trace_flag.h"
#include "iscsi.h"
#include "digest.h"

View File

@@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
#include "iscsi_trace_flag.h"
#include "iscsi.h"
#include "digest.h"

View File

@@ -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)
{

View File

@@ -17,6 +17,7 @@
#include <linux/delay.h>
#include <linux/module.h>
#include "iscsi_trace_flag.h"
#include "iscsi.h"
#include "digest.h"