{ "flag", 'F', NULL, 0, "Print a histogram per set of I/O flags" },
{ "disk", 'd', "DISK", 0, "Trace this disk only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "timestamp", 'T', NULL, 0, "Include timestamp on output" },
{ "disk", 'd', "DISK", 0, "Trace this disk only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "queued", 'Q', NULL, 0, "Include OS queued time in I/O time" },
{ "disk", 'd', "DISK", 0, "Trace this disk only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "disk", 'd', "DISK", 0, "Trace this disk only" },
{ "milliseconds", 'm', NULL, 0, "Millisecond histogram" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "comm", 'c', "COMM", 0, "Trace this comm only" },
{ "disk", 'd', "DISK", 0, "Trace this disk only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args, len;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
static const struct argp_option opts[] = {
{ "timestamp", 'T', NULL, 0, "Print timestamp" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "tids", 'L', NULL, 0, "Print a histogram per thread ID" },
{ "pid", 'p', "PID", 0, "Trace this PID only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "duration", 'd', "DURATION", 0, "Duration to sample in seconds" },
{ "frequency", 'f', "FREQUENCY", 0, "Sample with a certain frequency" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static error_t parse_arg(int key, char *arg, struct argp_state *state)
{
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "pid", 'p', "PID", 0, "Process PID to trace" },
{ "tid", 't', "TID", 0, "Thread TID to trace" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
int pid;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "max-args", MAX_ARGS_KEY, "MAX_ARGS", 0,
"maximum number of arguments parsed and displayed, defaults to 20"},
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
switch (key) {
case 'h':
- argp_usage(state);
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
break;
case 'T':
env.time = true;
{ "milliseconds", 'm', NULL, 0, "Millisecond histogram" },
{ "pid", 'p', "PID", 0, "Process PID to trace" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
static const struct argp_option opts[] = {
{ "pid", 'p', "PID", 0, "Process PID to trace" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
int pid;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "timestamp", 'T', NULL, 0, "Include timestamp on output" },
{ "nanoseconds", 'N', NULL, 0, "Output in nanoseconds" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "sample_period", 'c', "SAMPLE_PERIOD", 0, "Sample one in this many "
"number of cache reference / miss events" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
static const struct argp_option opts[] = {
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static error_t parse_arg(int key, char *arg, struct argp_state *state)
{
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
"the amount of time in microseconds under which we store traces (default U64_MAX)" },
{ "state", OPT_STATE, "STATE", 0, "filter on this thread state bitmask (eg, 2 == TASK_UNINTERRUPTIBLE) see include/linux/sched.h" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
static const struct argp_option opts[] = {
{ "duration", 'd', "DURATION", 0, "Duration to trace"},
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static error_t parse_arg(int key, char *arg, struct argp_state *state)
{
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "tids", 'L', NULL, 0, "Print a histogram per thread ID" },
{ "pid", 'p', "PID", 0, "Trace this PID only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "runqocc", 'O', NULL, 0, "Report run queue occupancy" },
{ "timestamp", 'T', NULL, 0, "Include timestamp on output" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "pid", 'p', "PID", 0, "Process PID to trace"},
{ "tid", 't', "TID", 0, "Thread TID to trace"},
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
long long min_us;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "timestamp", 'T', NULL, 0, "Include timestamp on output" },
{ "nanoseconds", 'N', NULL, 0, "Output in nanoseconds" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "errno", 'e', "ERRNO", 0, "Trace only syscalls that return this error"
"(numeric or EPERM, etc.)" },
{ "list", 'l', NULL, 0, "Print list of recognized syscalls and exit" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
int err;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
"Comma-separated list of destination ports to trace" },
{ "cgroupmap", 'C', "PATH", 0, "trace cgroups in this map" },
{ "mntnsmap", 'M', "PATH", 0, "trace mount namespaces in this map" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
int nports;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "timestamp", 't', NULL, 0, "Include timestamp on output" },
{ "pid", 'p', "PID", 0, "Trace this PID only" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
static int pos_args;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
static const struct argp_option opts[] = {
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
long count;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;
{ "pid", 'p', "PID", 0, "Process PID to trace" },
{ "min", 'm', "MIN", 0, "Min latency of trace in ms (default 10)" },
{ "verbose", 'v', NULL, 0, "Verbose debug output" },
+ { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" },
{},
};
int pid;
switch (key) {
+ case 'h':
+ argp_state_help(state, stderr, ARGP_HELP_STD_HELP);
+ break;
case 'v':
env.verbose = true;
break;