diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
| -rw-r--r-- | tools/perf/builtin-script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 2f3ff69fc4e7..c0783b4f7b6c 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
| @@ -2180,7 +2180,7 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) | |||
| 2180 | "Show the mmap events"), | 2180 | "Show the mmap events"), |
| 2181 | OPT_BOOLEAN('\0', "show-switch-events", &script.show_switch_events, | 2181 | OPT_BOOLEAN('\0', "show-switch-events", &script.show_switch_events, |
| 2182 | "Show context switch events (if recorded)"), | 2182 | "Show context switch events (if recorded)"), |
| 2183 | OPT_BOOLEAN('f', "force", &file.force, "don't complain, do it"), | 2183 | OPT_BOOLEAN('f', "force", &symbol_conf.force, "don't complain, do it"), |
| 2184 | OPT_BOOLEAN(0, "ns", &nanosecs, | 2184 | OPT_BOOLEAN(0, "ns", &nanosecs, |
| 2185 | "Use 9 decimal places when displaying time"), | 2185 | "Use 9 decimal places when displaying time"), |
| 2186 | OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts", | 2186 | OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts", |
| @@ -2212,6 +2212,7 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) | |||
| 2212 | PARSE_OPT_STOP_AT_NON_OPTION); | 2212 | PARSE_OPT_STOP_AT_NON_OPTION); |
| 2213 | 2213 | ||
| 2214 | file.path = input_name; | 2214 | file.path = input_name; |
| 2215 | file.force = symbol_conf.force; | ||
| 2215 | 2216 | ||
| 2216 | if (argc > 1 && !strncmp(argv[0], "rec", strlen("rec"))) { | 2217 | if (argc > 1 && !strncmp(argv[0], "rec", strlen("rec"))) { |
| 2217 | rec_script_path = get_script_path(argv[1], RECORD_SUFFIX); | 2218 | rec_script_path = get_script_path(argv[1], RECORD_SUFFIX); |
