repo stringlengths 1 152 ⌀ | file stringlengths 15 205 | code stringlengths 0 41.6M | file_length int64 0 41.6M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 90
values |
|---|---|---|---|---|---|---|
null | ceph-main/src/common/async/bind_like.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 Red Hat <contact@redhat.com>
* Author: Adam C. Emerson
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the... | 1,272 | 30.825 | 70 | h |
null | ceph-main/src/common/async/blocked_completion.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 Red Hat
* Author: Adam C. Emerson <aemerson@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of th... | 7,225 | 23.831615 | 100 | h |
null | ceph-main/src/common/async/completion.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 12,465 | 37.834891 | 82 | h |
null | ceph-main/src/common/async/context_pool.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat <contact@redhat.com>
* Author: Adam C. Emerson <aemerson@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it ... | 2,287 | 23.084211 | 70 | h |
null | ceph-main/src/common/async/forward_handler.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 3,052 | 28.355769 | 79 | h |
null | ceph-main/src/common/async/librados_completion.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 Red Hat
* Author: Adam C. Emerson <aemerson@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of th... | 3,105 | 23.650794 | 72 | h |
null | ceph-main/src/common/async/shared_mutex.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 6,016 | 27.248826 | 80 | h |
null | ceph-main/src/common/async/waiter.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 5,118 | 21.852679 | 79 | h |
null | ceph-main/src/common/async/yield_context.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat, Inc
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License versi... | 2,067 | 33.466667 | 80 | h |
null | ceph-main/src/common/async/detail/shared_lock.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 5,078 | 26.306452 | 80 | h |
null | ceph-main/src/common/async/detail/shared_mutex.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 9,401 | 27.752294 | 79 | h |
null | ceph-main/src/common/detail/construct_suspended.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat <contact@redhat.com>
* Author: Adam C. Emerson <aemerson@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it ... | 741 | 28.68 | 70 | h |
null | ceph-main/src/common/options/build_options.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "build_options.h"
#include <algorithm>
#include <cstring>
std::vector<Option> get_global_options();
std::vector<Option> get_mgr_options();
std::vector<Option> get_mon_options();
std::vector<Option> get_crimson_... | 1,792 | 32.203704 | 75 | cc |
null | ceph-main/src/common/options/build_options.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <vector>
#include "common/options.h"
std::vector<Option> build_options();
| 196 | 20.888889 | 70 | h |
null | ceph-main/src/common/options/legacy_config_opts.h | #include "global_legacy_options.h"
#include "cephfs-mirror_legacy_options.h"
#include "mds_legacy_options.h"
#include "mds-client_legacy_options.h"
#include "mgr_legacy_options.h"
#include "mon_legacy_options.h"
#include "osd_legacy_options.h"
#include "rbd_legacy_options.h"
#include "rbd-mirror_legacy_options.h"
#incl... | 398 | 32.25 | 50 | h |
null | ceph-main/src/common/win32/SubProcess.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#include <s... | 7,862 | 24.612378 | 107 | cc |
null | ceph-main/src/common/win32/blkdev.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ve... | 2,263 | 17.406504 | 78 | cc |
null | ceph-main/src/common/win32/dlfcn.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ve... | 872 | 21.384615 | 70 | cc |
null | ceph-main/src/common/win32/dns_resolve.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ve... | 1,588 | 22.716418 | 83 | cc |
null | ceph-main/src/common/win32/errno.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ve... | 22,524 | 33.49464 | 75 | cc |
null | ceph-main/src/common/win32/ifaddrs.cc | #include <errno.h>
#include <winsock2.h>
#include <wincrypt.h>
#include <iphlpapi.h>
#include <ws2tcpip.h>
#include <ifaddrs.h>
#include <stdio.h>
#include "include/compat.h"
int getifaddrs(struct ifaddrs **ifap)
{
int ret = 0;
DWORD size, res = 0;
res = GetAdaptersAddresses(
AF_UNSPEC, GAA_FLAG_INCLUDE_PR... | 3,292 | 28.936364 | 90 | cc |
null | ceph-main/src/common/win32/registry.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#define dou... | 4,285 | 24.819277 | 74 | cc |
null | ceph-main/src/common/win32/registry.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#include "i... | 886 | 21.74359 | 83 | h |
null | ceph-main/src/common/win32/service.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#define dou... | 4,638 | 28.547771 | 79 | cc |
null | ceph-main/src/common/win32/service.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 SUSE LINUX GmbH
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#include "i... | 1,240 | 23.82 | 67 | h |
null | ceph-main/src/common/win32/syslog.cc | #include <windows.h>
#include <syslog.h>
#include "event_logging.h"
#include "common/code_environment.h"
static HANDLE g_event_source = NULL;
bool get_event_source()
{
if (!g_event_source) {
HANDLE temp = RegisterEventSourceA(NULL, get_process_name_cpp().c_str());
if (!temp)
return false;
if (Int... | 1,598 | 19.5 | 77 | cc |
null | ceph-main/src/common/win32/wstring.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 Cloudbase Solutions
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#includ... | 656 | 22.464286 | 68 | cc |
null | ceph-main/src/common/win32/wstring.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 Cloudbase Solutions
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#pragma... | 444 | 22.421053 | 61 | h |
null | ceph-main/src/compressor/CompressionPlugin.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph distributed storage system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
*
* This library is free software; you can redistribute it and/or
* modify it u... | 1,091 | 21.285714 | 71 | h |
null | ceph-main/src/compressor/Compressor.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Haomai Wang <haomaiwang@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 3,081 | 26.274336 | 96 | cc |
null | ceph-main/src/compressor/Compressor.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Haomai Wang <haomaiwang@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 3,134 | 27.5 | 155 | h |
null | ceph-main/src/compressor/QatAccel.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
... | 7,003 | 28.062241 | 112 | cc |
null | ceph-main/src/compressor/QatAccel.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
... | 1,455 | 25.472727 | 131 | h |
null | ceph-main/src/compressor/brotli/BrotliCompressor.cc | #include "brotli/encode.h"
#include "brotli/decode.h"
#include "BrotliCompressor.h"
#include "include/scope_guard.h"
#define MAX_LEN (CEPH_PAGE_SIZE)
int BrotliCompressor::compress(const bufferlist &in, bufferlist &out, boost::optional<int32_t> &compressor_message)
{
BrotliEncoderState* s = BrotliEncoderCreateInst... | 3,661 | 36.752577 | 117 | cc |
null | ceph-main/src/compressor/brotli/BrotliCompressor.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 BI SHUN KE <aionshun@livemail.tw>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
... | 982 | 29.71875 | 142 | h |
null | ceph-main/src/compressor/brotli/CompressionPluginBrotli.cc | #include "acconfig.h"
#include "ceph_ver.h"
#include "CompressionPluginBrotli.h"
#include "common/ceph_context.h"
const char *__ceph_plugin_version()
{
return CEPH_GIT_NICE_VER;
}
int __ceph_plugin_init(CephContext *cct,
const std::string& type,
const std::string& name... | 454 | 21.75 | 69 | cc |
null | ceph-main/src/compressor/brotli/CompressionPluginBrotli.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 BI SHUN KE <aionshun@livemail.tw>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
... | 916 | 23.783784 | 77 | h |
null | ceph-main/src/compressor/lz4/CompressionPluginLZ4.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 XSKY Inc.
*
* Author: Haomai Wang <haomaiwang@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; ... | 1,006 | 26.216216 | 80 | cc |
null | ceph-main/src/compressor/lz4/CompressionPluginLZ4.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 XSKY Inc.
*
* Author: Haomai Wang <haomaiwang@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; ... | 1,138 | 26.119048 | 80 | h |
null | ceph-main/src/compressor/lz4/LZ4Compressor.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Haomai Wang <haomaiwang@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 4,494 | 29.371622 | 126 | h |
null | ceph-main/src/compressor/snappy/CompressionPluginSnappy.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,106 | 27.384615 | 80 | cc |
null | ceph-main/src/compressor/snappy/CompressionPluginSnappy.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,173 | 26.302326 | 80 | h |
null | ceph-main/src/compressor/snappy/SnappyCompressor.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Haomai Wang <haomaiwang@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 3,386 | 27.948718 | 122 | h |
null | ceph-main/src/compressor/zlib/CompressionPluginZlib.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,102 | 27.282051 | 80 | cc |
null | ceph-main/src/compressor/zlib/CompressionPluginZlib.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,726 | 27.311475 | 80 | h |
null | ceph-main/src/compressor/zlib/ZlibCompressor.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 7,601 | 29.047431 | 151 | cc |
null | ceph-main/src/compressor/zlib/ZlibCompressor.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify ... | 1,691 | 35 | 156 | h |
null | ceph-main/src/compressor/zstd/CompressionPluginZstd.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,020 | 26.594595 | 80 | cc |
null | ceph-main/src/compressor/zstd/CompressionPluginZstd.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Mirantis, Inc.
*
* Author: Alyona Kiseleva <akiselyova@mirantis.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... | 1,181 | 25.863636 | 80 | h |
null | ceph-main/src/compressor/zstd/ZstdCompressor.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Haomai Wang <haomaiwang@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | 3,132 | 28.009259 | 126 | h |
null | ceph-main/src/crimson/admin/admin_socket.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "crimson/admin/admin_socket.h"
#include <boost/algorithm/string/join.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <seastar/net/api.hh>
#include <seastar/net/inet_address.hh>
#include <seastar/co... | 18,097 | 32.268382 | 87 | cc |
null | ceph-main/src/crimson/admin/admin_socket.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
/**
A Crimson-wise version of the src/common/admin_socket.h
Note: assumed to be running on a single core.
*/
#include <map>
#include <string>
#include <string_view>
#include <seastar/core/future.hh>
#in... | 5,795 | 29.829787 | 85 | h |
null | ceph-main/src/crimson/admin/osd_admin.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "crimson/admin/osd_admin.h"
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <seastar/core/do_with.hh>
#include <seastar/core/future.hh>
#include <seastar/core/thread.hh>
#include <seast... | 19,362 | 32.674783 | 99 | cc |
null | ceph-main/src/crimson/admin/osd_admin.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <memory>
namespace crimson::admin {
class AdminSocketHook;
class AssertAlwaysHook;
class DumpMetricsHook;
class DumpPGStateHistory;
class DumpPerfCountersHook;
class FlushPgStatsHook;
class Inject... | 664 | 21.931034 | 70 | h |
null | ceph-main/src/crimson/admin/pg_commands.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "crimson/admin/pg_commands.h"
#include <memory>
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <seastar/core/future.hh>
#include "crimson/admin/admin_socket.h"
#include "crimson/osd/... | 5,424 | 31.291667 | 83 | cc |
null | ceph-main/src/crimson/admin/pg_commands.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
namespace crimson::admin::pg {
class QueryCommand;
class MarkUnfoundLostCommand;
} // namespace crimson::admin::pg
| 230 | 20 | 70 | h |
null | ceph-main/src/crimson/auth/AuthClient.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <cstdint>
#include <string>
#include <tuple>
#include <vector>
#include "include/buffer_fwd.h"
#include "crimson/net/Fwd.h"
class CryptoKey;
namespace crimson::auth {
class error : public std::lo... | 1,959 | 26.222222 | 77 | h |
null | ceph-main/src/crimson/auth/AuthServer.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <cstdint>
#include <utility>
#include <vector>
#include "crimson/net/Fwd.h"
struct AuthAuthorizeHandler;
namespace crimson::auth {
class AuthServer {
public:
virtual ~AuthServer() {}
// Get ... | 1,288 | 28.976744 | 80 | h |
null | ceph-main/src/crimson/auth/DummyAuth.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "AuthClient.h"
#include "AuthServer.h"
namespace crimson::auth {
class DummyAuthClientServer : public AuthClient,
public AuthServer {
public:
DummyAuthClientServer() {}
// cli... | 2,053 | 24.675 | 70 | h |
null | ceph-main/src/crimson/auth/KeyRing.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "KeyRing.h"
#include <boost/algorithm/string.hpp>
#include <seastar/core/do_with.hh>
#include <seastar/core/fstream.hh>
#include <seastar/core/future-util.hh>
#include <seastar/core/reactor.hh>
#include "comm... | 2,447 | 29.6 | 78 | cc |
null | ceph-main/src/crimson/auth/KeyRing.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/future.hh>
class KeyRing;
namespace crimson::auth {
// see KeyRing::from_ceph_context
seastar::future<KeyRing*> load_from_keyring(KeyRing* keyring);
seastar::future<KeyRing*> ... | 420 | 25.3125 | 71 | h |
null | ceph-main/src/crimson/common/assert.cc | #include <cstdarg>
#include <iostream>
#include <seastar/util/backtrace.hh>
#include <seastar/core/reactor.hh>
#include "include/ceph_assert.h"
#include "crimson/common/log.h"
namespace ceph {
[[gnu::cold]] void __ceph_assert_fail(const ceph::assert_data &ctx)
{
__ceph_assert_fail(ctx.assertion, ctx.file, c... | 2,531 | 29.878049 | 75 | cc |
null | ceph-main/src/crimson/common/auth_handler.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
class EntityName;
class AuthCapsInfo;
namespace crimson::common {
class AuthHandler {
public:
// the peer just got authorized
virtual void handle_authentication(const EntityName& name,
const Au... | 384 | 20.388889 | 70 | h |
null | ceph-main/src/crimson/common/buffer_io.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "buffer_io.h"
#include <seastar/core/reactor.hh>
#include <seastar/core/fstream.hh>
#include <seastar/core/do_with.hh>
#include "include/buffer.h"
namespace crimson {
seastar::future<> write_file(ceph::buffer... | 1,855 | 31 | 76 | cc |
null | ceph-main/src/crimson/common/buffer_io.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/future.hh>
#include <seastar/core/file-types.hh>
#include "include/buffer_fwd.h"
namespace crimson {
seastar::future<> write_file(ceph::buffer::list&& bl,
... | 803 | 35.545455 | 75 | h |
null | ceph-main/src/crimson/common/condition_variable.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/future.hh>
#include <seastar/core/condition-variable.hh>
#include <seastar/core/loop.hh>
#include "crimson/common/interruptible_future.h"
namespace crimson {
class condition_varia... | 1,321 | 29.045455 | 78 | h |
null | ceph-main/src/crimson/common/config_proxy.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "config_proxy.h"
#include <filesystem>
#include "crimson/common/buffer_io.h"
namespace crimson::common {
ConfigProxy::ConfigProxy(const EntityName& name, std::string_view cluster)
{
if (seastar::this_shard_... | 3,238 | 33.457447 | 86 | cc |
null | ceph-main/src/crimson/common/config_proxy.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/reactor.hh>
#include <seastar/core/sharded.hh>
#include "common/config.h"
#include "common/config_obs.h"
#include "common/config_obs_mgr.h"
#include "common/errno.h"
namespace ceph {
... | 7,066 | 32.023364 | 92 | h |
null | ceph-main/src/crimson/common/errorator-loop.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab expandtab
#pragma once
#include <seastar/core/future.hh>
#include "crimson/common/errorator.h"
namespace crimson {
template <class... AllowedErrors>
class parallel_for_each_state final : private seastar::continuatio... | 3,003 | 31.652174 | 93 | h |
null | ceph-main/src/crimson/common/errorator.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab expandtab
#pragma once
#include <exception>
#include <system_error>
#include <seastar/core/future-util.hh>
#include "crimson/common/utility.h"
#include "include/ceph_assert.h"
namespace crimson::interruptible {
tem... | 50,368 | 36.117907 | 108 | h |
null | ceph-main/src/crimson/common/exception.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <exception>
#include <seastar/core/future.hh>
#include <seastar/core/future-util.hh>
#include "crimson/common/log.h"
#include "crimson/common/interruptible_future.h"
namespace crimson::common {
c... | 1,342 | 23.418182 | 76 | h |
null | ceph-main/src/crimson/common/fatal_signal.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#include "fatal_signal.h"
#include <csignal>
#include <iostream>
#include <string_view>
#define BOOST_STACKTRACE_USE_ADDR2LINE
#include <boost/stacktrace.hpp>
#include <seastar/core/reactor.hh>
#include "common/safe_... | 5,453 | 30.526012 | 80 | cc |
null | ceph-main/src/crimson/common/fatal_signal.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <csignal>
class FatalSignal {
public:
FatalSignal();
private:
static void signal_entry(int signum, siginfo_t* siginfo, void* p);
static void signaled(int signum, const siginfo_t& siginfo);... | 461 | 20 | 72 | h |
null | ceph-main/src/crimson/common/fixed_kv_node_layout.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <algorithm>
#include <iostream>
#include <boost/iterator/counting_iterator.hpp>
#include "include/byteorder.h"
#include "crimson/common/layout.h"
namespace crimson::common {
template <typename ... | 17,059 | 22.337893 | 87 | h |
null | ceph-main/src/crimson/common/formatter.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "formatter.h"
#include <fmt/format.h>
#if FMT_VERSION >= 60000
#include <fmt/chrono.h>
#else
#include <fmt/time.h>
#endif
template <>
struct fmt::formatter<seastar::lowres_system_clock::time_point> {
// igno... | 1,099 | 25.829268 | 70 | cc |
null | ceph-main/src/crimson/common/formatter.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include <seastar/core/lowres_clock.hh>
#include "common/ceph_time.h"
namespace std {
ostream& operator<<(ostream& out,
const seastar::lowres_system_clock::time_point& t);
}
| 297 | 20.285714 | 71 | h |
null | ceph-main/src/crimson/common/gated.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/gate.hh>
#include <seastar/core/future.hh>
#include <seastar/core/future-util.hh>
#include "crimson/common/exception.h"
#include "crimson/common/log.h"
#include "include/ceph_assert.h... | 1,558 | 26.839286 | 78 | h |
null | ceph-main/src/crimson/common/interruptible_future.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/future-util.hh>
#include <seastar/core/do_with.hh>
#include <seastar/core/when_all.hh>
#include <seastar/core/thread.hh>
#include "crimson/common/log.h"
#include "crimson/common/error... | 57,249 | 34.758901 | 129 | h |
null | ceph-main/src/crimson/common/layout.h | // Copyright 2018 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 26,948 | 35.51626 | 94 | h |
null | ceph-main/src/crimson/common/local_shared_foreign_ptr.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <boost/intrusive_ptr.hpp>
#include <boost/smart_ptr/intrusive_ref_counter.hpp>
#include <seastar/core/smp.hh>
#include <seastar/core/future.hh>
#include <seastar/core/sharded.hh>
namespace crimson... | 7,380 | 29.004065 | 87 | h |
null | ceph-main/src/crimson/common/log.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "log.h"
static std::array<seastar::logger, ceph_subsys_get_num()> loggers{
#define SUBSYS(name, log_level, gather_level) \
seastar::logger(#name),
#define DEFAULT_SUBSYS(log_level, gather_level) \
seastar::l... | 532 | 23.227273 | 70 | cc |
null | ceph-main/src/crimson/common/log.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <fmt/format.h>
#include <seastar/util/log.hh>
#include "common/subsys_types.h"
namespace crimson {
seastar::logger& get_logger(int subsys);
static inline seastar::log_level to_log_level(int level)... | 3,647 | 39.988764 | 94 | h |
null | ceph-main/src/crimson/common/logclient.cc | #include "crimson/common/logclient.h"
#include <fmt/ranges.h>
#include "include/str_map.h"
#include "messages/MLog.h"
#include "messages/MLogAck.h"
#include "messages/MMonGetVersion.h"
#include "crimson/net/Messenger.h"
#include "crimson/mon/MonClient.h"
#include "mon/MonMap.h"
#include "common/Graylog.h"
using std::m... | 10,044 | 26.520548 | 77 | cc |
null | ceph-main/src/crimson/common/logclient.h | #ifndef CEPH_LOGCLIENT_H
#define CEPH_LOGCLIENT_H
#include "common/LogEntry.h"
#include "common/ostream_temp.h"
#include "common/ref.h"
#include "include/health.h"
#include "crimson/net/Fwd.h"
#include <seastar/core/future.hh>
#include <seastar/core/gate.hh>
#include <seastar/core/lowres_clock.hh>
#include <seastar/c... | 6,177 | 25.515021 | 76 | h |
null | ceph-main/src/crimson/common/operation.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "operation.h"
namespace crimson {
void Operation::dump(ceph::Formatter* f) const
{
f->open_object_section("operation");
f->dump_string("type", get_type_name());
f->dump_unsigned("id", id);
{
f->open... | 1,703 | 21.421053 | 70 | cc |
null | ceph-main/src/crimson/common/operation.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab expandtab
#pragma once
#include <algorithm>
#include <array>
#include <set>
#include <vector>
#include <boost/core/demangle.hpp>
#include <boost/intrusive/list.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/sm... | 21,287 | 26.397683 | 89 | h |
null | ceph-main/src/crimson/common/perf_counters_collection.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "common/ceph_context.h"
#include "perf_counters_collection.h"
namespace crimson::common {
PerfCountersCollection::PerfCountersCollection()
{
perf_collection = std::make_unique<PerfCountersCollectionImpl>();
}
... | 1,129 | 25.904762 | 96 | cc |
null | ceph-main/src/crimson/common/perf_counters_collection.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include "common/perf_counters.h"
#include "include/common_fwd.h"
#include <seastar/core/sharded.hh>
using crimson::common::PerfCountersCollectionImpl;
namespace crimson::common {
class PerfCountersCollecti... | 1,591 | 30.84 | 109 | h |
null | ceph-main/src/crimson/common/shared_lru.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <memory>
#include <optional>
#include <boost/smart_ptr/local_shared_ptr.hpp>
#include <boost/smart_ptr/weak_ptr.hpp>
#include "simple_lru.h"
/// SharedLRU does its best to cache objects. It not onl... | 5,024 | 26.762431 | 81 | h |
null | ceph-main/src/crimson/common/simple_lru.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <list>
#include <map>
#include <optional>
#include <type_traits>
#include <unordered_map>
template <class Key, class Value, bool Ordered>
class SimpleLRU {
static_assert(std::is_default_construct... | 3,782 | 25.640845 | 78 | h |
null | ceph-main/src/crimson/common/smp_helpers.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <limits>
#include <seastar/core/smp.hh>
#include "crimson/common/errorator.h"
#include "crimson/common/utility.h"
namespace crimson {
using core_id_t = seastar::shard_id;
static constexpr core_i... | 2,286 | 23.591398 | 77 | h |
null | ceph-main/src/crimson/common/throttle.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#include "throttle.h"
namespace crimson::common {
int64_t Throttle::take(int64_t c)
{
if (max == 0u) {
return 0;
}
count += c;
return count;
}
int64_t Throttle::put(int64_t c)
{
if (max == 0u) {
ret... | 1,107 | 16.046154 | 72 | cc |
null | ceph-main/src/crimson/common/throttle.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/condition-variable.hh>
// pull seastar::timer<...>::timer definitions. FIX SEASTAR or reactor.hh
// is obligatory and should be included everywhere?
#include <seastar/core/reactor.hh... | 1,097 | 23.954545 | 76 | h |
null | ceph-main/src/crimson/common/tmap_helpers.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "crimson/common/tmap_helpers.h"
#include "include/buffer.h"
#include "include/encoding.h"
#include "include/rados.h"
namespace detail {
#define decode_or_return(v, bp) \
try { \
::decode(v, bp); \
... | 2,583 | 18.575758 | 77 | cc |
null | ceph-main/src/crimson/common/tmap_helpers.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include "include/expected.hpp"
#include "include/buffer.h"
#include "include/encoding.h"
namespace crimson::common {
/**
* do_tmap_up
*
* Performs tmap update instructions encoded in buffer referenced... | 1,186 | 27.95122 | 80 | h |
null | ceph-main/src/crimson/common/tri_mutex.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#include "tri_mutex.h"
seastar::future<> read_lock::lock()
{
return static_cast<tri_mutex*>(this)->lock_for_read();
}
void read_lock::unlock()
{
static_cast<tri_mutex*>(this)->unlock_for_read();
}
seastar::future... | 4,250 | 17.809735 | 72 | cc |
null | ceph-main/src/crimson/common/tri_mutex.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include <seastar/core/future.hh>
#include <seastar/core/circular_buffer.hh>
class read_lock {
public:
seastar::future<> lock();
void unlock();
};
class write_lock {
public:
seastar::future<> lock(... | 3,601 | 21.942675 | 79 | h |
null | ceph-main/src/crimson/common/type_helpers.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once
#include "boost/intrusive_ptr.hpp"
template<typename T> using Ref = boost::intrusive_ptr<T>;
| 207 | 22.111111 | 70 | h |
null | ceph-main/src/crimson/common/utility.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*-
// vim: ts=8 sw=2 smarttab expandtab
#pragma once
#include <type_traits>
namespace _impl {
template <class T> struct always_false : std::false_type {};
};
template <class T>
void assert_moveable(T& t) {
// It's fine
}
template <class T>
... | 1,050 | 25.948718 | 78 | h |
null | ceph-main/src/crimson/crush/CrushLocation.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "CrushLocation.h"
#include <vector>
#include <boost/algorithm/string/trim.hpp>
#include <seastar/util/process.hh>
#include <seastar/util/later.hh>
#include "crush/CrushWrapper.h"
#include "crimson/common/log.h"
... | 5,935 | 30.743316 | 103 | cc |