#ifndef _EventTrace_h_
#define _EventTrace_h_
-#include <string>
#include "msg/Message.h"
-#include "common/ceph_context.h"
#if defined(WITH_LTTNG) && defined(WITH_EVENTTRACE)
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
-#include "common/config.h"
#include "Finisher.h"
-#include "common/debug.h"
#define dout_subsys ceph_subsys_finisher
#undef dout_prefix
#define dout_prefix *_dout << "finisher(" << this << ") "
#ifndef CEPH_FINISHER_H
#define CEPH_FINISHER_H
-#include "include/atomic.h"
-#include "common/Mutex.h"
#include "common/Cond.h"
-#include "common/Thread.h"
#include "common/perf_counters.h"
class CephContext;
#define LARGE_SIZE 1024
-#include "assert.h"
-#include "Formatter.h"
#include "HTMLFormatter.h"
#include "common/escape.h"
#include "include/buffer.h"
-#include <algorithm>
-#include <sstream>
-#include <stdarg.h>
-#include <stdio.h>
-#include <vector>
-#include <string>
#include <set>
#include <boost/format.hpp>
-
// -----------------------
namespace ceph {
#define CEPH_FORMATTER_H
#include "include/int_types.h"
+#include "include/buffer_fwd.h"
#include <deque>
-#include <iosfwd>
#include <list>
#include <vector>
#include <stdarg.h>
-#include <stddef.h>
-#include <utility>
#include <sstream>
-#include <string>
#include <map>
-#include "include/buffer_fwd.h"
-
namespace ceph {
struct FormatterAttrs {
// vim: ts=8 sw=2 smarttab
#include "Graylog.h"
-
-#include <iostream>
-
#include "common/Formatter.h"
#include "common/LogEntry.h"
#include "log/Entry.h"
#include "log/SubsystemMap.h"
-#include "include/uuid.h"
namespace ceph {
namespace logging {
#ifndef __CEPH_LOG_GRAYLOG_H
#define __CEPH_LOG_GRAYLOG_H
-
-#include <memory>
-
#include <boost/asio.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/zlib.hpp>
#define LARGE_SIZE 1024
-#include "Formatter.h"
#include "HTMLFormatter.h"
+#include "Formatter.h"
#include <sstream>
#include <stdarg.h>
#ifndef CEPH_HTML_FORMATTER_H
#define CEPH_HTML_FORMATTER_H
-#include <iosfwd>
-#include <stdarg.h>
-#include <string>
-
#include "Formatter.h"
namespace ceph {
*
*/
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <pthread.h>
#include <signal.h>
#include "HeartbeatMap.h"
#include "ceph_context.h"
#include "common/errno.h"
-#include "common/valgrind.h"
-
#include "debug.h"
+
#define dout_subsys ceph_subsys_heartbeatmap
#undef dout_prefix
#define dout_prefix *_dout << "heartbeat_map "
#ifndef CEPH_HEARTBEATMAP_H
#define CEPH_HEARTBEATMAP_H
-#include <pthread.h>
-
-#include <string>
#include <list>
-#include <time.h>
#include "include/atomic.h"
-
#include "RWLock.h"
class CephContext;
*
*/
-
-
-#include "include/types.h"
+#include "common/LogClient.h"
#include "include/str_map.h"
-#include "include/uuid.h"
-
-#include "msg/Messenger.h"
-#include "msg/Message.h"
-
#include "messages/MLog.h"
#include "messages/MLogAck.h"
#include "mon/MonMap.h"
-
-#include <iostream>
-#include <errno.h>
-#include <sys/stat.h>
-#include <syslog.h>
+#include "common/Graylog.h"
#ifdef DARWIN
#include <sys/param.h>
#include <sys/mount.h>
#endif // DARWIN
-#include "common/Graylog.h"
-// wipe the assert() introduced by boost headers included by Graylog.h
-#include "include/assert.h"
-#include "common/LogClient.h"
-
-#include "common/config.h"
-
#define dout_subsys ceph_subsys_monc
int parse_log_client_options(CephContext *cct,
#include "common/LogEntry.h"
#include "common/Mutex.h"
-#include <iosfwd>
-#include <sstream>
-#include <atomic>
-
class LogClient;
class MLog;
class MLogAck;
-
#include <syslog.h>
-
#include <boost/algorithm/string/predicate.hpp>
#include "LogEntry.h"
#include "Formatter.h"
-
#include "include/stringify.h"
// ----
#ifndef CEPH_LOGENTRY_H
#define CEPH_LOGENTRY_H
-#include "include/types.h"
#include "include/utime.h"
-#include "include/encoding.h"
#include "msg/msg_types.h" // for entity_inst_t
namespace ceph {
-
-#include "acconfig.h"
-#include "include/compat.h"
-#include "include/types.h"
#include "MemoryModel.h"
-#include "common/config.h"
+#include "include/compat.h"
#include "debug.h"
#if defined(__linux__)
#include <malloc.h>
#include "include/event_type.h"
#include <unistd.h>
-#include <errno.h>
class EventSocket {
int socket;
*/
#include "include/compat.h"
-#include "fd.h"
-
-#include <sys/types.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <errno.h>
-
#include "debug.h"
#include "errno.h"
#include <boost/mpl/pop_front.hpp>
#include <boost/mpl/push_front.hpp>
-#include <boost/function_types/is_member_function_pointer.hpp>
#include <boost/function_types/function_type.hpp>
#include <boost/function_types/result_type.hpp>
#include <boost/function_types/parameter_types.hpp>
-#include <boost/type_traits.hpp>
-
template <typename F>
struct signature_of_member
{
*
*/
-#include "common/debug.h"
#include "common/hex.h"
-#include <stdio.h>
-#include <string>
-
void hex2str(const char *s, int len, char *buf, int dest_len)
{
int pos = 0;
#ifndef CEPH_HISTOGRAM_H
#define CEPH_HISTOGRAM_H
-#include <vector>
#include <list>
-#include "include/intarith.h"
#include "include/encoding.h"
namespace ceph {
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
-#include "include/types.h"
#include "hobject.h"
#include "common/Formatter.h"
#ifndef __CEPH_OS_HOBJECT_H
#define __CEPH_OS_HOBJECT_H
-#include <string.h>
#include "include/types.h"
-#include "include/object.h"
#include "include/cmp.h"
#include "json_spirit/json_spirit_value.h"
#include "common/hostname.h"
-#include <string>
#include <unistd.h>
std::string ceph_get_hostname()
#ifndef INLINE_VARIANT_H
#define INLINE_VARIANT_H
-#include <boost/utility/enable_if.hpp>
#include <boost/function_types/function_arity.hpp>
-#include <boost/function_types/parameter_types.hpp>
-#include <boost/function_types/result_type.hpp>
-#include <boost/fusion/include/at_key.hpp>
-#include <boost/fusion/include/has_key.hpp>
-#include <boost/fusion/include/make_vector.hpp>
-#include <boost/fusion/include/map.hpp>
#include <boost/fusion/algorithm/transformation/transform.hpp>
-#include <boost/move/move.hpp>
#include <boost/mpl/contains.hpp>
-#include <boost/mpl/equal_to.hpp>
-#include <boost/mpl/front.hpp>
-#include <boost/mpl/pop_front.hpp>
#include <boost/mpl/map.hpp>
-#include <boost/mpl/void.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/mpl/transform.hpp>
-#include <boost/mpl/unpack_args.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/range_c.hpp>
-#include <boost/static_assert.hpp>
-#include <boost/type_traits/is_same.hpp>
-#include <boost/type_traits/remove_reference.hpp>
-#include <boost/utility.hpp>
#include "function_signature.h"
#ifndef INTERVAL_MAP_H
#define INTERVAL_MAP_H
-#include <map>
-#include <vector>
-#include <utility>
-#include <boost/optional.hpp>
-#include <iostream>
#include "include/interval_set.h"
template <typename K, typename V, typename S>
*
*/
+#include "io_priority.h"
+
#include <unistd.h>
#ifdef __linux__
#include <sys/syscall.h> /* For SYS_xxx definitions */
#endif
#include <algorithm>
-#include <errno.h>
-
-#include "io_priority.h"
pid_t ceph_gettid(void)
{
#include "include/ipaddr.h"
-#include <alloca.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
-#include <netinet/in.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/socket.h>
static void netmask_ipv4(const struct in_addr *addr,
unsigned int prefix_len,
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
-#include <cctype>
-#include <chrono>
-#include <ctime>
-#include <cstdint>
-#include <iostream>
-#include <stdexcept>
-#include <string>
-#include <sstream>
-#include <utility>
-
-#include "include/timegm.h"
#include "iso_8601.h"
+#include "include/timegm.h"
+#include <sstream>
namespace ceph {
using std::chrono::duration_cast;
using std::chrono::nanoseconds;
using std::chrono::seconds;
-using std::setfill;
using std::setw;
using std::size_t;
using std::stringstream;
#ifndef CEPH_COMMON_ISO_8601_H
#define CEPH_COMMON_ISO_8601_H
-#include <boost/optional.hpp>
#include <boost/utility/string_ref.hpp>
#include "common/ceph_time.h"
* Foundation. See file COPYING.
*
*/
-#include "BackTrace.h"
-#include "Clock.h"
+#include "lockdep.h"
#include "common/dout.h"
-#include "common/environment.h"
#include "common/valgrind.h"
-#include "include/types.h"
-#include "lockdep.h"
-
-#include "include/unordered_map.h"
#if defined(__FreeBSD__) && defined(__LP64__) // On FreeBSD pthread_t is a pointer.
namespace std {
#ifndef CEPH_LRU_MAP_H
#define CEPH_LRU_MAP_H
-#include <list>
-#include <map>
#include "common/Mutex.h"
-
template <class K, class V>
class lru_map {
struct entry {
#ifndef MAPCACHER_H
#define MAPCACHER_H
-#include <boost/scoped_ptr.hpp>
-#include <boost/optional/optional_io.hpp>
-#include "include/memory.h"
-#include <set>
-#include <map>
-#include <utility>
-#include <string>
-#include <errno.h>
-
-#include "include/Context.h"
#include "common/sharedptr_registry.hpp"
namespace MapCacher {