hi all:
I have some questions about massif:
1. from massif.out file, I cannot tell where the free is called
    I compile the sample code in the document page as below and get
the massif output. From the log, there are messages about where
"malloc" is called, but I cannot find the place for "free".
    is there any option I need to add when using massif tool or config
I need to add when compile the valgrind?
( in the smple I attach, the line#28 is where "free" is called, but
there is no such information in the massif output)

2. there is a option call "--trace-children=yes" to capture all
children information.
is it possible to limit the specific child name for tracking?
if possile, should I use some other valgrind execution options or
modify the source code?

appreciate all your kind help in advance,

Attachment: massif.out.5744
Description: Binary data

      #include <stdlib.h>

      void g(void)
      {
         malloc(4000);
      }

      void f(void)
      {
         malloc(2000);
         g();
      }

      int main(void)
      {
         int i;
         int* a[10];

         for (i = 0; i < 10; i++) {
            a[i] = malloc(1000);
         }

         f();

         g();

         for (i = 0; i < 10; i++) {
            free(a[i]);
         }

         return 0;
      }
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to