OK, it works fine. I know the exact problem now. Thanks.
At 2011-01-01 21:16:52,"Sergey Senozhatsky" <[email protected]> wrote: >> The whole gdb backtrace is: >> >> #0 0xb804f424 in __kernel_vsyscall () >> #1 0x00b7dd80 in raise () from /lib/libc.so.6 >> #2 0x00b7f691 in abort () from /lib/libc.so.6 >> #3 0x00bb624b in __libc_message () from /lib/libc.so.6 >> #4 0x00bbe0f1 in _int_free () from /lib/libc.so.6 >> #5 0x00bc1bc0 in free () from /lib/libc.so.6 >> #6 0x0805d289 in perf_event::set_event_name (this=0xc94ff4, >> event_name=0x8089a6b "power:power_frequency") at perf/perf.cpp:153 >> #7 0x0805d752 in perf_bundle::add_event (this=0x8097de0, >> event_name=0x8089a6b "power:power_frequency") at >> perf/perf_bundle.cpp:68 >> #8 0x08054e7d in enumerate_cpus () at cpu/cpu.cpp:242 >> #9 0x0804e77d in main (argc=1, argv=0xbff2a7b4) at main.cpp:175 >> I think free "power:power_frequency" is the porblem. >> At 2011-01-01 08:35:00��wkq5325 <[email protected]> wrote: >> > > >Please try the following one > >--- > > perf/perf.cpp | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >diff --git a/perf/perf.cpp b/perf/perf.cpp >index c9758ff..b2d0592 100644 >--- a/perf/perf.cpp >+++ b/perf/perf.cpp >@@ -177,6 +177,7 @@ void perf_event::set_cpu(int _cpu) > > perf_event::perf_event(const char *event_name, int _cpu, int buffer_size) > { >+ name = NULL; > set_event_name(event_name); > perf_fd = -1; > bufsize = buffer_size; >@@ -186,6 +187,7 @@ perf_event::perf_event(const char *event_name, int _cpu, >int buffer_size) > > perf_event::perf_event(void) > { >+ name = NULL; > perf_fd = -1; > bufsize = 128; > perf_mmap = NULL; >
_______________________________________________ Discuss mailing list [email protected] http://lists.lesswatts.org/listinfo/discuss
