Public bug reported:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: seg

** Tags added: seg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1891269

Title:
  perf is not built with python script support

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to