2 #include "perf_index.h"
6 const stress_test_t file_local_create_test
= {"file_create", &stress_file_local_create_init
, &stress_file_local_create
, &stress_file_local_create_cleanup
, &no_validate
};
7 const stress_test_t file_local_write_test
= {"file_write", &stress_file_local_write_init
, &stress_file_local_write
, &stress_file_local_write_cleanup
, &no_validate
};
8 const stress_test_t file_local_read_test
= {"file_read", &stress_file_local_read_init
, &stress_file_local_read
, &stress_file_local_read_cleanup
, &no_validate
};
10 static char fs_path
[MAXPATHLEN
];
12 static void setup_local_volume(void) {
13 snprintf(fs_path
, MAXPATHLEN
, "%s", "/tmp");
16 DECL_INIT(stress_file_local_read_init
) {
18 stress_file_read_init(fs_path
, num_threads
, length
, 0L);
21 DECL_TEST(stress_file_local_read
) {
22 stress_file_read(fs_path
, thread_id
, num_threads
, length
, 0L);
25 DECL_CLEANUP(stress_file_local_read_cleanup
) {
26 stress_file_read_cleanup(fs_path
, num_threads
, length
);
29 DECL_INIT(stress_file_local_write_init
) {
31 stress_file_write_init(fs_path
, num_threads
, length
);
34 DECL_TEST(stress_file_local_write
) {
35 stress_file_write(fs_path
, thread_id
, num_threads
, length
, 0L);
38 DECL_CLEANUP(stress_file_local_write_cleanup
) {
41 DECL_INIT(stress_file_local_create_init
) {
45 DECL_TEST(stress_file_local_create
) {
46 stress_file_create(fs_path
, thread_id
, num_threads
, length
);
49 DECL_CLEANUP(stress_file_local_create_cleanup
) {