diff --git a/src/fsslower/fsslower.c b/src/fsslower/fsslower.c index f3cde5810afe1dd7075b4df10f313bf24c8072ed..57b9e7247312098e0cda9e157f340629d58dbb2f 100644 --- a/src/fsslower/fsslower.c +++ b/src/fsslower/fsslower.c @@ -43,3 +43,20 @@ static struct fs_config { [F_FSYNC] = "xfs_file_fsync", }}, }; + +static char file_op[] = { + [F_READ] = 'R', + [F_WRITE] = 'W', + [F_OPEN] = 'O', + [F_FSYNC] = 'F', +}; + +static volatile sig_atomic_t exiting = 0; + +/* options */ +static enum fs_type fs_type = NONE; +static pid_t target_pid = 0; +static time_t duration = 0; +static __u64 min_lat_ms = 10; +static bool csv = false; +static bool verbose = false;