perf has a python module for offline analysis & scripting, but adding USE="python" does not work at all - nothing is built or installed. AFAICT this bug has existed forever. Reproducible: Always Steps to Reproduce: 1. build perf with USE="python" 2. start python2, run "import perf" 3. no perf :(
Created attachment 568176 [details, diff] Patch to build & install python module This works for python2; not sure what the status of python3 support in upstream perf is.
Still an issue with 5.1.15.
OK. That should be addressed in the next revision Official instruction to build python extension (with python3): https://github.com/torvalds/linux/commit/66dfdff03d196e51322c6a85c0d8db8bb2bdd655
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3dd9104e7803e30f988fc8c83c092998fa1560d commit f3dd9104e7803e30f988fc8c83c092998fa1560d Author: Naohiro Aota <naota@gentoo.org> AuthorDate: 2019-12-25 21:47:13 +0000 Commit: Naohiro Aota <naota@gentoo.org> CommitDate: 2019-12-27 02:46:13 +0000 version bump with some fixes This commit add a multiple python version support to address python3 installtion issue. (based on a patch from Holger Hoffstätte <holger@applied-asynchrony.com>) Also, this commit add a patch to build with >=sys-devel/clang-9. (patch from Maciej S. Szmigiero <mail@maciej.szmigiero.name> and Dennis Schridde <devurandom@gmx.net>). Closes: https://bugs.gentoo.org/679762 Closes: https://bugs.gentoo.org/695726 Signed-off-by: Naohiro Aota <naota@gentoo.org> dev-util/perf/Manifest | 2 + dev-util/perf/files/perf-5.4.6-fix-clang9.patch | 17 ++ dev-util/perf/perf-5.4.6.ebuild | 246 ++++++++++++++++++++++++ 3 files changed, 265 insertions(+)