diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-30 15:08:26 +0300 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-30 15:08:26 +0300 | 
| commit | cd4846c5a68da77705164924f47001af3b499dec (patch) | |
| tree | 226295e35148ee7a9d303c6a218790b7a8107976 /tools/perf/builtin-script.c | |
| parent | 9ee84466b7130360d07241baf4c95a553fc0a997 (diff) | |
| parent | 6da6c0db5316275015e8cc2959f12a17584aeb64 (diff) | |
| download | linux-cd4846c5a68da77705164924f47001af3b499dec.tar.xz | |
Merge 4.17-rc3 into driver-core-next
We want the fixes in here as well for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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,  			break;  		case PERF_RECORD_SWITCH:  		case PERF_RECORD_SWITCH_CPU_WIDE: -			if (has(SWITCH_OUT)) +			if (has(SWITCH_OUT)) {  				ret += fprintf(fp, "S"); +				if (sample->misc & PERF_RECORD_MISC_SWITCH_OUT_PREEMPT) +					ret += fprintf(fp, "p"); +			}  		default:  			break;  		} @@ -2801,11 +2804,11 @@ int find_scripts(char **scripts_array, char **scripts_path_array)  	for_each_lang(scripts_path, scripts_dir, lang_dirent) {  		scnprintf(lang_path, MAXPATHLEN, "%s/%s", scripts_path,  			  lang_dirent->d_name); -#ifdef NO_LIBPERL +#ifndef HAVE_LIBPERL_SUPPORT  		if (strstr(lang_path, "perl"))  			continue;  #endif -#ifdef NO_LIBPYTHON +#ifndef HAVE_LIBPYTHON_SUPPORT  		if (strstr(lang_path, "python"))  			continue;  #endif  | 
