You need to enable  CONFIG_DEBUG_KERNEL _and_ CONFIG_TIMER_STATS

Then, yous should be able to grab timer statistics with:

echo 1 > /proc/timer_stats
cat  /proc/timer_stats


David


Carlos Hernan Prada Rojas wrote:
Thanks a lot!

I was able to compile and to execute powertop on top of a sh4 processor :)

However, after starting, it shows me the following message :

--------8<--------------------------------------8<---------------------------------------------------------
No detailed statistics available; please enable the CONFIG_TIMER_STATS kernel option
This option is located in the Kernel Debugging section of menuconfig
(which is CONFIG_DEBUG_KERNEL=y in the config file)
Note: this is only available in 2.6.21 and later kernels
--------8<--------------------------------------8<---------------------------------------------------------

I've recompiled my kernel updating the variable CONFIG_DEBUG_KERNEL, but powertop continues showing me the same message.

For information, an uname -a gives:

Linux board-idtv 2.6.23.17_stm23_A18B-IDTV7109_7109-STSDK #1 PREEMPT Wed Nov 25 15:53:15 CET 2009 sh4 unknown unknown GNU/Linux

Apparently, I'm using a supported version of kernel.

Thanks ahead of help.

Regards,

Carlos Prada.


------------------------------------------------------------------------
*De :* David SIORPAES <[email protected]>
*À :* [email protected]
*Envoyé le :* Ven 20 Novembre 2009, 13 h 28 min 19 s
*Objet :* Problems on compiling powertop on a SH4 Platform

You could also use

/-lncurses


instead of
//-lncursesw
/


_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to