Add oprofile support for z13

Bug #1581540 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Medium
Unassigned
oprofile (Ubuntu)
Fix Released
Medium
Dimitri John Ledkov
Xenial
Fix Released
Low
Dimitri John Ledkov

Bug Description

== Comment: #0 - Aziz Rozyev <email address hidden> - 2016-04-20 11:19:50 ==
---Problem Description---
operf failure, 'strace operf' shows that it tries to get 'cpu_type' from /proc/cpuinfo, whereas there is no such field in cpuinfo.

Contact Information = Aziz <email address hidden>

---uname output---
Linux s35lp26 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:07:12 UTC 2016 s390x s390x s390x GNU/Linux

Machine Type = z13 lpar type: 2964 model: 703 N96

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 run 'operf'

Userspace tool common name: operf

The userspace tool has the following bit modes: tested on 64bit

Userspace tool obtained from project website: na

*Additional Instructions for Aziz <email address hidden>:
-Attach ltrace and strace of userspace application.

== Comment: #4 - Andreas Arnez <email address hidden> - 2016-05-12 04:52:40 ==
So far oprofile didn't support z13. A patch for adding z13 support has now been posted upstream:
  http://marc.info/?l=oprofile-list&m=146298177508640&w=2

Revision history for this message
bugproxy (bugproxy) wrote : problem related information

Default Comment by Bridge

tags: added: architecture-s39064 bugnameltc-140532 severity-medium targetmilestone-inin16041
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → oprofile (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

FAO Andreas Arnez

The posted patch is incomplete.
Fails to build from source.
Referenced files s390/z13/events s390/z13/unit_masks are not included in the patch.

Build log tail:

/usr/bin/install: cannot stat '../events/s390/z13/events': No such file or directory
/usr/bin/install: cannot stat '../events/s390/z13/unit_masks': No such file or directory
Makefile:567: recipe for target 'install-data-local' failed
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/events'
Makefile:458: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/events'
Makefile:489: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:53: recipe for target 'install' failed
make: *** [install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Changed in oprofile (Ubuntu):
status: New → Incomplete
Changed in ubuntu-z-systems:
status: Triaged → Incomplete
Changed in oprofile (Ubuntu Xenial):
status: New → Incomplete
Changed in oprofile (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → nobody
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-05-30 09:08 EDT-------
> The posted patch is incomplete.
> Fails to build from source.
> Referenced files s390/z13/events s390/z13/unit_masks are not included in the
> patch.

Right, sorry about that. I've posted a new version of that patch on the oprofile mailing list:
http://marc.info/?l=oprofile-list&m=146401512127213&w=2

Changed in oprofile (Ubuntu):
status: Incomplete → Fix Committed
Changed in oprofile (Ubuntu Xenial):
status: Incomplete → Triaged
Changed in ubuntu-z-systems:
status: Incomplete → In Progress
importance: Wishlist → Medium
Changed in oprofile (Ubuntu):
importance: Undecided → Medium
Changed in oprofile (Ubuntu Xenial):
importance: Undecided → Low
assignee: nobody → Dimitri John Ledkov (xnox)
Changed in oprofile (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oprofile - 1.1.0-0ubuntu2

---------------
oprofile (1.1.0-0ubuntu2) yakkety; urgency=medium

  * Cherrypick platfroms from upstream git and mailing list:
    - Goldmont
    - z13 LP: #1581540

 -- Dimitri John Ledkov <email address hidden> Fri, 20 May 2016 11:10:58 +0100

Changed in oprofile (Ubuntu):
status: Fix Committed → Fix Released
Changed in oprofile (Ubuntu Xenial):
status: Triaged → In Progress
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello bugproxy, or anyone else affected,

Accepted oprofile into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/oprofile/1.1.0-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in oprofile (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: In Progress → Fix Committed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

With xenial-release: operf fails to obtain cpu_type.
With xenial-proposed: profiling starts correctly.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oprofile - 1.1.0-0ubuntu1.1

---------------
oprofile (1.1.0-0ubuntu1.1) xenial; urgency=medium

  * Cherrypick platfroms from upstream git and mailing list:
    - Goldmont
    - z13 LP: #1581540

 -- Dimitri John Ledkov <email address hidden> Fri, 20 May 2016 11:10:58 +0100

Changed in oprofile (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for oprofile has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Fix Committed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-09-07 08:40 EDT-------
-proposed version works fine.

oprofile 1.1.0
Ubuntu 16.04.1 LTS

thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.