Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
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/cbt/radosbench_4K_read.yaml
meta: - desc: | Run radosbench benchmark using cbt. 4K read workload. tasks: - cbt: benchmarks: radosbench: concurrent_ops: 16 concurrent_procs: 2 op_size: [4096] pool_profile: 'replicated' read_time: 30 read_only: true readmode: 'rand' pr...
915
23.756757
59
yaml
null
ceph-main/src/test/crimson/cbt/radosbench_4K_write.yaml
meta: - desc: | Run radosbench benchmark using cbt. 4K write workload. tasks: - cbt: benchmarks: radosbench: concurrent_ops: 16 concurrent_procs: 2 op_size: [4096] pool_profile: 'replicated' write_time: 3 write_only: true acceptable: ban...
868
23.828571
59
yaml
null
ceph-main/src/test/crimson/cbt/t2c.py
#!/usr/bin/env python3 from __future__ import print_function import argparse import os import os.path import socket import sys import yaml class Translator(object): def __init__(self, build_dir): self.build_dir = build_dir def translate(self, config): cluster = config.get('cluster', {}) ...
2,843
35
89
py
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
null
ceph-main/src/test/erasure-code/TestErasureCodeShec_all.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: ...
9,076
26.258258
89
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeShec_arguments.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) 2015 FUJITSU LIMITED * * Author: Shotaro Kawaguchi <kawaguchi.s@jp.fujitsu.com> * Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com> * Author: Takes...
11,876
31.013477
96
cc
null
ceph-main/src/test/erasure-code/TestErasureCodeShec_thread.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: ...
5,809
25.409091
90
cc
null
ceph-main/src/test/erasure-code/ceph_erasure_code_benchmark.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...
10,659
29.028169
94
cc
null
ceph-main/src/test/erasure-code/ceph_erasure_code_benchmark.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 lib...
1,482
22.539683
74
h
null
ceph-main/src/test/erasure-code/ceph_erasure_code_non_regression.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Red Hat (C) 2014, 2015 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it and/or * modify ...
9,521
28.030488
101
cc
null
ceph-main/src/test/exporter/test_exporter.cc
#include "gtest/gtest.h" #include "exporter/util.h" #include <string> #include <vector> #include <utility> // 17.2.6's memento mori: // This data was gathered from the python implementation of the promethize method // where we transform the path of a counter to a valid prometheus name. static std::vector<std::pair<st...
43,530
64.46015
106
cc
null
ceph-main/src/test/fedora-33/install-deps.sh
../../../install-deps.sh
24
24
24
sh
null
ceph-main/src/test/fio/README.md
FIO === Ceph uses the fio workload generator and benchmarking utility. (https://github.com/axboe/fio.git) FIO tool is automatically fetched to build/src/fio, and build if necessary. RBD --- The fio engine for rbd is located in the fio tree itself, so you'll need to build it from source. If you install the ceph lib...
3,284
27.076923
128
md
null
ceph-main/src/test/fio/fio_ceph_messenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * CEPH messenger engine * * FIO engine which uses ceph messenger as a transport. See corresponding * FIO client and server jobs for details. */ #include "global/global_init.h" #include "msg/Messenger.h" #inclu...
18,120
24.850214
119
cc
null
ceph-main/src/test/fio/fio_ceph_objectstore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph ObjectStore engine * * IO engine using Ceph's ObjectStore class to test low-level performance of * Ceph OSDs. * */ #include <memory> #include <system_error> #include <vector> #include <fstream> #include ...
29,440
30.220573
92
cc
null
ceph-main/src/test/fio/fio_librgw.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2020 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 ver...
15,229
27.151571
82
cc
null
ceph-main/src/test/fio/ring_buffer.h
/* * Very simple and fast lockless ring buffer implementatation for * one producer and one consumer. */ #include <stdint.h> #include <stddef.h> /* Do not overcomplicate, choose generic x86 case */ #define L1_CACHE_BYTES 64 #define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES))) struct ring_buffer...
2,420
22.504854
80
h
null
ceph-main/src/test/fs/mds_types.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 Red Hat * * Author: Greg Farnum <greg@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GN...
5,344
20.126482
70
cc
null
ceph-main/src/test/fs/test_ino_release_cb.cc
#include <string> #include <unistd.h> #include <include/fs_types.h> #include <mds/mdstypes.h> #include <include/cephfs/libcephfs.h> #define MAX_CEPH_FILES 1000 #define DIRNAME "ino_release_cb" using namespace std; static std::atomic<bool> cb_done = false; static void cb(void *hdl, vinodeno_t vino) { cb_done = tru...
1,785
20.011765
70
cc
null
ceph-main/src/test/fs/test_trim_caps.cc
#define _FILE_OFFSET_BITS 64 #if defined(__linux__) #include <features.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <fcntl.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <assert.h> #include <unistd.h> #include <include/cephfs/libcephfs.h>...
1,739
19.232558
56
cc
null
ceph-main/src/test/immutable_object_cache/MockCacheDaemon.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef IMMUTABLE_OBJECT_CACHE_MOCK_DAEMON #define IMMUTABLE_OBJECT_CACHE_MOCK_DAEMON #include <iostream> #include <unistd.h> #include "gmock/gmock.h" #include "include/Context.h" #include "tools/immutable_object_cache...
1,237
25.913043
77
h
null
ceph-main/src/test/immutable_object_cache/test_DomainSocket.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include <unistd.h> #include "gtest/gtest.h" #include "include/Context.h" #include "global/global_init.h" #include "global/global_context.h" #include "test/immutable_object_cache/test_common.h" #incl...
5,323
28.910112
103
cc
null
ceph-main/src/test/immutable_object_cache/test_SimplePolicy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <sstream> #include <list> #include <gtest/gtest.h> #include "include/Context.h" #include "tools/immutable_object_cache/SimplePolicy.h" using namespace ceph::immutable_obj_cache; std::string generate_file_name(...
12,207
50.728814
102
cc
null
ceph-main/src/test/immutable_object_cache/test_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CACHE_TEST_COMMON_H #define CACHE_TEST_COMMON_H #include <pthread.h> class WaitEvent { public: WaitEvent() : m_signaled(false) { pthread_mutex_init(&m_lock, NULL); pthread_cond_init(&m_cond, NULL); } ...
846
19.166667
70
h
null
ceph-main/src/test/immutable_object_cache/test_main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "global/global_context.h" #include "test/librados/test_cxx.h" #include "gtest/gtest.h" #include <iostream> #include <string> int main(int argc, char **argv) { ::testing::I...
728
23.3
70
cc
null
ceph-main/src/test/immutable_object_cache/test_message.cc
#include "gtest/gtest.h" #include "tools/immutable_object_cache/Types.h" #include "tools/immutable_object_cache/SocketCommon.h" using namespace ceph::immutable_obj_cache; TEST(test_for_message, test_1) { std::string pool_nspace("this is a pool namespace"); std::string oid_name("this is a oid name"); std::strin...
1,963
37.509804
90
cc
null
ceph-main/src/test/immutable_object_cache/test_multi_session.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include <unistd.h> #include "gtest/gtest.h" #include "include/Context.h" #include "global/global_init.h" #include "global/global_context.h" #include "test/immutable_object_cache/test_common.h" #inclu...
4,948
29.361963
93
cc
null
ceph-main/src/test/immutable_object_cache/test_object_store.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <filesystem> #include <iostream> #include <unistd.h> #include "gtest/gtest.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "include/rbd/librbd.hpp" #include "librbd/ImageCtx.h" #i...
3,068
29.69
100
cc
null
ceph-main/src/test/journal/RadosTestFixture.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/librados/test_cxx.h" #include "test/journal/RadosTestFixture.h" #include "cls/journal/cls_journal_client.h" #include "include/stringify.h" #include "common/WorkQueue.h" #include "journal/Settings.h" using ...
4,199
29.882353
95
cc
null
ceph-main/src/test/journal/RadosTestFixture.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/librados/test.h" #include "common/ceph_mutex.h" #include "common/Timer.h" #include "journal/JournalMetadata.h" #include "cls/journal/cls_journal_types.h" #include "gtest/gtest.h" class ThreadPool; class R...
2,386
30.826667
86
h
null
ceph-main/src/test/journal/test_Entry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/Entry.h" #include "gtest/gtest.h" class TestEntry : public ::testing::Test { }; TEST_F(TestEntry, DefaultConstructor) { journal::Entry entry; ASSERT_EQ(0U, entry.get_entry_tid()); ASSERT_EQ(0U, e...
2,392
23.670103
75
cc
null
ceph-main/src/test/journal/test_FutureImpl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/FutureImpl.h" #include "common/Cond.h" #include "gtest/gtest.h" #include "test/journal/RadosTestFixture.h" class TestFutureImpl : public RadosTestFixture { public: struct FlushHandler : public journal...
7,631
27.371747
86
cc
null
ceph-main/src/test/journal/test_JournalMetadata.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/JournalMetadata.h" #include "test/journal/RadosTestFixture.h" #include "common/Cond.h" #include <map> class TestJournalMetadata : public RadosTestFixture { public: void TearDown() override { for (...
6,965
32.014218
77
cc
null
ceph-main/src/test/journal/test_JournalPlayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/JournalPlayer.h" #include "journal/Entry.h" #include "journal/JournalMetadata.h" #include "journal/ReplayHandler.h" #include "include/stringify.h" #include "common/ceph_mutex.h" #include "gtest/gtest.h" ...
31,562
30.689759
96
cc