|
From: <sv...@va...> - 2006-03-31 13:16:28
|
Author: weidendo
Date: 2006-03-31 14:16:15 +0100 (Fri, 31 Mar 2006)
New Revision: 5806
Log:
Option --dump-every-bb now takes a 64bit value on user
request. Update/clarify documentation.
Modified:
trunk/callgrind/clo.c
trunk/callgrind/docs/cl-manual.xml
trunk/callgrind/global.h
trunk/callgrind/threads.c
Modified: trunk/callgrind/clo.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/callgrind/clo.c 2006-03-31 12:53:22 UTC (rev 5805)
+++ trunk/callgrind/clo.c 2006-03-31 13:16:15 UTC (rev 5806)
@@ -618,7 +618,7 @@
CLG_(clo).dump_bb =3D False;
=20
else if (0 =3D=3D VG_(strncmp)(arg, "--dump-every-bb=3D", 16))
- CLG_(clo).dump_every_bb =3D (Int)VG_(atoll)(&arg[16]);
+ CLG_(clo).dump_every_bb =3D (ULong)VG_(atoll)(&arg[16]);
=20
=20
else if (0 =3D=3D VG_(strcmp)(arg, "--collect-alloc=3Dyes"))
Modified: trunk/callgrind/docs/cl-manual.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/callgrind/docs/cl-manual.xml 2006-03-31 12:53:22 UTC (rev 5805)
+++ trunk/callgrind/docs/cl-manual.xml 2006-03-31 13:16:15 UTC (rev 5806)
@@ -235,9 +235,7 @@
<para><command>Periodic dumping after execution of a specified
number of basic blocks</command>. For this, use the command line
option <option><xref linkend=3D"opt.dump-every-bb"/>=3Dcount</opti=
on>.
- The resultion of the internal basic block counter of Valgrind is
- only rough, so you should at least specify a interval of 50000
- basic blocks.</para>
+ </para>
</listitem>
=20
<listitem>
@@ -539,7 +537,11 @@
<option><![CDATA[--dump-every-bb=3D<count> [default: 0, never] ]]>=
</option>
</term>
<listitem>
- <para>Dump profile data each <count> basic blocks</para>
+ <para>Dump profile data every <count> basic blocks.
+ Whether a dump is needed is only checked when Valgrinds internal
+ scheduler is run. Therefore, the minimum setting useful is about 1=
00000.
+ The count is a 64-bit value to make long dump periods possible.
+ </para>
</listitem>
</varlistentry>
=20
Modified: trunk/callgrind/global.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/callgrind/global.h 2006-03-31 12:53:22 UTC (rev 5805)
+++ trunk/callgrind/global.h 2006-03-31 13:16:15 UTC (rev 5806)
@@ -70,7 +70,7 @@
Bool dump_bbs; /* Dump basic block information? */
=20
/* Dump generation options */
- Int dump_every_bb; /* Dump every xxx BBs. */
+ ULong dump_every_bb; /* Dump every xxx BBs. */
=20
/* Collection options */
Bool separate_threads; /* Separate threads in dump? */
Modified: trunk/callgrind/threads.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/callgrind/threads.c 2006-03-31 12:53:22 UTC (rev 5805)
+++ trunk/callgrind/threads.c 2006-03-31 13:16:15 UTC (rev 5806)
@@ -182,7 +182,7 @@
=20
if (CLG_(clo).dump_every_bb >0) {
if (CLG_(stat).bb_executions - bbs_done > CLG_(clo).dump_every_bb=
) {
- VG_(sprintf)(buf, "--dump-every-bb=3D%d", CLG_(clo).dump_ever=
y_bb);
+ VG_(sprintf)(buf, "--dump-every-bb=3D%llu", CLG_(clo).dump_ev=
ery_bb);
CLG_(dump_profile)(buf, False);
bbs_done =3D CLG_(stat).bb_executions;
}
|