diff options
-rw-r--r-- | tools/perf/perf.c | 6 | ||||
-rw-r--r-- | tools/perf/perf.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 1b3fc8ec0fa2..1659029d03fc 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c | |||
@@ -190,6 +190,12 @@ static int handle_options(const char ***argv, int *argc, int *envchanged) | |||
190 | break; | 190 | break; |
191 | } | 191 | } |
192 | 192 | ||
193 | if (!strcmp(cmd, "-vv")) { | ||
194 | (*argv)[0] = "version"; | ||
195 | version_verbose = 1; | ||
196 | break; | ||
197 | } | ||
198 | |||
193 | /* | 199 | /* |
194 | * Check remaining flags. | 200 | * Check remaining flags. |
195 | */ | 201 | */ |
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 8fec1abd0f1f..a1a97956136f 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -84,6 +84,7 @@ struct record_opts { | |||
84 | struct option; | 84 | struct option; |
85 | extern const char * const *record_usage; | 85 | extern const char * const *record_usage; |
86 | extern struct option *record_options; | 86 | extern struct option *record_options; |
87 | extern int version_verbose; | ||
87 | 88 | ||
88 | int record__parse_freq(const struct option *opt, const char *str, int unset); | 89 | int record__parse_freq(const struct option *opt, const char *str, int unset); |
89 | #endif | 90 | #endif |