diff options
| -rw-r--r-- | tools/perf/builtin-record.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 4e75583ddd6d..93bd2ff001fb 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
| @@ -790,7 +790,7 @@ static const char * const record_usage[] = { | |||
| 790 | 790 | ||
| 791 | static bool force, append_file; | 791 | static bool force, append_file; |
| 792 | 792 | ||
| 793 | static const struct option options[] = { | 793 | const struct option record_options[] = { |
| 794 | OPT_CALLBACK('e', "event", NULL, "event", | 794 | OPT_CALLBACK('e', "event", NULL, "event", |
| 795 | "event selector. use 'perf list' to list available events", | 795 | "event selector. use 'perf list' to list available events", |
| 796 | parse_events), | 796 | parse_events), |
| @@ -839,16 +839,16 @@ int cmd_record(int argc, const char **argv, const char *prefix __used) | |||
| 839 | { | 839 | { |
| 840 | int i, j, err = -ENOMEM; | 840 | int i, j, err = -ENOMEM; |
| 841 | 841 | ||
| 842 | argc = parse_options(argc, argv, options, record_usage, | 842 | argc = parse_options(argc, argv, record_options, record_usage, |
| 843 | PARSE_OPT_STOP_AT_NON_OPTION); | 843 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 844 | if (!argc && target_pid == -1 && target_tid == -1 && | 844 | if (!argc && target_pid == -1 && target_tid == -1 && |
| 845 | !system_wide && !cpu_list) | 845 | !system_wide && !cpu_list) |
| 846 | usage_with_options(record_usage, options); | 846 | usage_with_options(record_usage, record_options); |
| 847 | 847 | ||
| 848 | if (force && append_file) { | 848 | if (force && append_file) { |
| 849 | fprintf(stderr, "Can't overwrite and append at the same time." | 849 | fprintf(stderr, "Can't overwrite and append at the same time." |
| 850 | " You need to choose between -f and -A"); | 850 | " You need to choose between -f and -A"); |
| 851 | usage_with_options(record_usage, options); | 851 | usage_with_options(record_usage, record_options); |
| 852 | } else if (append_file) { | 852 | } else if (append_file) { |
| 853 | write_mode = WRITE_APPEND; | 853 | write_mode = WRITE_APPEND; |
| 854 | } else { | 854 | } else { |
| @@ -871,7 +871,7 @@ int cmd_record(int argc, const char **argv, const char *prefix __used) | |||
| 871 | if (thread_num <= 0) { | 871 | if (thread_num <= 0) { |
| 872 | fprintf(stderr, "Can't find all threads of pid %d\n", | 872 | fprintf(stderr, "Can't find all threads of pid %d\n", |
| 873 | target_pid); | 873 | target_pid); |
| 874 | usage_with_options(record_usage, options); | 874 | usage_with_options(record_usage, record_options); |
| 875 | } | 875 | } |
| 876 | } else { | 876 | } else { |
| 877 | all_tids=malloc(sizeof(pid_t)); | 877 | all_tids=malloc(sizeof(pid_t)); |
