Re: Announcement: Release Candidate 1 for OProfile 1.0.0

Will Deacon <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Hi Will,

On Fri, Sep 05, 2014 at 06:28:24PM +0100, William Cohen wrote:
> I noticed that the kernel was reporting instruction counts for ARM cortex
> a9. It looks like it is using the following INS_RENAME, 0x68 instead.
> "perf stat" reports cpu cycles on cortex a9, but operf on cortex a9
> returns the following (it work fine on a cortex a15):
> 
> [root@dhcp129-63 testsuite]# operf stat ls
> perf_event_open failed with Operation not supported
> Caught runtime_error: Internal Error.  Perf event setup failed.
> Error running profiler

Strange... it seems to work fine on my A9-based board:

will@room-service:~$ operf stat /bin/ls
Kernel profiling is not possible with current system config.
Set /proc/sys/kernel/kptr_restrict to 0 to collect kernel samples.
operf: Profiler started
  File: ‘/bin/ls’
    Size: 71792	Blocks: 144        IO Block: 4096   regular file
    Device: dh/13d	Inode: 28841156    Links: 1
    Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2014-09-08 12:41:43.585078000 +0000
    Modify: 2014-04-15 06:29:21.000000000 +0000
    Change: 2014-06-16 09:53:58.981624000 +0000
     Birth: -

     Profiling done

$ opreport
Using /home/will/oprofile_data/samples/ for samples directory.
CPU: ARM Cortex-A9
Counted CPU_CYCLES events (CPU cycle) with a unit mask of 0x00 (No unit mask) count 100000
CPU_CYCLES:100000|
  samples|      %|
------------------
      104 100.000 stat
	CPU_CYCLES:100000|
	  samples|      %|
	------------------
	       85 81.7308 no-vmlinux
	       12 11.5385 ld-2.19.so
	        7  6.7308 libc-2.19.so

$ uname -a
Linux room-service 3.16.0 #3 SMP PREEMPT Mon Sep 8 14:05:54 BST 2014 armv7l GNU/Linux

Will

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.