Re: Ask help for oprofile
William Cohen <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
On 02/10/2015 03:29 AM, SHENG Jason wrote: > Hi Cohen, > > > > From the oprpfile webpage, I found you are the current maintainers and primary contributes. And I found your mail address in webpage too. During use the oprofile on my own board, I hit an error, searched in internet, but no more help. Could you give me a hand? The following is the detailed information. > > > > My board uses a ARM cpu, arm1176s. I used the cross-compile tool built out the oprofile tools and ship to my board with supported files, such as (events, unit_masks). > > But when I start the “opcontrol”, it hit the following error. I searched the source code, the error message was printed in function check_unit_mask(), could you please give me a hand? Let the opcontrol can be run on my board. > > > > ~/oprofile/bin # > > ~/oprofile/bin # ./opcontrol --start > > mandatory um zero doesn't contain exactly one entry (arm/armv6) > > Using default event: CPU_CYCLES:100000:0:1:1 > > mandatory um zero doesn't contain exactly one entry (arm/armv6) > > ~/oprofile/bin # > > ~/oprofile/bin # > > ~/oprofile/bin # ./opcontrol --setup --event=CPU_CYCLES:1000:0:0:1 --session-dir=/home/opt > > mandatory um zero doesn't contain exactly one entry (arm/armv6) > > ~/oprofile/bin # > > ~/oprofile/bin # > > > > Thanks, > > Jason > > > Hi Jason, I am including the oprofile mailing list because others might come across the same problem. I tried a similar experiment with oprofile-0.9.9 on a "ARM Cortex-A9" which should have similar event. It doesn't appear to have that problem: [wcohen@wecf19arm ~]$ ophelp -d CPU_CYCLES:100000:0:1:1 [wcohen@wecf19arm ~]$ sudo opcontrol --start --no-vmlinux ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf. Using default event: CPU_CYCLES:100000:0:1:1 Using 2.6+ OProfile kernel interface. Using log file /var/lib/oprofile/samples/oprofiled.log Daemon started. Profiler running. What version of OProfile are you using? Also could you attach the events/arm/armv6/events and events/arm/armv6/unit_masks files from the version of oprofile you are using? -Will ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/