X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fportals%2Finclude%2Fportals%2Fp30.h;fp=lustre%2Fportals%2Finclude%2Fportals%2Fp30.h;h=577ffabbcac5554de668aba29524f5b8eba469d6;hb=090c677210ee2946d99c71412e4ff762bb300f4f;hp=4b8631ddee86564f90a9779dea2d43f6ac052457;hpb=c843241715b13024a656fad4e465be20e7fc5c79;p=fs%2Flustre-release.git diff --git a/lustre/portals/include/portals/p30.h b/lustre/portals/include/portals/p30.h index 4b8631d..577ffab 100644 --- a/lustre/portals/include/portals/p30.h +++ b/lustre/portals/include/portals/p30.h @@ -21,6 +21,45 @@ #endif #include +#include #include +#include + +/* + * Debugging flags reserved for the Portals reference library. + * These are not part of the API as described in the SAND report + * but are for the use of the maintainers of the reference implementation. + * + * It is not expected that the real implementations will export + * this functionality. + */ +#define PTL_DEBUG_NONE 0ul +#define PTL_DEBUG_ALL (0x0FFFul) /* Only the Portals flags */ + +#define __bit(x) ((unsigned long) 1<<(x)) +#define PTL_DEBUG_PUT __bit(0) +#define PTL_DEBUG_GET __bit(1) +#define PTL_DEBUG_REPLY __bit(2) +#define PTL_DEBUG_ACK __bit(3) +#define PTL_DEBUG_DROP __bit(4) +#define PTL_DEBUG_REQUEST __bit(5) +#define PTL_DEBUG_DELIVERY __bit(6) +#define PTL_DEBUG_UNLINK __bit(7) +#define PTL_DEBUG_THRESHOLD __bit(8) +#define PTL_DEBUG_API __bit(9) + +/* + * These eight are reserved for the NAL to define + * It should probably give them better names... + */ +#define PTL_DEBUG_NI_ALL (0xF000ul) /* Only the NAL flags */ +#define PTL_DEBUG_NI0 __bit(24) +#define PTL_DEBUG_NI1 __bit(25) +#define PTL_DEBUG_NI2 __bit(26) +#define PTL_DEBUG_NI3 __bit(27) +#define PTL_DEBUG_NI4 __bit(28) +#define PTL_DEBUG_NI5 __bit(29) +#define PTL_DEBUG_NI6 __bit(30) +#define PTL_DEBUG_NI7 __bit(31) #endif