|
@@ -1943,7 +1943,8 @@ static const struct option stat_options[] = {
|
|
OPT_STRING(0, "post", &post_cmd, "command",
|
|
OPT_STRING(0, "post", &post_cmd, "command",
|
|
"command to run after to the measured command"),
|
|
"command to run after to the measured command"),
|
|
OPT_UINTEGER('I', "interval-print", &stat_config.interval,
|
|
OPT_UINTEGER('I', "interval-print", &stat_config.interval,
|
|
- "print counts at regular interval in ms (>= 10)"),
|
|
|
|
|
|
+ "print counts at regular interval in ms "
|
|
|
|
+ "(overhead is possible for values <= 100ms)"),
|
|
OPT_INTEGER(0, "interval-count", &stat_config.times,
|
|
OPT_INTEGER(0, "interval-count", &stat_config.times,
|
|
"print counts for fixed number of times"),
|
|
"print counts for fixed number of times"),
|
|
OPT_UINTEGER(0, "timeout", &stat_config.timeout,
|
|
OPT_UINTEGER(0, "timeout", &stat_config.timeout,
|
|
@@ -2923,17 +2924,6 @@ int cmd_stat(int argc, const char **argv)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (interval && interval < 100) {
|
|
|
|
- if (interval < 10) {
|
|
|
|
- pr_err("print interval must be >= 10ms\n");
|
|
|
|
- parse_options_usage(stat_usage, stat_options, "I", 1);
|
|
|
|
- goto out;
|
|
|
|
- } else
|
|
|
|
- pr_warning("print interval < 100ms. "
|
|
|
|
- "The overhead percentage could be high in some cases. "
|
|
|
|
- "Please proceed with caution.\n");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (stat_config.times && interval)
|
|
if (stat_config.times && interval)
|
|
interval_count = true;
|
|
interval_count = true;
|
|
else if (stat_config.times && !interval) {
|
|
else if (stat_config.times && !interval) {
|