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/test/common/test_perf_histogram.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) 2017 OVH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License version 2, as publis...
8,897
34.879032
97
cc
null
ceph-main/src/test/common/test_pretty_binary.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/pretty_binary.h" #include "gtest/gtest.h" TEST(pretty_binary, print) { ASSERT_EQ(pretty_binary_string(std::string("foo\001\002bars")), std::string("'foo'0x0102'bars'")); ASSERT_EQ(pretty_binary_stri...
2,046
39.137255
110
cc
null
ceph-main/src/test/common/test_prioritized_queue.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "gtest/gtest.h" #include "common/PrioritizedQueue.h" #include <numeric> #include <vector> #include <algorithm> #include <random> using std::vector; class PrioritizedQueueTest : public testing::Test { protected...
6,136
28.647343
77
cc
null
ceph-main/src/test/common/test_rabin_chunk.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <vector> #include <cstring> #include <random> #include "include/types.h" #include "include/buffer.h" #include "common/rabin.h" #include "gtest/gtest.h" TEST(Rabin, rabin_hash_simple) { uint64_t expected = 68...
3,706
23.388158
76
cc
null
ceph-main/src/test/common/test_random.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) 2017 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...
6,051
23.502024
87
cc
null
ceph-main/src/test/common/test_safe_io.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <cstring> #include <fcntl.h> #include <unistd.h> #include "common/safe_io.h" #include "gtest/gtest.h" TEST(SafeIO, safe_read_file) { const char *fname = "safe_read_testfile"; ::unlink...
961
24.315789
78
cc
null
ceph-main/src/test/common/test_shared_cache.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * Cheng Cheng <ccheng.leo@gmail.com> * * This progra...
10,749
25.80798
128
cc
null
ceph-main/src/test/common/test_sharedptr_registry.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This program is free software; you can redistribute it an...
9,518
27.758308
140
cc
null
ceph-main/src/test/common/test_shunique_lock.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 General Public * License versio...
13,996
23.300347
77
cc
null
ceph-main/src/test/common/test_sloppy_crc_map.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include "common/SloppyCRCMap.h" #include "common/Formatter.h" #include <gtest/gtest.h> using namespace std; void dump(const SloppyCRCMap& scm) { auto f = Formatter::create_unique("json-pretty"); ...
2,761
22.606838
76
cc
null
ceph-main/src/test/common/test_split.cc
// -*- 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,923
23.366667
74
cc
null
ceph-main/src/test/common/test_static_ptr.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) 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...
5,651
25.046083
85
cc
null
ceph-main/src/test/common/test_str_map.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it ...
2,485
26.622222
97
cc
null
ceph-main/src/test/common/test_tableformatter.cc
#include "gtest/gtest.h" #include "common/Formatter.h" #include <iostream> #include <sstream> #include <string> using namespace ceph; TEST(tableformatter, singleline) { std::stringstream sout; TableFormatter formatter; formatter.dump_int("integer", 10); formatter.dump_float("float", 10.0); formatter.dump_s...
7,420
27.109848
78
cc
null
ceph-main/src/test/common/test_time.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) 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 ...
7,094
29.063559
87
cc
null
ceph-main/src/test/common/test_url_escape.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/url_escape.h" #include "gtest/gtest.h" TEST(url_escape, escape) { ASSERT_EQ(url_escape("foo bar"), std::string("foo%20bar")); ASSERT_EQ(url_escape("foo\nbar"), std::string("foo%0abar")); } TEST(url...
1,134
29.675676
70
cc
null
ceph-main/src/test/common/test_util.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 General Public * License versio...
1,025
22.860465
71
cc
null
ceph-main/src/test/common/test_weighted_priority_queue.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "gtest/gtest.h" #include "common/Formatter.h" #include "common/WeightedPriorityQueue.h" #include <numeric> #include <vector> #include <map> #include <list> #include <tuple> #define CEPH_OP_CLASS_STRICT 0 #defin...
7,795
31.348548
76
cc
null
ceph-main/src/test/common/test_xmlformatter.cc
#include "gtest/gtest.h" #include "common/Formatter.h" #include <sstream> #include <string> using namespace ceph; TEST(xmlformatter, oneline) { std::stringstream sout; XMLFormatter formatter; formatter.dump_int("integer", 10); formatter.dump_float("float", 10.0); formatter.dump_string("string", "string")...
4,221
24.433735
84
cc
null
ceph-main/src/test/compressor/compressor_example.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,442
25.722222
139
h
null
ceph-main/src/test/compressor/compressor_plugin_example.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) 2015 Mirantis, Inc. * * Author: Alyona Kiseleva <akiselyova@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it unde...
1,555
24.933333
80
cc
null
ceph-main/src/test/compressor/test_compression.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) 2015 Mirantis, Inc. * * Author: Alyona Kiseleva <akiselyova@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under...
17,393
27.375204
109
cc
null
ceph-main/src/test/compressor/osdmaps/osdmap.2982809.h
unsigned char osdmap_a[] = { 0x8,0x7,0xdf,0x56,0x9,0x0,0x7,0x1,0x91,0x47,0x5,0x0,0xb4,0xf4,0x63,0xa0, 0xc6,0x71,0x43,0xa8,0xbd,0x36,0xe4,0xa,0xb8,0xd2,0x33,0xd2,0x99,0x83,0x2d,0x0, 0x6d,0x34,0x16,0x52,0xe8,0x59,0x97,0x1c,0xa,0x4d,0x4e,0x5e,0x13,0x5c,0x3b,0x35, 0x4,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1b,0x5,0x...
2,692,799
69.385279
80
h
null
ceph-main/src/test/crimson/gtest_seastar.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdlib> #include <iostream> #include "include/ceph_assert.h" #include "gtest_seastar.h" #include "common/ceph_argparse.h" #include "crimson/common/config_proxy.h" #include "crimson/common/perf_counters_collec...
1,903
27.848485
80
cc
null
ceph-main/src/test/crimson/gtest_seastar.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "gtest/gtest.h" #include "seastar_runner.h" struct seastar_test_suite_t : public ::testing::Test { static SeastarRunner seastar_env; template <typename Func> void run(Func &&func) { ret...
856
22.805556
70
h
null
ceph-main/src/test/crimson/seastar_runner.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <stdio.h> #include <signal.h> #include <thread> #include <seastar/core/app-template.hh> #include <seastar/core/future-util.hh> #include <seastar/core/reactor.hh> #include <seastar/core/alien.hh> #i...
2,398
22.291262
72
h
null
ceph-main/src/test/crimson/test_alien_echo.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- #include "auth/Auth.h" #include "messages/MPing.h" #include "common/ceph_argparse.h" #include "crimson/auth/DummyAuth.h" #include "crimson/common/throttle.h" #include "crimson/net/Connection.h" #include "crimson/net/Dispatcher.h" #include "crimso...
9,806
32.244068
92
cc
null
ceph-main/src/test/crimson/test_alienstore_thread_pool.cc
#include <chrono> #include <iostream> #include <numeric> #include <seastar/core/app-template.hh> #include "common/ceph_argparse.h" #include "crimson/common/config_proxy.h" #include "crimson/os/alienstore/thread_pool.h" #include "include/msgr.h" using namespace std::chrono_literals; using ThreadPool = crimson::os::Thre...
2,373
29.050633
110
cc
null
ceph-main/src/test/crimson/test_async_echo.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include "auth/Auth.h" #include "global/global_init.h" #include "messages/MPing.h" #include "msg/Dispatcher.h" #include "msg/Messenger.h" #include "...
7,051
29.008511
94
cc
null
ceph-main/src/test/crimson/test_backfill.cc
#include <algorithm> #include <cstdlib> #include <deque> #include <functional> #include <initializer_list> #include <iostream> #include <iterator> #include <limits> #include <map> #include <set> #include <string> #include <boost/statechart/event_base.hpp> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "co...
14,609
28.103586
95
cc
null
ceph-main/src/test/crimson/test_buffer.cc
#include <iostream> #include <seastar/core/app-template.hh> #include <seastar/core/future-util.hh> #include <seastar/core/reactor.hh> #include "include/buffer.h" // allocate a foreign buffer on each cpu, collect them all into a bufferlist, // and destruct it on this cpu seastar::future<> test_foreign_bufferlist() { ...
1,534
29.098039
82
cc
null
ceph-main/src/test/crimson/test_config.cc
#include <chrono> #include <string> #include <numeric> #include <seastar/core/app-template.hh> #include <seastar/core/sharded.hh> #include "common/ceph_argparse.h" #include "common/config_obs.h" #include "crimson/common/config_proxy.h" using namespace std::literals; using Config = crimson::common::ConfigProxy; const s...
3,436
30.245455
87
cc
null
ceph-main/src/test/crimson/test_denc.cc
#include <string> #include <seastar/core/temporary_buffer.hh> #include <gtest/gtest.h> #include "include/denc.h" #include "common/buffer_seastar.h" using temporary_buffer = seastar::temporary_buffer<char>; using buffer_iterator = seastar_buffer_iterator; using const_buffer_iterator = const_seastar_buffer_iterator; te...
1,119
19.740741
60
cc
null
ceph-main/src/test/crimson/test_errorator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <boost/iterator/counting_iterator.hpp> #include <numeric> #include "test/crimson/gtest_seastar.h" #include "crimson/common/errorator.h" #include "crimson/common/errorator-loop.h" #include "crimson/common/log....
2,732
26.33
74
cc
null
ceph-main/src/test/crimson/test_fixed_kv_node_layout.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <stdio.h> #include <iostream> #include "gtest/gtest.h" #include "crimson/common/fixed_kv_node_layout.h" using namespace crimson; using namespace crimson::common; struct test_val_t { uint32_t t1 = 0; int32...
9,711
24.761273
81
cc
null
ceph-main/src/test/crimson/test_interruptible_future.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <seastar/core/sleep.hh> #include "test/crimson/gtest_seastar.h" #include "crimson/common/interruptible_future.h" #include "crimson/common/log.h" using namespace crimson; class test_interruption : public std::...
9,561
30.662252
89
cc
null
ceph-main/src/test/crimson/test_lru.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * Cheng Cheng <ccheng.leo@gmail.com> * * This progra...
5,213
23.364486
161
cc
null
ceph-main/src/test/crimson/test_messenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/ceph_argparse.h" #include "common/ceph_time.h" #include "messages/MPing.h" #include "messages/MCommand.h" #include "messages/MCommandReply.h" #include "messages/MOSDOp.h" #include "messages/MOSDOpReply.h"...
130,632
33.92861
102
cc
null
ceph-main/src/test/crimson/test_messenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/msg_types.h" namespace ceph::net::test { constexpr uint64_t CMD_CLI_NONCE = 1; constexpr int64_t CMD_CLI_OSD = 1; constexpr uint64_t TEST_NONCE = 2; constexpr int64_t TEST_OSD = 2; constexpr ...
2,397
23.979167
76
h
null
ceph-main/src/test/crimson/test_messenger_peer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- #include <boost/pointer_cast.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include "auth/DummyAuth.h" #include "common/dout.h" #include "global/global_init.h" #include "messages/MPing.h" #i...
15,161
31.7473
92
cc
null
ceph-main/src/test/crimson/test_messenger_thrash.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <map> #include <random> #include <fmt/format.h> #include <fmt/ostream.h> #include <seastar/core/app-template.hh> #include <seastar/core/do_with.hh> #include <seastar/core/future-util.hh> #include <seastar/core/re...
21,085
30.471642
86
cc
null
ceph-main/src/test/crimson/test_monc.cc
#include <seastar/core/app-template.hh> #include "common/ceph_argparse.h" #include "crimson/common/auth_handler.h" #include "crimson/common/config_proxy.h" #include "crimson/mon/MonClient.h" #include "crimson/net/Connection.h" #include "crimson/net/Messenger.h" using Config = crimson::common::ConfigProxy; using MonCli...
2,474
28.117647
88
cc
null
ceph-main/src/test/crimson/test_perfcounters.cc
#include <pthread.h> #include <stdlib.h> #include <iostream> #include <fmt/format.h> #include "common/Formatter.h" #include "common/perf_counters.h" #include "crimson/common/perf_counters_collection.h" #include <seastar/core/app-template.hh> #include <seastar/core/sharded.hh> enum { PERFTEST_FIRST = 1000000, PER...
1,836
28.15873
86
cc
null
ceph-main/src/test/crimson/test_socket.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/ceph_argparse.h" #include <fmt/os.h> #include <seastar/core/app-template.hh> #include <seastar/core/gate.hh> #include <seastar/core/sharded.hh> #include <seastar/core/sleep.hh> #include <seastar/core/when...
18,961
33.104317
92
cc
null
ceph-main/src/test/crimson/seastore/test_block.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/seastore/test_block.h" namespace crimson::os::seastore { ceph::bufferlist TestBlock::get_delta() { ceph::bufferlist bl; encode(delta, bl); return bl; } void TestBlock::apply_delta(const c...
860
19.5
70
cc
null
ceph-main/src/test/crimson/seastore/test_block.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <random> #include "crimson/os/seastore/transaction_manager.h" namespace crimson::os::seastore { struct test_extent_desc_t { size_t len = 0; unsigned checksum = 0; bool operator==(const tes...
4,252
26.43871
105
h
null
ceph-main/src/test/crimson/seastore/test_btree_lba_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include "crimson/common/log.h" #include "crimson/os/seastore/journal.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/segment_manager/ephemeral.h" #include...
19,787
25.348868
87
cc
null
ceph-main/src/test/crimson/seastore/test_cbjournal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include <random> #include "crimson/common/log.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/journal.h" #include "crimson/os/seastore/journal/cir...
14,649
27.391473
86
cc
null
ceph-main/src/test/crimson/seastore/test_collection_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "os/ObjectStore.h" #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/transaction_manag...
5,293
27.31016
74
cc
null
ceph-main/src/test/crimson/seastore/test_extent_allocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <random> #include <boost/iterator/counting_iterator.hpp> #include "test/crimson/gtest_seastar.h" #include "crimson/os/seastore/random_block_manager.h" #include "crimson/os/seastore/random_block_manager/extent_a...
5,261
27.912088
79
cc
null
ceph-main/src/test/crimson/seastore/test_object_data_handler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/seastore/onode.h" #include "crimson/os/seastore/object_data_handler.h" using namespace crims...
10,080
23.117225
80
cc
null
ceph-main/src/test/crimson/seastore/test_omap_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/...
18,451
24.556787
72
cc
null
ceph-main/src/test/crimson/seastore/test_randomblock_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include <random> #include "crimson/common/log.h" #include "crimson/os/seastore/random_block_manager/block_rb_manager.h" #include "crimson/os/seastore/random_block_manager/rbm_dev...
4,355
23.335196
78
cc
null
ceph-main/src/test/crimson/seastore/test_seastore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include <iostream> #include <sstream> #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/futurized_collection.h" #include "...
31,870
26.10119
85
cc
null
ceph-main/src/test/crimson/seastore/test_seastore_cache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include "crimson/common/log.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/segment_manager/ephemeral.h" #include "test/crimson/seastore/test_block.h" us...
7,390
27.318008
94
cc
null
ceph-main/src/test/crimson/seastore/test_seastore_journal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/crimson/gtest_seastar.h" #include <random> #include "crimson/common/log.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/journal.h" #include "crimson/os/seastore/segment_man...
9,357
26.203488
87
cc
null
ceph-main/src/test/crimson/seastore/test_transaction_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <random> #include <boost/iterator/counting_iterator.hpp> #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/seastore/cache.h" #includ...
58,950
28.416667
92
cc
null
ceph-main/src/test/crimson/seastore/transaction_manager_test_state.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <random> #include <boost/iterator/counting_iterator.hpp> #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/extent_placement_manager.h" #include "crimson/os/seastore/logging.h" #i...
12,787
28.063636
84
h
null
ceph-main/src/test/crimson/seastore/nvmedevice/test_nvmedevice.cc
//-*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/buffer.h" #include "crimson/os/seastore/random_block_manager/rbm_device.h" #include "crimson/os/seastore/random_block_manager/nvme_block_device.h" #include "test/crimson/gtest_seastar.h" #include "include...
2,936
26.707547
78
cc
null
ceph-main/src/test/crimson/seastore/onode_tree/test_fltree_onode_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <boost/range/combine.hpp> #include "test/crimson/gtest_seastar.h" #include "test/crimson/seastore/transaction_manager_test_state.h" #include "crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_mana...
9,287
28.207547
95
cc
null
ceph-main/src/test/crimson/seastore/onode_tree/test_staged_fltree.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <array> #include <cstring> #include <memory> #include <set> #include <sstream> #include <vector> #include "crimson/common/log.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node.h" #include "crim...
74,510
40.766256
103
cc
null
ceph-main/src/test/crimson/seastore/onode_tree/test_value.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <fmt/format.h> #include "crimson/common/log.h" #include "crimson/os/seastore/onode_manager/staged-fltree/value.h" namespace crimson::os::seastore::onode { struct test_item_t { using id_t = ui...
7,324
29.394191
103
h
null
ceph-main/src/test/crush/CrushWrapper.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) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This p...
42,266
27.969842
128
cc
null
ceph-main/src/test/crush/crush.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) 2013 Inktank <info@inktank.com> * * LGPL-2.1 (see COPYING-LGPL2.1) or later */ #include <gtest/gtest.h> #include <iostream> #include <memory> #include <...
17,605
25.635401
107
cc
null
ceph-main/src/test/crush/crush_weights.sh
#!/usr/bin/env bash source $(dirname $0)/../detect-build-env-vars.sh if [ `uname` = FreeBSD ]; then SED=gsed else SED=sed fi read -r -d '' cm <<'EOF' # devices device 0 device0 device 1 device1 device 2 device2 device 3 device3 device 4 device4 # types type 0 osd type 1 domain type 2 pool # buckets domain ro...
1,507
23.721311
109
sh
null
ceph-main/src/test/debian-strech/install-deps.sh
../../../install-deps.sh
24
24
24
sh
null
ceph-main/src/test/direct_messenger/DirectMessenger.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) 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...
6,907
26.304348
96
cc
null
ceph-main/src/test/direct_messenger/DirectMessenger.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...
3,186
31.191919
77
h
null
ceph-main/src/test/direct_messenger/DispatchStrategy.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 CohortFS, LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
906
22.868421
70
h
null
ceph-main/src/test/direct_messenger/FastStrategy.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 CohortFS, LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
900
24.027778
70
h
null
ceph-main/src/test/direct_messenger/QueueStrategy.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 CohortFS, LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
2,295
20.259259
70
cc
null
ceph-main/src/test/direct_messenger/QueueStrategy.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 CohortFS, LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
1,597
23.96875
70
h
null
ceph-main/src/test/direct_messenger/test_direct_messenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <condition_variable> #include <mutex> #include <thread> #include <gtest/gtest.h> #include "global/global_init.h" #include "common/ceph_argparse.h" #include "DirectMessenger.h" #include "FastStrategy.h" #includ...
13,475
29.837529
79
cc
null
ceph-main/src/test/dokan/dokan.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...
24,051
30.15544
80
cc
null
ceph-main/src/test/encoding/check-generated.sh
#!/usr/bin/env bash set -e source $(dirname $0)/../detect-build-env-vars.sh source $CEPH_ROOT/qa/standalone/ceph-helpers.sh dir=$1 tmp1=`mktemp /tmp/typ-XXXXXXXXX` tmp2=`mktemp /tmp/typ-XXXXXXXXX` tmp3=`mktemp /tmp/typ-XXXXXXXXX` tmp4=`mktemp /tmp/typ-XXXXXXXXX` failed=0 numtests=0 echo "checking ceph-dencoder gene...
3,335
31.705882
111
sh
null
ceph-main/src/test/encoding/generate-corpus-objects.sh
#!/usr/bin/env bash set -ex BDIR=`pwd` p=$1 echo path $p test ! -d $p mkdir $p strings bin/ceph-osd | grep "^$p/%s__%d.%x" v=`git describe | cut -c 2-` echo version $v echo 'binaries look ok, vstarting' echo MON=3 MDS=3 OSD=5 MDS=3 MGR=2 RGW=1 ../src/vstart.sh -x -n -l --bluestore -e export PATH=bin:$PATH # do s...
1,105
17.433333
76
sh
null
ceph-main/src/test/encoding/identity.sh
#!/bin/sh -e dir=$1 set -e tmp1=`mktemp /tmp/typ-XXXXXXXXX` tmp2=`mktemp /tmp/typ-XXXXXXXXX` for type in `ls $dir` do if ./ceph-dencoder type $type 2>/dev/null; then echo "type $type" for o in `ls $dir/$type`; do f="$dir/$type/$o" echo "\t$f" ./ceph-dencoder type $type import $f ...
664
19.151515
87
sh
null
ceph-main/src/test/encoding/import-generated.sh
#!/bin/sh -e archive=$1 [ -d "$archive" ] || echo "usage: $0 <archive>" ver=`bin/ceph-dencoder version` echo "version $ver" [ -d "$archive/$ver" ] || mkdir "$archive/$ver" tmp1=`mktemp /tmp/typ-XXXXXXXXX` echo "numgen\ttype" for type in `bin/ceph-dencoder list_types`; do [ -d "$archive/$ver/objects/$type" ] ...
716
22.129032
85
sh
null
ceph-main/src/test/encoding/import.sh
#!/bin/sh -e src=$1 ver=$2 archive=$3 [ -d "$archive" ] && [ -d "$src" ] || echo "usage: $0 <srcdir> <version> <archive>" [ -d "$archive/$ver" ] || mkdir "$archive/$ver" dest_dir="$archive/$ver/objects" [ -d "$dest_dir" ] || mkdir "$dest_dir" for f in `find $src -type f` do n=`basename $f` type=`echo $n |...
497
19.75
83
sh
null
ceph-main/src/test/encoding/readable.sh
#!/usr/bin/env bash set -e source $(dirname $0)/../detect-build-env-vars.sh [ -z "$CEPH_ROOT" ] && CEPH_ROOT=.. dir=$CEPH_ROOT/ceph-object-corpus failed=0 numtests=0 pids="" if [ -x ./ceph-dencoder ]; then CEPH_DENCODER=./ceph-dencoder else CEPH_DENCODER=ceph-dencoder fi myversion=`$CEPH_DENCODER version` DEB...
7,056
28.161157
113
sh
null
ceph-main/src/test/erasure-code/ErasureCodeExample.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 ...
5,876
28.984694
78
h
null
ceph-main/src/test/erasure-code/ErasureCodePluginExample.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 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
1,376
28.934783
78
cc
null
ceph-main/src/test/erasure-code/ErasureCodePluginFailToInitialize.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 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
791
28.333333
77
cc
null
ceph-main/src/test/erasure-code/ErasureCodePluginFailToRegister.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 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
767
28.538462
77
cc
null
ceph-main/src/test/erasure-code/ErasureCodePluginHangs.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 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
800
27.607143
77
cc
null
ceph-main/src/test/erasure-code/ErasureCodePluginMissingEntryPoint.cc
#include "ceph_ver.h" // missing int __erasure_code_init(char *plugin_name, char *directory) {} extern "C" const char *__erasure_code_version() { return CEPH_GIT_NICE_VER; }
177
24.428571
77
cc
null
ceph-main/src/test/erasure-code/ErasureCodePluginMissingVersion.cc
// missing __erasure_code_version int __this_is_an_used_variable_to_avoid_warnings;
85
20.5
49
cc
null
ceph-main/src/test/erasure-code/TestErasureCode.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 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it and/or * modify it u...
5,710
32.594118
86
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeClay.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) 2018 Indian Institute of Science <office.ece@iisc.ac.in> * * Author: Myna Vajha <mynaramana@gmail.com> * * This library is free software; you can redistribute...
20,469
33.288107
97
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeExample.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 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it and/or ...
7,018
27.188755
85
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeIsa.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2014 CERN (Switzerland) * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch> * Author: Loic Dachary <loic@dachary....
31,936
31.992769
130
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeJerasure.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...
11,003
28.660377
85
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeLrc.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 ...
29,144
30.474082
98
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePlugin.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...
4,366
32.083333
80
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePluginClay.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) 2018 Indian Institute of Science <office.ece@iisc.ac.in> * * Author: Myna Vajha <mynaramana@gmail.com> * * This library is free software; you can redistribute ...
3,539
29.782609
86
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePluginIsa.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 ...
1,815
27.825397
78
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePluginJerasure.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 lib...
2,122
28.486111
78
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePluginLrc.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 ...
1,539
29.196078
78
cc
null
ceph-main/src/test/erasure-code/TestErasureCodePluginShec.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) 2015 FUJITSU LIMITED * * Author: Shotaro Kawaguchi <kawaguchi.s@jp.fujitsu.com> * Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com> * Author: Takeshi Miyam...
1,977
28.969697
78
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeShec.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,2015 FUJITSU LIMITED * * Author: Shotaro Kawaguchi <kawaguchi.s@jp.fujitsu.com> * Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com> * Author: ...
76,300
26.018768
89
cc