1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2014 CohortFS, LLC
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
18 XioPoolStats xp_stats;
20 bool XioPool::trace_mempool = 0;
21 bool XioPool::trace_msgcnt = 0;
23 void XioPoolStats::dump(const char* tag, uint64_t serial)
26 << tag << " #" << serial << ": "
28 << "64: " << ctr_set[SLAB_64].read() << " "
29 << "256: " << ctr_set[SLAB_256].read() << " "
30 << "1024: " << ctr_set[SLAB_1024].read() << " "
31 << "page: " << ctr_set[SLAB_PAGE].read() << " "
32 << "max: " << ctr_set[SLAB_MAX].read() << " "
33 << "overflow: " << ctr_set[SLAB_OVERFLOW].read() << " "
36 << tag << " #" << serial << ": "
38 << "in: " << hook_cnt.read() << " "
39 << "out: " << msg_cnt.read() << " "