[PVFS2-CVS] commit by robl in pvfs2-1/include: pvfs2-debug.h
CVS commit program
cvs at parl.clemson.edu
Tue Aug 2 14:58:52 EDT 2005
Update of /projects/cvsroot/pvfs2-1/include
In directory parlweb:/tmp/cvs-serv11207/include
Modified Files:
pvfs2-debug.h
Log Message:
[pcarns]:
- adds a new prefix ("A") for access style logging
- logs user, group, host for each operation if enabled
- triggered by a macro in the server (PINT_ACCESS_DEBUG) that checks gossip
level before doing any work
- basic format looks like this (H is handle, S is s_op structure, crdirent is
operation type, Success is response status sent):
[A 08/02 15:14] pcarns.users at localhost H=1048576 S=0x80f7d20: crdirent:
finish (Success)
- turning on "access" logging gives messages like the above on completion of
operations, plus messages for some operations that give key information (like
the path name for lookups, the object type for getattr, etc.)
- turning on "access_detail" logging adds additional messages that print when
the request is received and when it starts processing
Index: pvfs2-debug.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-debug.h,v
diff -u -w -p -u -r1.43 -r1.44
--- pvfs2-debug.h 21 Jul 2005 16:17:53 -0000 1.43
+++ pvfs2-debug.h 2 Aug 2005 17:58:51 -0000 1.44
@@ -59,6 +59,8 @@
#define GOSSIP_SETEATTR_DEBUG ((uint64_t)1 << 37)
#define GOSSIP_ENDECODE_DEBUG ((uint64_t)1 << 38)
#define GOSSIP_DELEATTR_DEBUG ((uint64_t)1 << 39)
+#define GOSSIP_ACCESS_DEBUG ((uint64_t)1 << 40)
+#define GOSSIP_ACCESS_DETAIL_DEBUG ((uint64_t)1 << 41)
/* NOTE: if you want your gossip flag to be controlable from
* pvfs2-set-debugmask you have to add it in
More information about the PVFS2-CVS
mailing list