diff options
author | Amar Tumballi <amarts@redhat.com> | 2017-09-25 16:44:06 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-11-06 14:23:49 +0000 |
commit | 125fc934e7f4c669f67e5eec5b0e3dae3a2b6d72 (patch) | |
tree | 24d1aa5139ad5766c4e9bc9e6add7e55df8fe329 /libglusterfs/src/logging.h | |
parent | e86d71b7b4653ddd66db7f3a16074e46ed24848f (diff) |
stack: change gettimeofday() to clock_gettime()
For achieving the above, needed below changes too.
* more sanity into how 'frame->op' is assigned.
* infra to have 'stats' as separate section in 'xlator_t' structure
Updates #137
Change-Id: I36679bf9577f3ed00a695b4e7d92870dcb3db8e1
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/logging.h')
-rw-r--r-- | libglusterfs/src/logging.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index fd9a36d15c2..6e433e203f9 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -25,6 +25,7 @@ #define GF_PRI_NLINK PRIu32 #define GF_PRI_SECOND "ld" #define GF_PRI_SUSECONDS "06d" +#define GF_PRI_SNSECONDS "09ld" #define GF_PRI_USEC "d" #else #define GF_PRI_FSBLK PRIu64 @@ -33,6 +34,7 @@ #define GF_PRI_NLINK PRIu32 #define GF_PRI_SECOND "lu" #define GF_PRI_SUSECONDS "06ld" +#define GF_PRI_SNSECONDS "09ld" #define GF_PRI_USEC "ld" #endif #define GF_PRI_BLKSIZE PRId32 |