|
@@ -1963,7 +1963,7 @@ int cmd_timechart(int argc, const char **argv,
|
|
NULL
|
|
NULL
|
|
};
|
|
};
|
|
|
|
|
|
- const struct option record_options[] = {
|
|
|
|
|
|
+ const struct option timechart_record_options[] = {
|
|
OPT_BOOLEAN('P', "power-only", &tchart.power_only, "output power data only"),
|
|
OPT_BOOLEAN('P', "power-only", &tchart.power_only, "output power data only"),
|
|
OPT_BOOLEAN('T', "tasks-only", &tchart.tasks_only,
|
|
OPT_BOOLEAN('T', "tasks-only", &tchart.tasks_only,
|
|
"output processes data only"),
|
|
"output processes data only"),
|
|
@@ -1972,7 +1972,7 @@ int cmd_timechart(int argc, const char **argv,
|
|
OPT_BOOLEAN('g', "callchain", &tchart.with_backtrace, "record callchain"),
|
|
OPT_BOOLEAN('g', "callchain", &tchart.with_backtrace, "record callchain"),
|
|
OPT_END()
|
|
OPT_END()
|
|
};
|
|
};
|
|
- const char * const record_usage[] = {
|
|
|
|
|
|
+ const char * const timechart_record_usage[] = {
|
|
"perf timechart record [<options>]",
|
|
"perf timechart record [<options>]",
|
|
NULL
|
|
NULL
|
|
};
|
|
};
|
|
@@ -1985,7 +1985,8 @@ int cmd_timechart(int argc, const char **argv,
|
|
}
|
|
}
|
|
|
|
|
|
if (argc && !strncmp(argv[0], "rec", 3)) {
|
|
if (argc && !strncmp(argv[0], "rec", 3)) {
|
|
- argc = parse_options(argc, argv, record_options, record_usage,
|
|
|
|
|
|
+ argc = parse_options(argc, argv, timechart_record_options,
|
|
|
|
+ timechart_record_usage,
|
|
PARSE_OPT_STOP_AT_NON_OPTION);
|
|
PARSE_OPT_STOP_AT_NON_OPTION);
|
|
|
|
|
|
if (tchart.power_only && tchart.tasks_only) {
|
|
if (tchart.power_only && tchart.tasks_only) {
|