mirror of https://github.com/schoebel/mars
logger: remove useless counter
This commit is contained in:
parent
4de7045fd5
commit
d8e2421de9
|
@ -30,7 +30,6 @@
|
||||||
/* readonly from outside */ \
|
/* readonly from outside */ \
|
||||||
atomic_t q_queued; \
|
atomic_t q_queued; \
|
||||||
atomic_t q_flying; \
|
atomic_t q_flying; \
|
||||||
atomic_t q_total; \
|
|
||||||
/* tunables */ \
|
/* tunables */ \
|
||||||
int q_batchlen; \
|
int q_batchlen; \
|
||||||
int q_io_prio; \
|
int q_io_prio; \
|
||||||
|
@ -83,7 +82,6 @@ void q_##PREFIX##_insert(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
|
||||||
list_add_tail(&elem->HEAD, &q->q_anchor); \
|
list_add_tail(&elem->HEAD, &q->q_anchor); \
|
||||||
} \
|
} \
|
||||||
atomic_inc(&q->q_queued); \
|
atomic_inc(&q->q_queued); \
|
||||||
atomic_inc(&q->q_total); \
|
|
||||||
q->q_last_insert = jiffies; \
|
q->q_last_insert = jiffies; \
|
||||||
\
|
\
|
||||||
traced_unlock(&q->q_lock, flags); \
|
traced_unlock(&q->q_lock, flags); \
|
||||||
|
@ -97,7 +95,6 @@ void q_##PREFIX##_pushback(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
|
||||||
unsigned long flags; \
|
unsigned long flags; \
|
||||||
\
|
\
|
||||||
if (q->q_ordering) { \
|
if (q->q_ordering) { \
|
||||||
atomic_dec(&q->q_total); \
|
|
||||||
q_##PREFIX##_insert(q, elem); \
|
q_##PREFIX##_insert(q, elem); \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
|
|
|
@ -3167,11 +3167,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
|
||||||
"mshadow_buffered=%d sshadow_buffered=%d "
|
"mshadow_buffered=%d sshadow_buffered=%d "
|
||||||
"rounds=%d "
|
"rounds=%d "
|
||||||
"restarts=%d "
|
"restarts=%d "
|
||||||
"delays=%d "
|
"delays=%d | "
|
||||||
"phase0=%d "
|
|
||||||
"phase1=%d "
|
|
||||||
"phase2=%d "
|
|
||||||
"phase3=%d | "
|
|
||||||
"current #mrefs = %d "
|
"current #mrefs = %d "
|
||||||
"shadow_mem_used=%ld/%lld "
|
"shadow_mem_used=%ld/%lld "
|
||||||
"replay_count=%d "
|
"replay_count=%d "
|
||||||
|
@ -3231,10 +3227,6 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
|
||||||
atomic_read(&brick->total_round_count),
|
atomic_read(&brick->total_round_count),
|
||||||
atomic_read(&brick->total_restart_count),
|
atomic_read(&brick->total_restart_count),
|
||||||
atomic_read(&brick->total_delay_count),
|
atomic_read(&brick->total_delay_count),
|
||||||
atomic_read(&brick->q_phase[0].q_total),
|
|
||||||
atomic_read(&brick->q_phase[1].q_total),
|
|
||||||
atomic_read(&brick->q_phase[2].q_total),
|
|
||||||
atomic_read(&brick->q_phase[3].q_total),
|
|
||||||
atomic_read(&brick->mref_object_layout.alloc_count),
|
atomic_read(&brick->mref_object_layout.alloc_count),
|
||||||
atomic64_read(&brick->shadow_mem_used) / 1024,
|
atomic64_read(&brick->shadow_mem_used) / 1024,
|
||||||
brick_global_memlimit,
|
brick_global_memlimit,
|
||||||
|
|
Loading…
Reference in New Issue