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.

Linux/PROCESSOR-SDK-AM335X: Printk Timer query

Part Number: PROCESSOR-SDK-AM335X


Tool/software: Linux

Hi Ti ,

I am currently using this tag : TI-PROCESSOR-SDK-LINUX-AUTOMOTIVE-DRA7XX-EVM-03.00.00.03 in my kernel . I can see the following message at my console :

 [    0.000000] clock: associated clk clkdiv32k_ick to clkdm clk_24mhz_clkdm
 [    0.000000] omap2: timer: OMAP clockevent source: timer3 at 19200000 Hz
 [    0.000024] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 111848106981ns
 [    0.000065] clocksource: timer2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 99544814920 ns
 [    0.000087] omap2: timer: OMAP clocksource: timer2 at 19200000 Hz

I have two query here :

1) why the sched_lcok time will stat from 0.000024 msec .

2) As per  my understanding , priintk will use sched_clock for timing but is it possible to start or get absolute  time after [    0.000000] Booting Linux on physical CPU 0x0 .] .

I want to measure the from target reset so It will be goof if i can start the timer earlier or let me know if any other way to measure the time .

I can see timer2 is initialized at boot loader so it is possible not to re-initialize it at kernel and can use the same counter value ?

Regards

Chinmoy

  • Hi
    Please note that the TI-PROCESSOR-SDK-LINUX-AUTOMOTIVE-DRA7XX-EVM-03.00.00.03 does not support AM335x platform. You will need to download appropriate SDK release for AM335x - refer to the landing page on ti.com for the right download link(search for AM335x )

    If your intent is profile the exact time spent in the boot process including the bootloader phases, you will need additional instrumentation for this.
    Please refer to additional instructions specified in www.ti.com/.../sprac82.pdf