On Sun, 2015-12-13 at 20:43 +0800, yoma sophian wrote:

> hi Philippe:
> I compile the trunk valgrind with ur patch, but I still cannot see the
> location of mmap I put in the c file, even I set the --threshold=0.0.
> (I attach the c file and mass output as well)
--threshold indicates the threshold below which massif does not show
the details of the memory.
Details will be shown in 2 different kinds of snapshots:
* peak snapshots
* detailed snapshots

In your case, I guess that the file you are mmap-ing is too small to be
the peak, and you do not have a detailed snaphot being taken between
the mmap and the munmap.
E.g. try to mmap a much bigger file, to ensure that the peak is reached
by the mmap you are doing, and not any other operations.


> BTW, would you please let me know how to compile and run the programs
> in massif/tests?
in valgrind top directory, to compile/install locally and run all
regtests:

 ./configure --prefix=`pwd`/Inst
make install
make regtest

Philippe



------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to