diff --git a/src/fsslower/fsslower.c b/src/fsslower/fsslower.c index 6918a3fa2ccaf2e283b1f2747a36de040b6e3459..0f74f8b137a42147bc3e2dd378651f8f32a3e79d 100644 --- a/src/fsslower/fsslower.c +++ b/src/fsslower/fsslower.c @@ -72,3 +72,14 @@ const char argp_program_doc[] = " fsslower -t ext4 # trace ext4 operations slower than 10 ms\n" " fsslower -t nfs -p 1216 # trace nfs operations with PID 1216 only\n" " fsslower -t xfs -c -d 1 # trace xfs operations for 1s with csv output\n"; + +static const struct argp_option opts[] = { + { "csv", 'c', NULL, 0, "Output as csv"}, + { "duration", 'd', "DURATION", 0, "Total duration of trace in seconds" }, + { "pid", 'p', "PID", 0, "Process ID to trace" }, + { "min", 'm', "MIN", 0, "Min latency to trace, in ms (default 10)" }, + { "type", 't', "Filesystem", 0, "Which filesystem to trace, [btrfs/ext4/nfs/xfs]" }, + { "verbose", 'v', NULL, 0, "Verbose debug output" }, + { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" }, + {} +};