From 6d9d614c9886ee1c49eb7c20fabc4d6eab379763 Mon Sep 17 00:00:00 2001 From: jxy_git Date: Sat, 1 Jul 2023 14:00:48 +0800 Subject: [PATCH] Provides program version information, error reporting address, and instructions for use --- src/fsslower/fsslower.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fsslower/fsslower.c b/src/fsslower/fsslower.c index 57b9e724..6918a3fa 100644 --- a/src/fsslower/fsslower.c +++ b/src/fsslower/fsslower.c @@ -60,3 +60,15 @@ static time_t duration = 0; static __u64 min_lat_ms = 10; static bool csv = false; static bool verbose = false; + +const char *argp_program_version = "fsslower 0.1"; +const char *argp_program_bug_address = "Jackie Liu "; +const char argp_program_doc[] = +"Trace file system operations slower than a threshold.\n" +"\n" +"Usage: fsslower [-h] [-t FS] [-p PID] [-m MIN] [-d DURATION] [-c]\n" +"\n" +"EXAMPLES:\n" +" 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"; -- Gitee