Recent changes (master)
The following changes since commit e1c325d25dd977c28c9489c542a51ee05dfc620e:
io_u: don't account io issue blocks for verify backlog (2017-11-30 21:48:12 -0700)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to e0409d5ffe6127961ddc4c495ec32b72a65e11bf:
thread_options: drop fadvise_stream from thread_options (2017-12-01 14:54:49 -0700)
----------------------------------------------------------------
Jens Axboe (5):
Add basic memcpy test
fio_time: should include time.h
memcpy: use malloc
memcpy: free buffer in case of failure
memcpy: add hybrid
Vincent Fu (1):
thread_options: drop fadvise_stream from thread_options
fio_time.h | 1 + init.c | 11 +++ lib/memcpy.c | 286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/memcpy.h | 6 ++ server.h | 2 +- thread_options.h | 3 - 6 files changed, 305 insertions(+), 4 deletions(-) create mode 100644 lib/memcpy.c create mode 100644 lib/memcpy.h
---
Diff of recent changes:
fio_time.h +1 -0
@@ -1,6 +1,7 @@#ifndef FIO_TIME_H #define FIO_TIME_H +#include <time.h> #include "lib/types.h" struct thread_data ;
init.c +11 -0
@@ -32,6 +32,7 @@#include "crc/test.h" #include "lib/pow2.h" +#include "lib/memcpy.h" const char fio_version_string[] =FIO_VERSION ;
@@ -234,6 +235,11 @@ static struct option l_opts[FIO_NR_OPTIONS] = { .val = 'G', }, { + .name = (char *) "memcpytest", + .has_arg = optional_argument, + .val = 'M', + }, + { .name = (char *) "idle-prof", .has_arg = required_argument, .val = 'I',
@@ -2731,6 +2737,11 @@ int parse_cmd_line(int argc, char *argv[], int client_type) do_exit++; exit_val =fio_crctest (optarg);break ; +case 'M' : + did_arg = true; + do_exit++; + exit_val =fio_memcpy_test (optarg); +break ;case 'L' : {long long val;
lib/memcpy.c new file +286 -0
286 lines not on this page · raw message
lib/memcpy.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef FIO_MEMCPY_H +#define FIO_MEMCPY_H + +int fio_memcpy_test (const char *type); + +#endif
server.h +1 -1
@@ -49,7 +49,7 @@ struct fio_net_cmd_reply { };enum { -FIO_SERVER_VER =67 , +FIO_SERVER_VER =68 ,FIO_SERVER_MAX_FRAGMENT_PDU =1024 ,FIO_SERVER_MAX_CMD_MB =2048 ,
thread_options.h +0 -3
@@ -218,7 +218,6 @@ struct thread_options {unsigned int group_reporting;unsigned int stats;unsigned int fadvise_hint; -unsigned int fadvise_stream;enum fio_fallocate_mode fallocate_mode;unsigned int zero_buffers;unsigned int refill_buffers;
@@ -494,7 +493,6 @@ struct thread_options_pack {uint32_t group_reporting;uint32_t stats;uint32_t fadvise_hint; -uint32_t fadvise_stream;uint32_t fallocate_mode;uint32_t zero_buffers;uint32_t refill_buffers;
@@ -520,7 +518,6 @@ struct thread_options_pack {uint64_t trim_backlog;uint32_t clat_percentiles;uint32_t percentile_precision; -uint32_t pad;fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN ];uint8_t read_iolog_file[FIO_TOP_STR_MAX ];