]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/tools/io_tracer_parser.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / rocksdb / tools / io_tracer_parser.cc
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
5 //
6 #ifndef ROCKSDB_LITE
7 #ifndef GFLAGS
8 #include <cstdio>
9 int main() {
10 fprintf(stderr, "Please install gflags to run rocksdb tools\n");
11 return 1;
12 }
13 #else // GFLAGS
14 #include "tools/io_tracer_parser_tool.h"
15 int main(int argc, char** argv) {
16 return ROCKSDB_NAMESPACE::io_tracer_parser(argc, argv);
17 }
18 #endif // GFLAGS
19 #else // ROCKSDB_LITE
20 #include <stdio.h>
21 int main(int /*argc*/, char** /*argv*/) {
22 fprintf(stderr, "Not supported in lite mode.\n");
23 return 1;
24 }
25 #endif // ROCKSDB_LITE