operf not enabled on P9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
High
|
Canonical Foundations Team | ||
oprofile (Ubuntu) |
Fix Released
|
Undecided
|
Ubuntu on IBM Power Systems Bug Triage |
Bug Description
---Problem Description---
The tool Operf (distro) not enebled on P9. gives error "Unable to obtain cpu_type"
---uname output---
Linux perfbos12 4.10.0-25-generic #29~16.04.1-Ubuntu SMP Tue Jun 20 15:49:09 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = product: 9006-22C serial: 1302NDA width: 64 bits, P9
---Steps to Reproduce---
guest@perfbos12:~$ sudo operf
Unable to obtain cpu_type
Verify that a pre-1.0 version of OProfile is not in use.
If the /dev/oprofile/
installation, and use its 'opcontrol' command, passing the --deinit option.
Unable to ascertain cpu type. Exiting.
guest@perfbos12:~$
Userspace tool common name: operf
With the downloaded latest opprofile source code the cpu_type issue is not seen
guest@perfbos12
./operf: oprofile 1.2.0git compiled on Jul 12 2017 04:05:47
guest@perfbos12
However i could not able to run operf and collect profiling data
guest@perfbos12
sh: 1: /usr/local/
Error retrieving info for event PM_RUN_CYC:3000000
Note: When doing callgraph profiling, the sample count must be
15 times the minimum count value for the event.
guest@perfbos12
This command works on P8 but fails on P9
Following two commits are fixed by Will Schmidt,
f5a8f00559e030f
ce5842f112d155a
I'm attaching the debdiff containing both patches that add support for Power9. Note that it still missing the LP ID.
I tested the oprofile package from my PPA in a Power9 machine (ltc-wspoon3 machine with Ubuntu 16.04.2) and it worked fine to profile and report samples.
tags: | added: triage-g |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
tags: |
added: severity-critical removed: severity-high |
tags: |
added: triage-a removed: triage-g |
Changed in ubuntu-power-systems: | |
status: | New → Fix Released |
tags: |
added: triage-g removed: triage-a |
tags: | added: universe |
Default Comment by Bridge