diff --git a/cli.py b/cli.py index 19c2592e86b2bcd371ea069e0ff61856a653a0b9..3bc0d806bd9e36f989b5d7c48cdf5120946677b5 100755 --- a/cli.py +++ b/cli.py @@ -140,7 +140,9 @@ class Plugsched(object): 'objs=%s' % ' '.join(objs), *['%s=%s' % i for i in kwargs.items()], file=os.path.join(self.tmp_dir, 'Makefile.plugsched'), - jobs=self.threads) + jobs=self.threads, + _out=sys.stdout, + _err=sys.stderr) def fix_up(self): self.mod_sh.sed("s/#include \"/#include \"..\//g;" + \ diff --git a/configs/4.19/sched_boundary.yaml b/configs/4.19/sched_boundary.yaml index d93af55dc628afda699100e5940fd26dafbc2e10..73ddebf8cc99ec0fed155e6a3e500d876f2e1c6f 100644 --- a/configs/4.19/sched_boundary.yaml +++ b/configs/4.19/sched_boundary.yaml @@ -30,6 +30,7 @@ interface_prefix: - __arm64_compat_sys_ function: interface: + - yield_to - wake_up_idle_ht - __balance_callback - do_set_cpus_allowed diff --git a/src/Makefile.plugsched b/src/Makefile.plugsched index 48254383981c132e15f05cbc3a703b77ee49a1e3..80834be160709d1c0696f9efd197fb33aa846b6f 100644 --- a/src/Makefile.plugsched +++ b/src/Makefile.plugsched @@ -11,16 +11,16 @@ GCC_PLUGIN_FLAGS := -fplugin=/usr/lib64/gcc-python-plugin/python.so \ PHONY += plugsched sidecar collect extract -collect: CFLAGS_KERNEL = $(GCC_PLUGIN_FLAGS)collect -extract: CFLAGS_KERNEL = $(GCC_PLUGIN_FLAGS)extract - plugsched: scripts prepare sidecar $(MAKE) CFLAGS_MODULE=-fkeep-static-functions -C $(srctree) M=$(plugsched_modpath) modules sidecar: $(plugsched_modpath)/export_jump_sidecar.h python2 $(plugsched_tmpdir)/sidecar.py $< ./vmlinux $(plugsched_tmpdir) $(plugsched_modpath) -collect: $(core-y) $(core-m) $(drivers-y) $(drivers-m) $(net-y) $(net-m) $(virt-y) +collect: + $(MAKE) CFLAGS_KERNEL="$(GCC_PLUGIN_FLAGS)collect" \ + CFLAGS_MODULE="$(GCC_PLUGIN_FLAGS)collect" analyze: python2 $(plugsched_tmpdir)/process.py ./vmlinux $(plugsched_tmpdir) $(plugsched_modpath) extract: $(objs) + $(MAKE) CFLAGS_KERNEL="$(GCC_PLUGIN_FLAGS)extract" $(objs)