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/crypto/openssl/openssl_crypto_plugin.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.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 Fou... | 1,023 | 24.6 | 70 | h |
null | ceph-main/src/crypto/qat/qat_crypto_accel.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
* Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | 1,498 | 30.229167 | 96 | cc |
null | ceph-main/src/crypto/qat/qat_crypto_accel.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
* Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | 1,825 | 37.851064 | 129 | h |
null | ceph-main/src/crypto/qat/qat_crypto_plugin.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
* Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | 872 | 23.25 | 70 | cc |
null | ceph-main/src/crypto/qat/qat_crypto_plugin.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Intel Corporation
*
* Author: Qiaowei Ren <qiaowei.ren@intel.com>
* Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gener... | 1,117 | 25 | 111 | h |
null | ceph-main/src/crypto/qat/qcccrypto.cc | #include "qcccrypto.h"
#include <iostream>
#include "string.h"
#include <pthread.h>
#include <condition_variable>
#include "common/debug.h"
#include "include/scope_guard.h"
#include "common/dout.h"
#include "common/errno.h"
#include <atomic>
#include <utility>
#include <future>
#include <chrono>
#include "boost/conta... | 19,837 | 33.440972 | 125 | cc |
null | ceph-main/src/crypto/qat/qcccrypto.h | #ifndef QCCCRYPTO_H
#define QCCCRYPTO_H
#include <atomic>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <thread>
#include <mutex>
#include <queue>
#include <memory>
#include "common/async/yield_context.h"
#include <memory>
#include "common/ceph_mutex.h"
#include <vector>
#inc... | 6,100 | 27.376744 | 106 | h |
null | ceph-main/src/dokan/ceph_dokan.cc | /*
* ceph-dokan - Win32 CephFS client based on Dokan
*
* Copyright (C) 2021 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.
*
*/
#def... | 32,956 | 29.319227 | 80 | cc |
null | ceph-main/src/dokan/ceph_dokan.h | /*
* Copyright (C) 2021 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.
*
*/
#pragma once
#define CEPH_DOKAN_IO_DEFAULT_TIMEOUT 60 * 5... | 1,274 | 20.982759 | 65 | h |
null | ceph-main/src/dokan/dbg.cc | /*
* Copyright (C) 2021 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 "ceph_dokan.h"
#include "utils.h"
#include "dbg.h... | 6,880 | 39.005814 | 86 | cc |
null | ceph-main/src/dokan/dbg.h | // Various helpers used for debugging purposes, such as functions
// logging certain flags. Since those can be rather verbose, it's
// better if we keep them separate.
#ifndef CEPH_DOKAN_DBG_H
#define CEPH_DOKAN_DBG_H
#include "include/compat.h"
#include <sstream>
#include "ceph_dokan.h"
void print_credentials(
... | 614 | 21.777778 | 65 | h |
null | ceph-main/src/dokan/options.cc | /*
* Copyright (C) 2021 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 <regex>
#include "include/compat.h"
#include "inc... | 9,453 | 33.630037 | 90 | cc |
null | ceph-main/src/dokan/utils.cc | /*
* ceph-dokan - Win32 CephFS client based on Dokan
*
* Copyright (C) 2021 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.
*
*/
#inc... | 758 | 23.483871 | 63 | cc |
null | ceph-main/src/dokan/utils.h | /*
* ceph-dokan - Win32 CephFS client based on Dokan
*
* Copyright (C) 2021 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.
*
*/
#pra... | 446 | 22.526316 | 61 | h |
null | ceph-main/src/erasure-code/ErasureCode.cc | // -*- 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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library... | 9,856 | 27.243553 | 81 | cc |
null | ceph-main/src/erasure-code/ErasureCode.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library is free software; you can redistribute it and/or
... | 3,679 | 28.206349 | 80 | h |
null | ceph-main/src/erasure-code/ErasureCodeInterface.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library is free software; you can redistribute it and/or
... | 18,567 | 38.590618 | 89 | h |
null | ceph-main/src/erasure-code/ErasureCodePlugin.cc | // -*- 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) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This li... | 5,362 | 26.085859 | 81 | cc |
null | ceph-main/src/erasure-code/ErasureCodePlugin.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) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This li... | 2,197 | 25.481928 | 75 | h |
null | ceph-main/src/erasure-code/clay/ErasureCodeClay.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) 2018 Indian Institute of Science <office.ece@iisc.ac.in>
*
* Author: Myna Vajha <mynaramana@gmail.com>
*
* This library is free software; you can redis... | 26,780 | 28.989922 | 112 | cc |
null | ceph-main/src/erasure-code/clay/ErasureCodeClay.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 Indian Institute of Science <office.ece@iisc.ac.in>
*
* Author: Myna Vajha <mynaramana@gmail.com>
*
* This library is free software; you can redis... | 4,307 | 32.92126 | 104 | h |
null | ceph-main/src/erasure-code/clay/ErasureCodePluginClay.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) 2018 Indian Institute of Science <office.ece@iisc.ac.in>
*
* Author: Myna Vajha <mynaramana@gmail.com>
*
* This library is free software; you can redis... | 1,414 | 30.444444 | 73 | cc |
null | ceph-main/src/erasure-code/clay/ErasureCodePluginClay.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) 2018 Indian Institute of Science <office.ece@iisc.ac.in>
*
* Author: Myna Vajha <mynaramana@gmail.com>
*
* This library is free software; you can redistribute... | 920 | 28.709677 | 73 | h |
null | ceph-main/src/erasure-code/isa/ErasureCodeIsa.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch>
*
* 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 ... | 12,762 | 29.172577 | 87 | cc |
null | ceph-main/src/erasure-code/isa/ErasureCodeIsa.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch>
*
* 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 ... | 3,893 | 24.285714 | 129 | h |
null | ceph-main/src/erasure-code/isa/ErasureCodeIsaTableCache.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch>
*
* 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 ... | 11,175 | 33.073171 | 129 | cc |
null | ceph-main/src/erasure-code/isa/ErasureCodeIsaTableCache.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch>
*
* 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 ... | 4,080 | 38.240385 | 129 | h |
null | ceph-main/src/erasure-code/isa/ErasureCodePluginIsa.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch>
*
* 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 ... | 2,657 | 31.024096 | 81 | cc |
null | ceph-main/src/erasure-code/isa/ErasureCodePluginIsa.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library... | 1,030 | 28.457143 | 71 | h |
null | ceph-main/src/erasure-code/isa/xor_op.cc | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
* * Author: Andreas-Joachi... | 6,105 | 32.184783 | 412 | cc |
null | ceph-main/src/erasure-code/isa/xor_op.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 CERN (Switzerland)
* \
* Author: Andreas-Joac... | 3,978 | 44.215909 | 206 | h |
null | ceph-main/src/erasure-code/jerasure/ErasureCodeJerasure.cc | // -*- 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) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This li... | 14,436 | 26.978682 | 87 | cc |
null | ceph-main/src/erasure-code/jerasure/ErasureCodeJerasure.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) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This l... | 7,164 | 26.988281 | 80 | h |
null | ceph-main/src/erasure-code/jerasure/ErasureCodePluginJerasure.cc | // -*- 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) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This li... | 2,825 | 32.247059 | 71 | cc |
null | ceph-main/src/erasure-code/jerasure/ErasureCodePluginJerasure.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library... | 971 | 29.375 | 71 | h |
null | ceph-main/src/erasure-code/jerasure/jerasure_init.cc | // -*- 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) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This li... | 984 | 24.921053 | 81 | cc |
null | ceph-main/src/erasure-code/jerasure/jerasure_init.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) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This l... | 705 | 27.24 | 71 | h |
null | ceph-main/src/erasure-code/lrc/ErasureCodeLrc.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 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This ... | 25,525 | 28.681395 | 80 | cc |
null | ceph-main/src/erasure-code/lrc/ErasureCodeLrc.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This ... | 4,502 | 31.395683 | 80 | h |
null | ceph-main/src/erasure-code/lrc/ErasureCodePluginLrc.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 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This ... | 1,487 | 29.367347 | 70 | cc |
null | ceph-main/src/erasure-code/lrc/ErasureCodePluginLrc.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library... | 956 | 28.90625 | 71 | h |
null | ceph-main/src/erasure-code/shec/ErasureCodePluginShec.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 FUJITSU LIMITED
* Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: T... | 2,560 | 29.855422 | 95 | cc |
null | ceph-main/src/erasure-code/shec/ErasureCodePluginShec.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) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: Loic Dachary <loic@dachary.org>
*
* This library... | 1,035 | 28.6 | 71 | h |
null | ceph-main/src/erasure-code/shec/ErasureCodeShec.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 FUJITSU LIMITED
* Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: T... | 20,702 | 24.371324 | 105 | cc |
null | ceph-main/src/erasure-code/shec/ErasureCodeShec.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) 2014 FUJITSU LIMITED
* Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* Author: ... | 4,271 | 27.864865 | 87 | h |
null | ceph-main/src/erasure-code/shec/ErasureCodeShecTableCache.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 FUJITSU LIMITED
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com>
* Author: Takeshi Miyamae <miyam... | 10,928 | 33.260188 | 114 | cc |
null | ceph-main/src/erasure-code/shec/ErasureCodeShecTableCache.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) 2014 FUJITSU LIMITED
* Copyright (C) 2014 CERN (Switzerland)
*
* Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com>
* Author: Takeshi Miyamae <miyam... | 4,490 | 36.115702 | 80 | h |
null | ceph-main/src/exporter/DaemonMetricCollector.cc | #include "DaemonMetricCollector.h"
#include <boost/json/src.hpp>
#include <chrono>
#include <filesystem>
#include <iostream>
#include <map>
#include <memory>
#include <regex>
#include <string>
#include <utility>
#include "common/admin_socket_client.h"
#include "common/debug.h"
#include "common/hostname.h"
#include "c... | 17,297 | 37.269912 | 106 | cc |
null | ceph-main/src/exporter/DaemonMetricCollector.h | #pragma once
#include "common/admin_socket_client.h"
#include <map>
#include <string>
#include <vector>
#include <boost/asio.hpp>
#include <boost/json/object.hpp>
#include <filesystem>
#include <map>
#include <string>
#include <vector>
struct pstat {
unsigned long utime;
unsigned long stime;
unsigned long minf... | 2,770 | 25.141509 | 98 | h |
null | ceph-main/src/exporter/ceph_exporter.cc | #include "common/ceph_argparse.h"
#include "common/config.h"
#include "exporter/DaemonMetricCollector.h"
#include "exporter/http_server.h"
#include "global/global_init.h"
#include "global/global_context.h"
#include <boost/thread/thread.hpp>
#include <iostream>
#include <map>
#include <string>
#define dout_context g_c... | 2,378 | 35.045455 | 119 | cc |
null | ceph-main/src/exporter/http_server.cc | #include "http_server.h"
#include "common/debug.h"
#include "common/hostname.h"
#include "global/global_init.h"
#include "global/global_context.h"
#include "exporter/DaemonMetricCollector.h"
#include <boost/asio.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/version.hpp>
#in... | 5,561 | 31.717647 | 82 | cc |
null | ceph-main/src/exporter/http_server.h | #pragma once
#include <string>
void http_server_thread_entrypoint();
| 71 | 11 | 37 | h |
null | ceph-main/src/exporter/util.cc | #include "util.h"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <cctype>
#include <chrono>
#include <fstream>
#include <iostream>
#include <sstream>
#include "common/debug.h"
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_ceph_exporte... | 1,659 | 22.714286 | 80 | cc |
null | ceph-main/src/exporter/util.h | #include "common/hostname.h"
#include <chrono>
#include <string>
#define TIMED_FUNCTION() BlockTimer timer(__FILE__, __FUNCTION__)
class BlockTimer {
public:
BlockTimer(std::string file, std::string function);
~BlockTimer();
void stop();
double get_ms();
private:
std::chrono::duration<double, std::milli> ms;
... | 606 | 23.28 | 68 | h |
null | ceph-main/src/extblkdev/ExtBlkDevInterface.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph distributed storage system
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file ceph/src/erasure-code/ErasureCodeInterface.h
* Copyright (C) 2013 Clo... | 4,914 | 33.612676 | 106 | h |
null | ceph-main/src/extblkdev/ExtBlkDevPlugin.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph distributed storage system
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file ceph/src/erasure-code/ErasureCodePlugin.cc
* Copyright (C) 2013,2014 ... | 7,639 | 27.401487 | 101 | cc |
null | ceph-main/src/extblkdev/ExtBlkDevPlugin.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph distributed storage system
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file ceph/src/erasure-code/ErasureCodePlugin.h
* Copyright (C) 2013,2014 C... | 1,100 | 27.230769 | 71 | h |
null | ceph-main/src/extblkdev/vdo/ExtBlkDevPluginVdo.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
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file src/erasure-code/clay/ErasureCodePluginClay.cc
* Copyright (C)... | 1,559 | 25 | 73 | cc |
null | ceph-main/src/extblkdev/vdo/ExtBlkDevPluginVdo.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph distributed storage system
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file src/erasure-code/clay/ErasureCodePluginClay.h
* Copyright (C) 2018 In... | 1,103 | 30.542857 | 73 | h |
null | ceph-main/src/extblkdev/vdo/ExtBlkDevVdo.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
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file ceph/src/common/blkdev.cc
* Copyright (c) 2015 Hewlett-Packard... | 4,693 | 28.898089 | 100 | cc |
null | ceph-main/src/extblkdev/vdo/ExtBlkDevVdo.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
*
* (C) Copyright IBM Corporation 2022
* Author: Martin Ohmacht <mohmacht@us.ibm.com>
*
* Based on the file ceph/src/common/blkdev.cc
* Copyright (c) 2015 Hewlett-Packard... | 1,741 | 31.867925 | 97 | h |
null | ceph-main/src/global/global_context.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 1,957 | 24.102564 | 70 | cc |
null | ceph-main/src/global/global_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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 1,395 | 24.381818 | 70 | h |
null | ceph-main/src/global/global_init.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 18,241 | 27.68239 | 115 | cc |
null | ceph-main/src/global/global_init.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 2,952 | 27.95098 | 76 | h |
null | ceph-main/src/global/pidfile.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 5,427 | 20.625498 | 74 | cc |
null | ceph-main/src/global/pidfile.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 808 | 26.896552 | 71 | h |
null | ceph-main/src/global/signal_handler.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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 19,070 | 26.128023 | 102 | cc |
null | ceph-main/src/global/signal_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) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 1,758 | 25.651515 | 81 | h |
null | ceph-main/src/global/signal_handler_win32.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,210 | 30.868421 | 82 | cc |
null | ceph-main/src/include/CompatSet.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) 2009 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 Publi... | 8,745 | 29.58042 | 88 | h |
null | ceph-main/src/include/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) 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 ... | 13,026 | 23.304104 | 115 | h |
null | ceph-main/src/include/Distribution.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 ... | 1,418 | 18.175676 | 71 | h |
null | ceph-main/src/include/addr_parsing.h | /*
* addr_parsing.h
*
* Created on: Sep 14, 2010
* Author: gregf
* contains functions used by Ceph to convert named addresses
* (eg ceph.com) into IP addresses (ie 127.0.0.1).
*/
#ifndef ADDR_PARSING_H_
#define ADDR_PARSING_H_
#ifdef __cplusplus
extern "C" {
#endif
int safe_cat(char **pstr, in... | 525 | 17.137931 | 66 | h |
null | ceph-main/src/include/alloc_ptr.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 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 vers... | 2,562 | 26.858696 | 90 | h |
null | ceph-main/src/include/any.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 Adam C. Emerson <aemerson@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... | 21,732 | 29.82695 | 86 | h |
null | ceph-main/src/include/bitmapper.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 ... | 1,099 | 21.44898 | 71 | h |
null | ceph-main/src/include/blobhash.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
/*
* 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 Public
* License version 2... | 1,272 | 22.574074 | 71 | h |
null | ceph-main/src/include/btree_map.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef CEPH_INCLUDE_BTREE_MAP_H
#define CEPH_INCLUDE_BTREE_MAP_H
#include "include/cpp-btree/btree.h"
#include "include/cpp-btree/btree_map.h"
#include "include/ceph_assert.h" // cpp-btree uses system assert, blech
#i... | 1,801 | 25.115942 | 97 | h |
null | ceph-main/src/include/buffer.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... | 35,734 | 26.594595 | 102 | h |
null | ceph-main/src/include/buffer_fwd.h | #ifndef BUFFER_FWD_H
#define BUFFER_FWD_H
namespace ceph {
namespace buffer {
inline namespace v15_2_0 {
class ptr;
class list;
}
class hash;
}
using bufferptr = buffer::ptr;
using bufferlist = buffer::list;
using bufferhash = buffer::hash;
}
#endif
| 288 | 13.45 | 34 | h |
null | ceph-main/src/include/buffer_raw.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 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 vers... | 3,507 | 27.991736 | 119 | h |
null | ceph-main/src/include/byteorder.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
#pragma once
#include <boost/endian/conversion.hpp>
#include "int_types.h"
template<typename T>
inline T swab(T val) {
return boost::endian::endian_reverse(val);
}
template<typename T>
struct ceph_le {
private:
T v;
public:
ceph_le() = de... | 1,137 | 19.321429 | 77 | h |
null | ceph-main/src/include/ceph_assert.h | #ifndef CEPH_ASSERT_H
#define CEPH_ASSERT_H
#include <cstdlib>
#include <string>
#ifndef __STRING
# define __STRING(x) #x
#endif
#if defined(__linux__)
#include <features.h>
#elif defined(__FreeBSD__)
#include <sys/cdefs.h>
#define __GNUC_PREREQ(minor, major) __GNUC_PREREQ__(minor, major)
#elif defined(__sun) || de... | 5,066 | 33.236486 | 126 | h |
null | ceph-main/src/include/ceph_features.h | #ifndef __CEPH_FEATURES
#define __CEPH_FEATURES
#include "sys/types.h"
/*
* Each time we reclaim bits for reuse we need to specify another
* bitmask that, if all bits are set, indicates we have the new
* incarnation of that feature. Base case is 1 (first use)
*/
#define CEPH_FEATURE_INCARNATION_1 (0ull)
#define ... | 11,605 | 40.302491 | 92 | h |
null | ceph-main/src/include/ceph_frag.h | #ifndef FS_CEPH_FRAG_H
#define FS_CEPH_FRAG_H
/*
* "Frags" are a way to describe a subset of a 32-bit number space,
* using a mask and a value to match against that mask. Any given frag
* (subset of the number space) can be partitioned into 2^n sub-frags.
*
* Frags are encoded into a 32-bit word:
* 8 upper bi... | 3,114 | 27.318182 | 73 | h |
null | ceph-main/src/include/ceph_fs.h | /*
* ceph_fs.h - Ceph constants and data types to share between kernel and
* user space.
*
* Most types in this file are defined as little-endian, and are
* primarily intended to describe data structures that pass over the
* wire or that are stored on disk.
*
* LGPL-2.1 or LGPL-3.0
*/
#ifndef CEPH_FS_H
#defin... | 35,052 | 31.516698 | 101 | h |
null | ceph-main/src/include/ceph_fuse.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) 2012 Inktank Storage, Inc.
* Copyright (C) 2014 Red Hat <contact@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it unde... | 1,529 | 28.423077 | 88 | h |
null | ceph-main/src/include/ceph_hash.h | #ifndef FS_CEPH_HASH_H
#define FS_CEPH_HASH_H
#define CEPH_STR_HASH_LINUX 0x1 /* linux dcache hash */
#define CEPH_STR_HASH_RJENKINS 0x2 /* robert jenkins' */
extern unsigned ceph_str_hash_linux(const char *s, unsigned len);
extern unsigned ceph_str_hash_rjenkins(const char *s, unsigned len);
extern unsigne... | 476 | 30.8 | 69 | h |
null | ceph-main/src/include/color.h | #ifndef CEPH_COLOR_H
#define CEPH_COLOR_H
#define TEXT_NORMAL "\033[0m"
/*#define TEXT_HAZARD "\033[5;31m"*/
#define TEXT_RED "\033[0;31m"
#define TEXT_GREEN "\033[0;32m"
#define TEXT_YELLOW "\033[0;33m"
#define TEXT_BLUE "\033[0;34m"
#define TEXT_MAGENTA "\033[0;35m"
#define TEXT_CYAN "\033[0;36m"
#endif
| 309 | 21.142857 | 36 | h |
null | ceph-main/src/include/common_fwd.h | #pragma once
#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
#define TOPNSPC crimson
#else
#define TOPNSPC ceph
#endif
namespace TOPNSPC::common {
class CephContext;
class PerfCounters;
class PerfCountersBuilder;
class PerfCountersCollection;
class PerfCountersCollectionImpl;
class PerfGuard;
class Re... | 898 | 26.242424 | 50 | h |
null | ceph-main/src/include/compact_map.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 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 version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#ifndef CEPH_CO... | 11,062 | 27.809896 | 122 | h |
null | ceph-main/src/include/compact_set.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 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 version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*/
#ifndef CEPH_CO... | 8,630 | 27.205882 | 116 | h |
null | ceph-main/src/include/compat.h | /*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 Stanislav Sedov <stas@FreeBSD.org>
*
* 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.
... | 10,220 | 23.27791 | 91 | h |
null | ceph-main/src/include/coredumpctl.h | #pragma once
#include "acconfig.h"
#ifdef HAVE_SYS_PRCTL_H
#include <iostream>
#include <sys/prctl.h>
#include "common/errno.h"
class PrCtl {
int saved_state = -1;
static int get_dumpable() {
int r = prctl(PR_GET_DUMPABLE);
if (r == -1) {
r = errno;
std::cerr << "warning: unable to get dumpab... | 2,187 | 19.641509 | 78 | h |
null | ceph-main/src/include/counter.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 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 vers... | 1,114 | 18.561404 | 70 | h |
null | ceph-main/src/include/cpp_lib_backport.h | #pragma once
#include <cstring>
#include <type_traits>
namespace std {
#ifndef __cpp_lib_bit_cast
#define __cpp_lib_bit_cast 201806L
/// Create a value of type `To` from the bits of `from`.
template<typename To, typename From>
requires (sizeof(To) == sizeof(From)) &&
std::is_trivially_copyable_v<From> &&
... | 685 | 21.129032 | 56 | h |
null | ceph-main/src/include/crc32c.h | #ifndef CEPH_CRC32C_H
#define CEPH_CRC32C_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef uint32_t (*ceph_crc32c_func_t)(uint32_t crc, unsigned char const *data, unsigned length);
/*
* this is a static global with the chosen crc32c implementation for
* the given architecture.
*/
extern ceph_... | 1,356 | 22.396552 | 97 | h |
null | ceph-main/src/include/demangle.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) 2016 Allen Samuels <allen.samuels@sandisk.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... | 1,146 | 22.408163 | 109 | h |
null | ceph-main/src/include/denc.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) 2016 Allen Samuels <allen.samuels@sandisk.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... | 52,631 | 26.759494 | 97 | h |