Public bug reported:

---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/cpu_type file exists, locate the pre-1.0 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:~/oprofile/pe_profiling$ sudo ./operf --version
./operf: oprofile 1.2.0git compiled on Jul 12 2017 04:05:47
guest@perfbos12:~/oprofile/pe_profiling$

However i could not able to run operf and collect profiling data

guest@perfbos12:~/oprofile/pe_profiling$ sudo ./operf -e PM_RUN_CYC:3000000 -g 
-s
sh: 1: /usr/local/bin//ophelp: not found
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:~/oprofile/pe_profiling$

This command works on P8 but fails on P9

Following two commits are fixed by Will Schmidt,

f5a8f00559e030fd874ab4e046814d638343b054
ce5842f112d155a7148a44a7863cf4355c1385e0

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.

** Affects: oprofile (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
         Status: New


** Tags: architecture-ppc64 bugnameltc-156547 severity-high 
targetmilestone-inin16043

** Tags added: architecture-ppc64 bugnameltc-156547 severity-high
targetmilestone-inin16043

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

Title:
  operf not enabled on P9

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to