blob: de7910e275cf8aaccedbc2c9964e2133e6f50671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright 2018 Mimecast Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef DEFAULTS_H
#define DEFAULTS_H
#include "utils/utils.h"
/** Version of the supported .capture format */
#define CAPTURE_VERSION 1
/** Version of the supported .replay format */
#define REPLAY_VERSION 1
/** Max amount of tokens per line in the .capture file */
#define MAX_TOKENS 10
/** Max line length in either .capture or .replay file */
#define MAX_LINE_LEN 1024*8
/** Controls how many tasks can be queued and buffered per worker thread */
#define TASK_BUFFER_PER_THREAD 512
/** Version of I/O Replay */
#define IOREPLAY_VERSION "0.3-develop"
/** Copyright information */
#define IOREPLAY_COPYRIGHT "Mimecast 2017, 2018 (c)"
/** Max open files resource user limit */
#define SET_RLIMIT_NOFILE 369216
/** Max processes resource user limit */
#define SET_RLIMIT_NPROC 30768
// The following are for debugging purposes only
//#define NO_IOOP
//#define THREAD_DEBUG
//#define LOG_FILTERED
/**
* @brief Return status codes
*/
typedef enum status_e_ {
SUCCESS, /**< Great success! */
UNKNOWN, /**< Unknown return status :-/ */
ERROR, /**< An error happened :-( */
} status_e;
#endif // DEFAULTS_H
|