repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/common/function_signature.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Copied from: * https://github.com/exclipy/inline_variant_visitor/blob/master/function_signature.hpp * which apparently copied it from * http://stackoverflow.com/questions/4771417/how-to-get-the-signature-of-a-c-bi...
1,474
29.729167
93
h
null
ceph-main/src/common/hex.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...
630
23.269231
70
h
null
ceph-main/src/common/histogram.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 * * 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 Softw...
2,973
22.054264
83
h
null
ceph-main/src/common/hobject.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,472
25.110465
83
h
null
ceph-main/src/common/hobject_fmt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file fmtlib formatters for some hobject.h classes */ #include <fmt/format.h> #include <fmt/ranges.h> #include "common/hobject.h" #include "include/object_fmt.h" #include "msg/msg_fmt.h" // \todo re...
1,398
24.907407
88
h
null
ceph-main/src/common/hostname.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...
601
25.173913
70
h
null
ceph-main/src/common/inline_variant.h
// -*- mode:C++; tab-width:8; c-basic-offset:4; indent-tabs-mode:t -*- // vim: ts=8 sw=4 smarttab /* * Copied from: * https://github.com/exclipy/inline_variant_visitor/blob/master/inline_variant.hpp */ #ifndef INLINE_VARIANT_H #define INLINE_VARIANT_H #include <boost/function_types/function_arity.hpp> #include <bo...
7,222
33.070755
118
h
null
ceph-main/src/common/interval_map.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 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....
7,720
25.624138
81
h
null
ceph-main/src/common/intrusive_lru.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/intrusive/set.hpp> #include <boost/intrusive/list.hpp> namespace ceph::common { /** * intrusive_lru: lru implementation with embedded map and list hook ...
6,208
24.342857
76
h
null
ceph-main/src/common/iso_8601.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_COMMON_ISO_8601_H #define CEPH_COMMON_ISO_8601_H #include <string_view> #include <boost/optional.hpp> #include "common/ceph_time.h" namespace ceph { // Here, we support the W3C profile of ISO 8601 with th...
1,803
33.037736
103
h
null
ceph-main/src/common/likely.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) 2010 Dreamhost * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version ...
714
21.34375
70
h
null
ceph-main/src/common/lockdep.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) 2008-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 * Lic...
1,442
27.86
79
h
null
ceph-main/src/common/lru_map.h
#ifndef CEPH_LRU_MAP_H #define CEPH_LRU_MAP_H #include "common/ceph_mutex.h" template <class K, class V> class lru_map { struct entry { V value; typename std::list<K>::iterator lru_iter; }; std::map<K, entry> entries; std::list<K> entries_lru; ceph::mutex lock = ceph::make_mutex("lru_map::lock"); ...
2,813
20.157895
79
h
null
ceph-main/src/common/mClockPriorityQueue.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 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...
8,645
22.367568
83
h
null
ceph-main/src/common/mime.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,732
29.403509
77
h
null
ceph-main/src/common/module.c
/* * Ceph - scalable distributed file system * * Copyright (C) 2014 Inktank Storage, 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. * */ #incl...
2,084
20.71875
69
c
null
ceph-main/src/common/mutex_debug.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...
4,859
22.142857
96
h
null
ceph-main/src/common/numa.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <include/compat.h> #include <sched.h> #include <ostream> #include <set> int parse_cpu_set_list(const char *s, size_t *cpu_set_size, cpu_set_t *cpu_set); std::string cpu_set_to_str...
634
24.4
70
h
null
ceph-main/src/common/obj_bencher.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 Public...
4,670
34.386364
125
h
null
ceph-main/src/common/openssl_opts_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) 2020 Huawei Technologies Co., Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
633
24.36
70
h
null
ceph-main/src/common/options.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <chrono> #include <string> #include <variant> #include <vector> #include "include/str_list.h" #include "msg/msg_types.h" #include "include/uuid.h" struct Option { enum type_t { TYPE_UINT = 0,...
11,502
26.065882
86
h
null
ceph-main/src/common/ostream_temp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <sstream> typedef enum { CLOG_DEBUG = 0, CLOG_INFO = 1, CLOG_SEC = 2, CLOG_WARN = 3, CLOG_ERROR = 4, CLOG_UNKNOWN = -1, } clog_type; class OstreamTemp { public: class OstreamTempSink...
1,379
23.210526
70
h
null
ceph-main/src/common/perf_counters.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 * Copyright (C) 2017 OVH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
11,376
28.550649
96
h
null
ceph-main/src/common/perf_counters_collection.h
#pragma once #include "common/perf_counters.h" #include "common/ceph_mutex.h" #include "include/common_fwd.h" namespace ceph::common { class PerfCountersCollection { CephContext *m_cct; /** Protects perf_impl->m_loggers */ mutable ceph::mutex m_lock; PerfCountersCollectionImpl perf_impl; public: PerfCounte...
1,351
29.044444
103
h
null
ceph-main/src/common/perf_counters_key.h
#pragma once #include <optional> #include <string> #include <utility> namespace ceph::perf_counters { /// A key/value pair representing a perf counter label using label_pair = std::pair<std::string_view, std::string_view>; /// \brief Construct a key for a perf counter and set of labels. /// /// Returns a string of...
4,245
29.328571
76
h
null
ceph-main/src/common/perf_histogram.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 OVH * * 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, a...
7,206
30.609649
80
h
null
ceph-main/src/common/pick_address.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_PICK_ADDRESS_H #define CEPH_PICK_ADDRESS_H #include <string> #include <list> #include "include/common_fwd.h" struct entity_addr_t; class entity_addrvec_t; #define CEPH_PICK_ADDRESS_PUBLIC 0x01 #defin...
3,094
30.262626
97
h
null
ceph-main/src/common/ppc-opcode.h
/* * Copyright (C) 2015 Anton Blanchard <anton@au.ibm.com>, IBM * * This program is free software; you can redistribute it and/or * modify it under the terms of either: * * a) the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) ...
2,567
37.909091
71
h
null
ceph-main/src/common/pretty_binary.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> template<typename S> static std::string pretty_binary_string(const S& bin) { std::string pretty; if (bin.empty()) return pretty; pretty.reserve(bin.length() * 3); auto printabl...
1,561
21.970588
74
h
null
ceph-main/src/common/random_string.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net> * Copyright (C) 2015 Yehuda Sadeh <yehuda@redhat.com> * * This is free software; you can redistribute it ...
1,473
39.944444
84
h
null
ceph-main/src/common/ref.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef COMMON_REF_H #define COMMON_REF_H #include <boost/intrusive_ptr.hpp> namespace ceph { template<typename T> using ref_t = boost::intrusive_ptr<T>; template<typename T> using cref_t = boost::intrusive_ptr<const T>...
1,032
28.514286
95
h
null
ceph-main/src/common/reverse.c
// -*- 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...
1,311
29.511628
89
c
null
ceph-main/src/common/reverse.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 ...
691
20.625
71
h
null
ceph-main/src/common/run_cmd.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 ...
865
24.470588
77
h
null
ceph-main/src/common/safe_io.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,482
28.915663
79
h
null
ceph-main/src/common/scrub_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_SCRUB_TYPES_H #define CEPH_SCRUB_TYPES_H #include "osd/osd_types.h" // wrappers around scrub types to offer the necessary bits other than // the minimal set that the lirados requires struct object_id_wrappe...
6,175
28.270142
92
h
null
ceph-main/src/common/secret.c
// -*- 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,024
22.275862
82
c
null
ceph-main/src/common/shunique_lock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_COMMON_SHUNIQUE_LOCK_H #define CEPH_COMMON_SHUNIQUE_LOCK_H #include <mutex> #include <shared_mutex> #include <system_error> namespace ceph { // This is a 'lock' class in the style of shared_lock and // uniq...
10,608
25.926396
77
h
null
ceph-main/src/common/signal.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,410
31.813953
78
h
null
ceph-main/src/common/snap_types.h
#ifndef __CEPH_SNAP_TYPES_H #define __CEPH_SNAP_TYPES_H #include "include/types.h" #include "include/utime.h" #include "include/fs_types.h" namespace ceph { class Formatter; } struct SnapRealmInfo { mutable ceph_mds_snap_realm h; std::vector<snapid_t> my_snaps; std::vector<snapid_t> prior_parent_snaps; // bef...
3,395
29.321429
99
h
null
ceph-main/src/common/split.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,899
25.851852
74
h
null
ceph-main/src/common/static_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...
10,890
30.845029
81
h
null
ceph-main/src/common/strescape.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) 2021 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...
923
23.315789
94
h
null
ceph-main/src/common/strtol.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 ...
3,318
28.371681
82
h
null
ceph-main/src/common/subsys.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...
2,947
25.8
78
h
null
ceph-main/src/common/subsys_types.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,094
22.806818
70
h
null
ceph-main/src/common/sync_filesystem.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,314
22.070175
76
h
null
ceph-main/src/common/tracer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "acconfig.h" #include "include/buffer.h" #ifdef HAVE_JAEGER #include "opentelemetry/trace/provider.h" using jspan = opentelemetry::nostd::shared_ptr<opentelemetry::trace::Span>; using jspan_contex...
3,503
31.444444
112
h
null
ceph-main/src/common/utf8.c
// -*- 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 ...
6,560
26.800847
79
c
null
ceph-main/src/common/utf8.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,754
25.19403
73
h
null
ceph-main/src/common/valgrind.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_VALGRIND_H #define CEPH_VALGRIND_H #include "acconfig.h" #if defined(HAVE_VALGRIND_HELGRIND_H) && !defined(NDEBUG) #include <valgrind/helgrind.h> #else #define ANNOTATE_HAPPENS_AFTER(x) (voi...
544
26.25
72
h
null
ceph-main/src/common/version.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 ...
940
25.138889
70
h
null
ceph-main/src/common/weighted_shuffle.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 <iterator> #include <random> template <class RandomIt, class DistIt, class URBG> void weighted_shuffle(RandomIt first, RandomIt last, DistIt weight_first, DistIt weight...
692
25.653846
79
h
null
ceph-main/src/common/zipkin_trace.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef COMMON_ZIPKIN_TRACE_H #define COMMON_ZIPKIN_TRACE_H #include "acconfig.h" #include "include/encoding.h" #ifdef WITH_BLKIN #include <ztracer.hpp> #else // !WITH_BLKIN // add stubs for noop Trace and Endpoint /...
2,365
24.170213
85
h
null
ceph-main/src/common/async/bind_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,292
28.401786
86
h
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/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.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/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/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/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.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.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.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/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.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.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/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/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.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/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/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/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/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.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.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.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.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.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