Patch from Bart Van Assche <bart.vanassche@gmail.com> with improvements:

Remove of leftovers of TRACE_ENTRYEXIT from the mainline patch generation.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1284 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-10-27 13:05:48 +00:00
parent d3d2a4f1b1
commit b38a46b1c8
3 changed files with 14 additions and 0 deletions
+6
View File
@@ -85,7 +85,9 @@
#define TRACE_FUNCTION 0x00000002
#define TRACE_LINE 0x00000004
#define TRACE_PID 0x00000008
#ifndef GENERATING_UPSTREAM_PATCH
#define TRACE_ENTRYEXIT 0x00000010
#endif
#define TRACE_BUFF 0x00000020
#define TRACE_MEMORY 0x00000040
#define TRACE_SG_OP 0x00000080
@@ -249,6 +251,7 @@ do { \
PRINT(KERN_CONT, format, args); \
} while (0)
#ifndef GENERATING_UPSTREAM_PATCH
#define TRACE_ENTRY() \
do { \
if (trace_flag & TRACE_ENTRYEXIT) { \
@@ -302,6 +305,7 @@ do { \
} \
} \
} while (0)
#endif
#else /* CONFIG_SCST_DEBUG */
@@ -313,10 +317,12 @@ do { \
#define TRACE_MGMT_DBG_SPECIAL(format, args...) do {} while (0)
#define TRACE_BUFFER(message, buff, len) do {} while (0)
#define TRACE_BUFF_FLAG(flag, message, buff, len) do {} while (0)
#ifndef GENERATING_UPSTREAM_PATCH
#define TRACE_ENTRY() do {} while (0)
#define TRACE_EXIT() do {} while (0)
#define TRACE_EXIT_RES(res) do {} while (0)
#define TRACE_EXIT_HRES(res) do {} while (0)
#endif
#ifdef LOG_PREFIX
+2
View File
@@ -99,7 +99,9 @@ static struct scst_trace_log scst_proc_trace_tbl[] =
{ TRACE_SG_OP, "sg" },
{ TRACE_MEMORY, "mem" },
{ TRACE_BUFF, "buff" },
#ifndef GENERATING_UPSTREAM_PATCH
{ TRACE_ENTRYEXIT, "entryexit" },
#endif
{ TRACE_PID, "pid" },
{ TRACE_LINE, "line" },
{ TRACE_FUNCTION, "function" },
+6
View File
@@ -70,7 +70,9 @@ static struct scst_trace_log scst_trace_tbl[] =
{ TRACE_SG_OP, "sg" },
{ TRACE_MEMORY, "mem" },
{ TRACE_BUFF, "buff" },
#ifndef GENERATING_UPSTREAM_PATCH
{ TRACE_ENTRYEXIT, "entryexit" },
#endif
{ TRACE_PID, "pid" },
{ TRACE_LINE, "line" },
{ TRACE_FUNCTION, "function" },
@@ -1212,7 +1214,11 @@ static ssize_t scst_trace_level_show(const struct scst_trace_log *local_tbl,
" echo \"value DEC|0xHEX|0OCT\" >trace_level\n"
" echo \"add|del TOKEN\" >trace_level\n"
"\nwhere TOKEN is one of [debug, function, line, pid,\n"
#ifndef GENERATING_UPSTREAM_PATCH
" entryexit, buff, mem, sg, out_of_mem,\n"
#else
" buff, mem, sg, out_of_mem,\n"
#endif
" special, scsi, mgmt, minor,\n"
" mgmt_minor, mgmt_dbg, scsi_serializing,\n"
" retry, recv_bot, send_bot, recv_top,\n"