diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/ui/browsers/hists.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index d07e6be42ab1..1da30f8aa7a5 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
| @@ -2303,6 +2303,9 @@ skip_annotation: | |||
| 2303 | &options[nr_options], | 2303 | &options[nr_options], |
| 2304 | socked_id); | 2304 | socked_id); |
| 2305 | /* perf script support */ | 2305 | /* perf script support */ |
| 2306 | if (!is_report_browser(hbt)) | ||
| 2307 | goto skip_scripting; | ||
| 2308 | |||
| 2306 | if (browser->he_selection) { | 2309 | if (browser->he_selection) { |
| 2307 | if (sort__has_thread && thread) { | 2310 | if (sort__has_thread && thread) { |
| 2308 | nr_options += add_script_opt(browser, | 2311 | nr_options += add_script_opt(browser, |
| @@ -2330,6 +2333,7 @@ skip_annotation: | |||
| 2330 | &options[nr_options], NULL, NULL); | 2333 | &options[nr_options], NULL, NULL); |
| 2331 | nr_options += add_switch_opt(browser, &actions[nr_options], | 2334 | nr_options += add_switch_opt(browser, &actions[nr_options], |
| 2332 | &options[nr_options]); | 2335 | &options[nr_options]); |
| 2336 | skip_scripting: | ||
| 2333 | nr_options += add_exit_opt(browser, &actions[nr_options], | 2337 | nr_options += add_exit_opt(browser, &actions[nr_options], |
| 2334 | &options[nr_options]); | 2338 | &options[nr_options]); |
| 2335 | 2339 | ||
