This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:

apport-collect 1891269

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable
to run this command, please add a comment stating that fact and change
the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the
Ubuntu Kernel Team.

** Changed in: linux (Ubuntu)
       Status: New => Incomplete

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

Title:
  perf is not built with python script support

Status in linux package in Ubuntu:
  Incomplete

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to