]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/perf_index/perfindex-ram_file_create.c
1 #include "perf_index.h"
3 #include "test_file_helper.h"
8 const char ramdisk_name
[] = "StressRAMDisk";
9 char ramdisk_path
[MAXPATHLEN
];
14 retval
= setup_ram_volume(ramdisk_name
, ramdisk_path
);
15 VERIFY(retval
== PERFINDEX_SUCCESS
, "setup_ram_volume failed");
17 printf("ramdisk: %s\n", ramdisk_path
);
19 return PERFINDEX_SUCCESS
;
23 return test_file_create(ramdisk_path
, thread_id
, num_threads
, length
);
29 retval
= cleanup_ram_volume(ramdisk_path
);
30 VERIFY(retval
== 0, "cleanup_ram_volume failed");
32 return PERFINDEX_SUCCESS
;