[18.04] include support for Python bindings in "perf"

Bug #1707875 reported by bugproxy on 2017-08-01
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Medium
Canonical Kernel Team
linux (Ubuntu)
Status tracked in Bionic
Bionic
Medium
Canonical Kernel Team

Bug Description

== Comment: #0 - Paul A. Clarke <email address hidden> - 2017-07-26 09:59:57 ==
---Problem Description---
Request to build python bindings support with perf.

---Steps to Reproduce---
 Ubuntu-17.04# 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.

Userspace tool common name: perf

Userspace rpm: linux-tools-common

Userspace tool obtained from project website: na

== Comment: #2 - MAMATHA INAMDAR <email address hidden> - 2017-08-01 05:02:34 ==
After installing libpython, downloaded ubuntu 17.04 linux source code and compiled perf tool then it works fine.

# ./perf script -g python
generated Python script: perf-script.py

but when I run perf tool without rebuilding after installing libpython it shows an error

# 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.
root@p8wookie:/home/Mamatha/ubuntu/ubuntu-zesty/tools/perf# perf --version
perf version 4.10.17

== Comment: #3 - MAMATHA INAMDAR <email address hidden> - 2017-08-01 05:03:44 ==
Request to build python bindings support with perf.

bugproxy (bugproxy) on 2017-08-01
tags: added: architecture-all bugnameltc-156984 severity-medium targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)
affects: ubuntu → kernel-package (Ubuntu)
Manoj Iyer (manjo) on 2017-08-01
Changed in kernel-package (Ubuntu):
assignee: Taco Screen team (taco-screen-team) → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: kernel-package (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in ubuntu-power-systems:
importance: Undecided → Medium
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)

------- Comment From <email address hidden> 2017-08-02 16:33 EDT-------
Any chance we could pull in this patch as well:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-August/161412.html

It's recent enough that it has not made it to mainline, but it's ppc64le-specific.

Manoj Iyer (manjo) on 2017-08-14
tags: added: triage-g
tags: added: triage-a
removed: triage-g
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-08-23 10:15 EDT-------
(In reply to comment #7)
> Any chance we could pull in this patch as well:
>
> https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-August/161412.html
>
> It's recent enough that it has not made it to mainline, but it's
> ppc64le-specific.

ping. Can we pull the above patch in as well, or shall I open a new request?

The commit is now in the linux "tip" tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py?id=6fae8663c9940bcaa9edd8e21a9ae0f562789a3d

bugproxy (bugproxy) on 2017-08-31
tags: added: targetmilestone-inin1710
removed: targetmilestone-inin---
Manoj Iyer (manjo) on 2017-09-11
Changed in linux (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Kernel Team (canonical-kernel-team)
tags: added: triage-r
removed: triage-a
Changed in linux (Ubuntu):
status: New → In Progress
Changed in linux (Ubuntu Zesty):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu):
assignee: Canonical Kernel Team (canonical-kernel-team) → Joseph Salisbury (jsalisbury)

Hello Canonical,

Any update about this bug? Will it make 17.10?

Thank you,
Breno

Manoj Iyer (manjo) wrote :

Breno, we were at a team sprint last week, we should be back on our regular office hours this week. please allow for a few days for an update on this bug.

------- Comment From <email address hidden> 2017-10-13 10:30 EDT-------
(In reply to comment #10)
> Breno, we were at a team sprint last week, we should be back on our regular
> office hours this week. please allow for a few days for an update on this
> bug.

Hello Canonical,

Please confirm following patch is also included or not
https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-August/161412.html

Commit 6fae866 did't land in mainline until v4.14-rc1 and it was not cc'd to stable, so it is not in any Ubuntu releases.

I'm in the process of investigating if we can re-enable python for perf. I did find a askubuntu page that talks about it:

https://askubuntu.com/questions/577768/how-can-i-make-perf-script-g-python-work

tags: added: targetmilestone-inin1804 triage-g
removed: targetmilestone-inin1710 triage-r
Manoj Iyer (manjo) wrote :

Breno, based on our discussion last week could we mark the milestone for this bug as 18.04? Based on Joe's investigation we could re-enable this feature in 18.04.

bugproxy (bugproxy) on 2017-11-13
tags: added: targetmilestone-inin1710
removed: targetmilestone-inin1804
Changed in ubuntu-power-systems:
status: New → In Progress
Manoj Iyer (manjo) on 2017-11-28
summary: - include support for Python bindings in "perf"
+ [18.04] include support for Python bindings in "perf"
Breno Leitão (breno-leitao) wrote :

Tes, let's target this one for 18.04.

no longer affects: linux (Ubuntu Zesty)
Changed in linux (Ubuntu Bionic):
status: In Progress → Triaged
assignee: Joseph Salisbury (jsalisbury) → nobody
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
tags: added: bionic
Changed in ubuntu-power-systems:
status: In Progress → Triaged
Manoj Iyer (manjo) on 2018-02-12
tags: added: triage-a
removed: triage-g
tags: added: kernel-key
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers