Hello Valgrind Team,
I am a new user, I am doing a "hello world" test of Valgrind but i keep hitting this error: -------------------------------------------------------------------------------- Ir file:function -------------------------------------------------------------------------------- 2,709 ???:getenv [/home/otro/arm_emulator/hello_x86] 1,133 ???:_int_malloc [/home/otro/arm_emulator/hello_x86] 813 ???:intel_check_word [/home/otro/arm_emulator/hello_x86] 792 ???:malloc_consolidate [/home/otro/arm_emulator/hello_x86] 783 ???:_IO_file_overflow [/home/otro/arm_emulator/hello_x86] I have an x86_64 intel processor and running Ubuntu 14.10. I am compiling a simple hello world program. I set the HOME and LOGNAME env variables. This is the command that I used, as you can see I used -g and -O0 options as suggested. $ gcc -static -g -O0 hello.c -o hello_x86 Then I ran the executable with valgrind options, like below (the log is attached): $ valgrind -d -v --tool=callgrind ./hello_x86 But when I try to see the analysis with callgrind I get: Ir -------------------------------------------------------------------------------- 11,737 PROGRAM TOTALS -------------------------------------------------------------------------------- Ir file:function -------------------------------------------------------------------------------- 2,709 ???:getenv [/home/otro/arm_emulator/hello_x86] 1,133 ???:_int_malloc [/home/otro/arm_emulator/hello_x86] 813 ???:intel_check_word [/home/otro/arm_emulator/hello_x86] 792 ???:malloc_consolidate [/home/otro/arm_emulator/hello_x86] 783 ???:_IO_file_overflow [/home/otro/arm_emulator/hello_x86] 555 ???:strncmp [/home/otro/arm_emulator/hello_x86] 435 ???:ptmalloc_init.part.7 [/home/otro/arm_emulator/hello_x86] 361 ???:(below main) [/home/otro/arm_emulator/hello_x86] 342 ???:_IO_default_xsputn [/home/otro/arm_emulator/hello_x86] 311 ???:_dl_init_paths [/home/otro/arm_emulator/hello_x86] And I cant see the cost of the functions . What can be the problem? Some logs are attached, i hope they are helpful. Raul.
Hello world_perftest!
callgrind.out.3615
Description: callgrind.out.3615
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users