Re: Clarification on support of arm32 with kernel4.1 for oprofile 1.2.0
Vinoth Natarajan <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <CADaxUdFowDNNzkprYqeZ8yTW8e84_DEPAPQ8LhP49aBJVtC-hQ@mail.gmail.com> |
Hello Team, opreport on oprofile-1.2.0 is throwing the following error. ./opreport -l /bin/abc Using /lib/oprofile/bin/oprofile_data/samples/ for samples directory. error: no sample files found: profile specification too strict ? same was working fine in oprofile-0.9.9. I have added all the dependencies and kernel configs . Please share your thoughts on this. Thanks and Regards, Vinoth Natarajan. On Tue, Mar 20, 2018 at 9:44 PM, Michael Petlan <[email protected]> wrote: > 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 _______________________________________________ oprofile-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oprofile-list