1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph distributed storage system
6 * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
7 * Copyright (C) 2014 Red Hat <contact@redhat.com>
9 * Author: Loic Dachary <loic@dachary.org>
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
18 #ifndef CEPH_ERASURE_CODE_BENCHMARK_H
19 #define CEPH_ERASURE_CODE_BENCHMARK_H
25 class ErasureCodeBench {
34 bool exhaustive_erasures;
38 ErasureCodeProfile profile;
41 boost::intrusive_ptr<CephContext> cct;
43 int setup(int argc, char** argv);
45 int decode_erasures(const map<int,bufferlist> &all_chunks,
46 const map<int,bufferlist> &chunks,
48 unsigned want_erasures,
49 ErasureCodeInterfaceRef erasure_code);