Re: Clarification on support of arm32 with kernel4.1 for oprofile 1.2.0

Michael Petlan <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <alpine.LRH.2.20.1803201701360.15659@Diego>
Hi Vinoth!

This looks good, your machine's PMU and kernel seems to be OK.

You need to do `make install` to have all the sub-tools installed
in $PATH. Your operf wants to run `ophelp` to find the default
event to be used. It does not find it in path, so it fails. I'd
recommend to do the full installation process. You can specify
various things to ./configure (target prefixes, etc.).

Cheers,
Michael

On Tue, 20 Mar 2018, Vinoth Natarajan wrote:
> Hello Michael,
> 
> Good Day!!!
> 
> Tried running the oprofile-1.2.0 on different ARM hardware which supports PMU.
> But when we try to run operf binary,it show the following error.
> 
> # ./operf --system-wide
> sh: /home/oprofile/bin/ophelp: not found
> Unable to find info for event CPU_CYCLES
> I have tried in internet about this error, No luck.
> Could you please let us know about this error.
> 
> Note :-
> Following are the kernel configs related to PERF enabled on this 4.1 kernel.
> CONFIG_HAVE_PERF_EVENTS=y
> CONFIG_PERF_USE_VMALLOC=y
> CONFIG_PERF_EVENTS=y
> # CONFIG_DEBUG_PERF_USE_VMALLOC is not set
> CONFIG_HAVE_PERF_REGS=y
> CONFIG_HAVE_PERF_USER_STACK_DUMP=y
> # CONFIG_PCIEASPM_PERFORMANCE is not set
> CONFIG_HW_PERF_EVENTS=y
> 
> 
> Code given from you is able to get the expected output from the new hardware.
> 
> ioctl(fd, PERF_EVENT_IOC_RESET, 0);
> ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);
> 
> printf("Measuring instruction count for this printf\n");
> 
> ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
> read(fd, &count, sizeof(long long));
> 
> printf("Used %lld instructions\n", count);
> # ./hello_test_oprofile.o
> Measuring instruction count for this printf
> Used 3660 instructions
> 
> On Tue, Feb 20, 2018 at 11:11 AM, Vinoth Natarajan <[email protected]> wrote:
>       Hello Michael,
> Thanks so much for your valuable support.
> 
> For time being am planning to use oprofile-0.9.9 version itself.
> Could you please share the test cases you have used to test the oprofile functionalities to its full potential.
> 
> Kindly share all the test cases you have used, so that i dont miss on any test case/functionality of oprofile while i test.
> 
> Thanks in advance!!!
> 
> Thanks and Regards,
> Vinoth Natarajan.
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
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.