diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 313c42423393..e0a9845b6cbc 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -657,8 +657,11 @@ static int perf_sample__fprintf_start(struct perf_sample *sample, | |||
657 | break; | 657 | break; |
658 | case PERF_RECORD_SWITCH: | 658 | case PERF_RECORD_SWITCH: |
659 | case PERF_RECORD_SWITCH_CPU_WIDE: | 659 | case PERF_RECORD_SWITCH_CPU_WIDE: |
660 | if (has(SWITCH_OUT)) | 660 | if (has(SWITCH_OUT)) { |
661 | ret += fprintf(fp, "S"); | 661 | ret += fprintf(fp, "S"); |
662 | if (sample->misc & PERF_RECORD_MISC_SWITCH_OUT_PREEMPT) | ||
663 | ret += fprintf(fp, "p"); | ||
664 | } | ||
662 | default: | 665 | default: |
663 | break; | 666 | break; |
664 | } | 667 | } |
@@ -2801,11 +2804,11 @@ int find_scripts(char **scripts_array, char **scripts_path_array) | |||
2801 | for_each_lang(scripts_path, scripts_dir, lang_dirent) { | 2804 | for_each_lang(scripts_path, scripts_dir, lang_dirent) { |
2802 | scnprintf(lang_path, MAXPATHLEN, "%s/%s", scripts_path, | 2805 | scnprintf(lang_path, MAXPATHLEN, "%s/%s", scripts_path, |
2803 | lang_dirent->d_name); | 2806 | lang_dirent->d_name); |
2804 | #ifdef NO_LIBPERL | 2807 | #ifndef HAVE_LIBPERL_SUPPORT |
2805 | if (strstr(lang_path, "perl")) | 2808 | if (strstr(lang_path, "perl")) |
2806 | continue; | 2809 | continue; |
2807 | #endif | 2810 | #endif |
2808 | #ifdef NO_LIBPYTHON | 2811 | #ifndef HAVE_LIBPYTHON_SUPPORT |
2809 | if (strstr(lang_path, "python")) | 2812 | if (strstr(lang_path, "python")) |
2810 | continue; | 2813 | continue; |
2811 | #endif | 2814 | #endif |