среда

[Bug 1891269] Re: perf is not built with python script support

*** This bug is a duplicate of bug 2089047 ***
https://bugs.launchpad.net/bugs/2089047

** This bug has been marked a duplicate of bug 2089047
perf tool not packaged with its scripts

--
You received this bug notification because you are subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/1891269

Title:
perf is not built with python script support

Status in linux package in Ubuntu:
Confirmed

Bug description:
The "perf" tool supports python scripting to process events, this
support is currently not enabled.

$ sudo perf script -g python
Python scripting not supported. Install libpython and rebuild perf to enable it.
For example:
# apt-get install python-dev (ubuntu)
# yum install python-devel (Fedora)
etc.

The expected behaviour is that the script creates a template python
file for you to modify to process the events.

From what I can see enabling this requires a few items
- We need to Build-Depend on python3-dev
- We would ship the perf-script-python binary
- There are various python modules (under tools/perf/scripts/python) needed for these to work
- There are also a number of upstream scripts (e.g. 'net_dropmonitor') we could ship, normally you can see those by running 'perf script -l' but we get "open(/usr/libexec/perf-core/scripts) failed. Check "PERF_EXEC_PATH" env to set scripts dir.". Expected output can be seen by running "PERF_EXEC_PATH=LINUX_SOURCE_PATH/tools/perf ./perf script -l"


While not important to me personally, it also doesn't have support for
perl that could be fixed in a similar way, in case we want to fix that
at the same time. It doesn't have as many pre-existing scripts though
and seems less likely to be as useful compared to the Python version.

$ sudo perf script -g perl
Perl scripting not supported. Install libperl and rebuild perf to enable it.
For example:
# apt-get install libperl-dev (ubuntu)
# yum install 'perl(ExtUtils::Embed)' (Fedora)
etc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891269/+subscriptions

Комментариев нет:

Отправить комментарий