From b79f29694165a65666d4177619d57b54641e4255 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 12 Sep 2017 23:01:46 +0530 Subject: xlator: add more metrics per fops Make sure to handle these counters in STACK_WIND/UNWIND macro, and keep the counters as part of xlator_t structure itself, to provide infra to monitoring. Updates #137 Change-Id: Ib54d45e2321c2b095dac5810c37e6cdffe1f71b7 Signed-off-by: Amar Tumballi --- libglusterfs/src/stack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/stack.c') diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c index 5527814a19d..bf905ca0b0e 100644 --- a/libglusterfs/src/stack.c +++ b/libglusterfs/src/stack.c @@ -55,6 +55,7 @@ create_frame (xlator_t *xl, call_pool_t *pool) pool->cnt++; } UNLOCK (&pool->lock); + GF_ATOMIC_INC (pool->total_count); LOCK_INIT (&stack->stack_lock); -- cgit