ContainerTracer
0.1
|
Check the correctness of tr-driver
.
More...
#include <stdlib.h>
#include <unity.h>
#include <time.h>
#include <unistd.h>
#include <sys/sysinfo.h>
#include <jemalloc/jemalloc.h>
#include <json.h>
#include <assert.h>
#include <generic.h>
#include <runner.h>
#include <trace_replay.h>
Macros | |
#define | __s8 |
#define | TEST_TARGET_DRIVER "trace-replay" |
#define | TRACE_REPLAY_PATH "./build/release/trace-replay" |
#define | SCHEDULER "none" |
#define | TIME (5) |
#define | Q_DEPTH (get_nprocs()) |
#define | PREFIX_CGROUP_NAME "tester.trace." |
#define | NR_TASKS (key_len) |
#define | NR_THREAD ((int)(Q_DEPTH / NR_TASKS)) |
#define | FLAGS_MASK ((0x1 << NR_TASKS) - 1) |
Functions | |
static void | print_json_string (const char *msg, const char *buffer) |
void | setUp (void) |
void | tearDown (void) |
void | test (void) |
int | main (void) |
Variables | |
static const char * | key [] |
static const int | weight [] = { 100, 250, 500, 1000, 2000, 4000 } |
static const char * | test_path [] |
static const unsigned long | key_len = sizeof(key) / sizeof(char *) |
static char * | json |
static char * | task_options |
static struct json_object * | jobject |
Check the correctness of tr-driver
.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#define __s8 |
#define FLAGS_MASK ((0x1 << NR_TASKS) - 1) |
#define NR_TASKS (key_len) |
#define PREFIX_CGROUP_NAME "tester.trace." |
The rule to generate the cgroup directory
#define Q_DEPTH (get_nprocs()) |
Queue depth size which based on the number of cores.
#define SCHEDULER "none" |
"none, bfq" in SCSI; "none, kyber, bfq" in NVMe
#define TEST_TARGET_DRIVER "trace-replay" |
#define TIME (5) |
seconds
#define TRACE_REPLAY_PATH "./build/release/trace-replay" |
int main | ( | void | ) |
|
static |
void setUp | ( | void | ) |
void tearDown | ( | void | ) |
void test | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |