Hi Daniel,
It runs well on my board so far.
I will try to do more test to reproduce it. Meanwhile, could you please print your clock tree for me? Using 'powerdebug -cvd'.
Cheers
Yong
On Wed, Apr 6, 2011 at 8:45 PM, Daniel Lezcano
<daniel.lezcano@free.fr> wrote:
Hi Yong,
I tried this patch but it segfaults :/
gdb powerdebug core
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/dlezcano/work/src/powerdebug/powerdebug...done.
[New Thread 7821]
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.3
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Core was generated by `./powerdebug'.
Program terminated with signal 11, Segmentation fault.
#0 add_clock_details_recur (clock=0x76040018, hrow=0, selected=0) at clocks.c:258
258 double drate = (double)clock->rate;
(gdb) bt
#0 add_clock_details_recur (clock=0x76040018, hrow=0, selected=0) at clocks.c:258
#1 0x0000ad68 in print_clock_info (verbose=<value optimized out>, hrow=0, selected=0) at clocks.c:305
#2 0x0000ae9e in read_and_print_clock_info (verbose=0, hrow=0, selected=0) at clocks.c:215
#3 0x000098a8 in mainloop (options=0x1feb008, reg_info=0x1feb020, nr_reg=6) at powerdebug.c:275
#4 0x00009a48 in powerdebug_display (argc=<value optimized out>, argv=<value optimized out>) at powerdebug.c:341
#5 main (argc=<value optimized out>, argv=<value optimized out>) at powerdebug.c:390
(gdb)
Feel free if you need more informations.
Thanks
-- Daniel