This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OProfile on K2H evm

Other Parts Discussed in Thread: BIOSLINUXMCSDK

Hi,

I recently got K2H evm (Rev 3.0) and started its evaluation.
And now I have a trouble to work with OProfile.
When I started OProfile, I had the following error :-

command:

opcontrol --no-vmlinux

error:

cpu_type 'unset' is not valid

OProfile manual says that it supports timer interrupt mode as below:
http://oprofile.sourceforge.net/doc/detailed-parameters.html#timer

So I tried to OProfile with timer interrupt mode (OProfile had been built as a module and
loaded later by "insmod oprofile.ko timer=1") and OProfile itself got working now,
but its report looks curious.

The following is the result of opreport command when executing a simple hello world application:-

CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
          TIMER:0|
  samples|      %|
------------------
     6753 99.9704 no-vmlinux
        1  0.0148 bash
        1  0.0148 libc-2.15.so

As you see, timer speed looks like 0 Mhz.
I'm wondering if OProfile is really working correctly or not...
Could you please suggest me if this is expected, or the way to work without timer interrupt mode ?

Lastly, I'm using the latest version of MCSDK, i.e., v3.00. It is available from:
http://www.ti.com/tool/bioslinuxmcsdk

Best Regards,
Kawada

  • Hi, Kawada,

    Have you tried the out-of-box demo for OProfile? To run the demo, please see:

    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Getting_Started#Running_Out_of_Box_Demonstrations

    Rex

  • HI Kawada,

    I am not sure Oprofile would be good choice working on Latest ARM v7 cores because of its file system compatible

    issues on ARMv7.

    I would suggest you to move to Perf tool which would provide Oprofile like functionality in much flexible manner.

    Thanks.

    Thakur.

  • Hi Rex, Thakur,

    Rex,

    Yes, I have tried the out-of-box demo and it did not work because of the same error.

    > Thakur,

    Thanks for the information. I will try to use Perf tool instead.

    For your information:-
    A TI-Japan local support engineer tried the same and He found that re-building OProfile was needed to work correctly.
    I'll try the same later.

    Thanks,
    Kawada

  • Hi,

    I succeeded to run OProfile by rebuilding it.
    Here is a report from opreport :

    root@keystone-evm:~# opreport
    Using /var/lib/oprofile/samples/ for samples directory.
    CPU: ARM Cortex-A15, speed 613 MHz (estimated)
    Counted CPU_CYCLES events (CPU cycle) with a unit mask of 0x00 (No unit mask) count 100000
    CPU_CYCLES:100000|
    samples| %|
    ------------------
    2647 81.9251 no-vmlinux
    257 7.9542 bash
    222 6.8709 libc-2.15.so
    83 2.5689 ld-2.15.so
    10 0.3095 busybox
    10 0.3095 oprofiled
    2 0.0619 thttpd
    root@keystone-evm:~#

    Speed indicates 613Mhz but it looks like coming from BogoMIPS.
    https://github.com/cooljeanius/CodeAnalyst-3_4_18_0413-Public/blob/master/src/oprofile-0.9.6cvs/libutil/op_cpufreq.c

    So, this would not be problem.

    Thanks,
    Kawada