[Openib-windows] AL sync WPP to debug trace flags

Yossi Leybovich sleybo at mellanox.co.il
Thu Oct 5 06:33:47 PDT 2006


Fab
 
This part of former patch I sent.
This patch sync between the debug and free flags.
it also declare the AL module 
 
pls apply
Yossi 
 
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: al_debug.h
===================================================================
--- al_debug.h (revision 1727)
+++ al_debug.h (working copy)
@@ -33,10 +33,12 @@
 #if !defined(__AL_DEBUG_H__)
 #define __AL_DEBUG_H__
 
-#ifndef __MODULE__
+#ifdef __MODULE__
+#undef __MODULE__
+#endif
 #define __MODULE__ "[AL]"
-#endif
 
+
 #include <complib/cl_debug.h>
 #include <complib/cl_perf.h>
 
@@ -53,13 +55,15 @@
 #define WPP_CONTROL_GUIDS \
 
WPP_DEFINE_CONTROL_GUID(ALCtlGuid1,(B199CE55,F8BF,4147,B119,DACD1E5987A6
),  \
  WPP_DEFINE_BIT( AL_DBG_ERROR) \
+ WPP_DEFINE_BIT( AL_DBG_PNP) \
+ WPP_DEFINE_BIT( AL_DBG_HDL) \
  WPP_DEFINE_BIT( AL_DBG_AL_OBJ) \
- WPP_DEFINE_BIT( AL_DBG_HDL) \
  WPP_DEFINE_BIT( AL_DBG_SMI) \
  WPP_DEFINE_BIT( AL_DBG_SMI_CB) \
+ WPP_DEFINE_BIT( AL_DBG_RES1) \
  WPP_DEFINE_BIT( AL_DBG_MAD_POOL) \
  WPP_DEFINE_BIT( AL_DBG_MAD_SVC) \
- WPP_DEFINE_BIT( AL_DBG_PNP) \
+ WPP_DEFINE_BIT( AL_DBG_RES2) \
  WPP_DEFINE_BIT( AL_DBG_CM) \
  WPP_DEFINE_BIT( AL_DBG_CA) \
  WPP_DEFINE_BIT( AL_DBG_MR) \
@@ -70,7 +74,9 @@
  WPP_DEFINE_BIT( AL_DBG_AV)\
  WPP_DEFINE_BIT( AL_DBG_CQ)\
  WPP_DEFINE_BIT( AL_DBG_QP)\
+ WPP_DEFINE_BIT( AL_DBG_RES3) \
  WPP_DEFINE_BIT( AL_DBG_MW)\
+ WPP_DEFINE_BIT( AL_DBG_RES4) \
  WPP_DEFINE_BIT( AL_DBG_PROXY_CB)\
  WPP_DEFINE_BIT( AL_DBG_UAL)\
  WPP_DEFINE_BIT( AL_DBG_QUERY)\
@@ -84,13 +90,15 @@
 #define WPP_CONTROL_GUIDS \
 
WPP_DEFINE_CONTROL_GUID(ALCtlGuid2,(99DC84E3,B106,431e,88A6,4DD20C9BBDE3
),  \
  WPP_DEFINE_BIT( AL_DBG_ERROR) \
+ WPP_DEFINE_BIT( AL_DBG_PNP) \
+ WPP_DEFINE_BIT( AL_DBG_HDL) \
  WPP_DEFINE_BIT( AL_DBG_AL_OBJ) \
- WPP_DEFINE_BIT( AL_DBG_HDL) \
  WPP_DEFINE_BIT( AL_DBG_SMI) \
  WPP_DEFINE_BIT( AL_DBG_SMI_CB) \
+ WPP_DEFINE_BIT( AL_DBG_RES1) \
  WPP_DEFINE_BIT( AL_DBG_MAD_POOL) \
  WPP_DEFINE_BIT( AL_DBG_MAD_SVC) \
- WPP_DEFINE_BIT( AL_DBG_PNP) \
+ WPP_DEFINE_BIT( AL_DBG_RES2) \
  WPP_DEFINE_BIT( AL_DBG_CM) \
  WPP_DEFINE_BIT( AL_DBG_CA) \
  WPP_DEFINE_BIT( AL_DBG_MR) \
@@ -101,7 +109,9 @@
  WPP_DEFINE_BIT( AL_DBG_AV)\
  WPP_DEFINE_BIT( AL_DBG_CQ)\
  WPP_DEFINE_BIT( AL_DBG_QP)\
+ WPP_DEFINE_BIT( AL_DBG_RES3) \
  WPP_DEFINE_BIT( AL_DBG_MW)\
+ WPP_DEFINE_BIT( AL_DBG_RES4) \
  WPP_DEFINE_BIT( AL_DBG_PROXY_CB)\
  WPP_DEFINE_BIT( AL_DBG_UAL)\
  WPP_DEFINE_BIT( AL_DBG_QUERY)\
@@ -141,13 +151,13 @@
 
 /* Debug message source */
 #define AL_DBG_ERR (1 << 0)
-#define AL_DBG_AL_OBJ (1 << 1)
+#define AL_DBG_PNP  (1 << 1)
 #define AL_DBG_HDL  (1 << 2)
+#define AL_DBG_AL_OBJ (1 << 3)
 #define AL_DBG_SMI  (1 << 4)
 #define AL_DBG_SMI_CB (1 << 5)
 #define AL_DBG_MAD_POOL (1 << 7)
 #define AL_DBG_MAD_SVC (1 << 8)
-#define AL_DBG_PNP  (1 << 9)
 #define AL_DBG_CM  (1 << 10)
 #define AL_DBG_CA  (1 << 11)
 #define AL_DBG_MR  (1 << 12)
Index: al_mgr_shared.c
===================================================================
--- al_mgr_shared.c (revision 1727)
+++ al_mgr_shared.c (working copy)
@@ -41,7 +41,6 @@
 #endif
 #include "al_ci_ca.h"
 #include "ib_common.h"
-#include "al_debug.h"
 #include "al_mgr.h"
 #include "al_pnp.h"
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: al_wpp2.patch
Type: application/octet-stream
Size: 3110 bytes
Desc: al_wpp2.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20061005/47a07483/attachment.obj>


More information about the ofw mailing list