You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
(15) |
|
2
(24) |
3
(16) |
4
(17) |
5
(11) |
6
(20) |
7
(11) |
8
(15) |
|
9
(10) |
10
(9) |
11
(10) |
12
(24) |
13
(16) |
14
(15) |
15
(8) |
|
16
(13) |
17
(15) |
18
(35) |
19
(11) |
20
(10) |
21
(11) |
22
(9) |
|
23
(10) |
24
(9) |
25
(9) |
26
(9) |
27
(9) |
28
(12) |
29
(16) |
|
30
(12) |
|
|
|
|
|
|
|
From: <js...@ac...> - 2006-04-21 13:45:35
|
Nightly build on minnie ( SuSE 10.0, ppc32 ) started at 2006-04-21 02:00:01 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 204 tests, 12 stderr failures, 6 stdout failures, 0 posttest failures == memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/leakotron (stdout) memcheck/tests/mempool (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/sigaltstack (stderr) memcheck/tests/stack_changes (stdout) memcheck/tests/stack_changes (stderr) memcheck/tests/xml1 (stderr) none/tests/faultstatus (stderr) none/tests/mremap (stderr) none/tests/ppc32/jm-fp (stdout) none/tests/ppc32/jm-fp (stderr) none/tests/ppc32/round (stdout) none/tests/ppc32/round (stderr) none/tests/ppc32/test_fx (stdout) none/tests/ppc32/test_fx (stderr) none/tests/ppc32/test_gx (stdout) |
|
From: Tom H. <th...@cy...> - 2006-04-21 02:56:50
|
Nightly build on ford ( i686, Fedora Core 4 ) started at 2006-04-21 03:25:09 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 234 tests, 7 stderr failures, 0 stdout failures, 0 posttest failures == memcheck/tests/leak-tree (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: <js...@ac...> - 2006-04-21 02:56:00
|
Nightly build on g5 ( YDL 4.0, ppc970 ) started at 2006-04-21 04:40:00 CEST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 210 tests, 6 stderr failures, 3 stdout failures, 0 posttest failures == memcheck/tests/deep_templates (stdout) memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/leakotron (stdout) memcheck/tests/pointer-trace (stderr) none/tests/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) none/tests/mremap (stderr) none/tests/ppc32/mftocrf (stdout) |
|
From: Tom H. <to...@co...> - 2006-04-21 02:46:06
|
Nightly build on dunsmere ( athlon, Fedora Core 5 ) started at 2006-04-21 03:30:07 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 236 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/mempool (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/sse1_memory (stdout) memcheck/tests/xml1 (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-04-21 02:33:38
|
Nightly build on alvis ( i686, Red Hat 7.3 ) started at 2006-04-21 03:15:04 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 235 tests, 21 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/addressable (stderr) memcheck/tests/badjump (stderr) memcheck/tests/describe-block (stderr) memcheck/tests/erringfds (stderr) memcheck/tests/leak-0 (stderr) memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-regroot (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/match-overrun (stderr) memcheck/tests/mempool (stderr) memcheck/tests/partial_load_dflt (stderr) memcheck/tests/partial_load_ok (stderr) memcheck/tests/partiallydefinedeq (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/sigkill (stderr) memcheck/tests/stack_changes (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/x86/sse1_memory (stdout) memcheck/tests/xml1 (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-04-21 02:28:12
|
Nightly build on dellow ( x86_64, Fedora Core 5 ) started at 2006-04-21 03:10:04 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 258 tests, 5 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/sse1_memory (stdout) memcheck/tests/xml1 (stderr) none/tests/amd64/faultstatus (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-04-21 02:20:54
|
Nightly build on aston ( x86_64, Fedora Core 3 ) started at 2006-04-21 03:05:04 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 258 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/x86/sse1_memory (stdout) memcheck/tests/xml1 (stderr) none/tests/amd64/faultstatus (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-04-21 02:16:07
|
Nightly build on gill ( x86_64, Fedora Core 2 ) started at 2006-04-21 03:00:02 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 258 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/x86/sse1_memory (stdout) none/tests/amd64/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: <js...@ac...> - 2006-04-21 01:26:03
|
Nightly build on phoenix ( SuSE 10.0 ) started at 2006-04-21 03:30:01 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 234 tests, 6 stderr failures, 0 stdout failures, 0 posttest failures == memcheck/tests/leak-tree (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: <sv...@va...> - 2006-04-21 01:02:15
|
Author: weidendo
Date: 2006-04-21 02:02:13 +0100 (Fri, 21 Apr 2006)
New Revision: 5862
Log:
Another fix for interactive control, together with
the --base option, which allows to specify another
directory for dumps and control/result files.
With "--base=3D/tmp/foo", we want control/result files
in "/tmp", and not in a directory "/tmp/foo/".
Modified:
trunk/callgrind/dump.c
Modified: trunk/callgrind/dump.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/dump.c 2006-04-21 00:58:58 UTC (rev 5861)
+++ trunk/callgrind/dump.c 2006-04-21 01:02:13 UTC (rev 5862)
@@ -1659,6 +1659,7 @@
lastSlash =3D i;
i++;
}
+ i =3D lastSlash;
base_directory =3D (Char*) CLG_MALLOC(i+1);
VG_(strncpy)(base_directory, CLG_(clo).filename_base, i);
base_directory[i] =3D 0;
|
|
From: <sv...@va...> - 2006-04-21 00:59:10
|
Author: weidendo
Date: 2006-04-21 01:58:58 +0100 (Fri, 21 Apr 2006)
New Revision: 5861
Log:
Fixes for interactive control:
- callgrind_control was not working, because it checks the
"command syntax version" to be at most 1 before doing anything.
But callgrind used Valgrinds version for this (3.2.0). Now we
define a separate version COMMAND_VERSION for the syntax format
of control and result files.
Strictly, such a version is not needed for interaction of
callgrind and the script callgrind_control itself, as they are
delivered in the same package. But there are also external
controlling tools (most notable KCachegrind)
- Some systems make it difficult for callgrind_control to
automatically detect running callgrind processes. To make
interactivity work, one has to provide the cwd with -w.
For commands expecting a result from callgrind, this result
was delivered in the wrong result file.
Modified:
trunk/callgrind/callgrind_control.in
trunk/callgrind/command.c
Modified: trunk/callgrind/callgrind_control.in
=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/callgrind_control.in 2006-04-20 14:38:50 UTC (rev 586=
0)
+++ trunk/callgrind/callgrind_control.in 2006-04-21 00:58:58 UTC (rev 586=
1)
@@ -37,7 +37,7 @@
open MAP, "<$mapfile";
$found =3D 0;
while(<MAP>) {
- # works both for VG 3.0 and VG 3.1
+ # works both for VG 3.0 and VG 3.1+
if (/callgrind/) { $found =3D 1; }
}
close MAP;
@@ -54,7 +54,7 @@
close INFO;
=20
if ($mversion{$pid} > 1) {
- #print " Unsupported Callgrind Major Version $mversion.\n\n";
+ print " $pid: Unsupported command interface (version $mversion) ?!=
\n\n";
next;
}
=20
@@ -290,12 +290,11 @@
if ($workingDir ne "") {
# Generate dummy information for dummy pid 0
$pid =3D "0";
- $mversion{$pid} =3D "@VERSION@";
+ $mversion{$pid} =3D "1.0";
$cmd{$pid} =3D "???";
$base{$pid} =3D $workingDir;
$control{$pid} =3D "$workingDir/callgrind.cmd";
- # do not wait for any result...
- $result{$pid} =3D "";
+ $result{$pid} =3D "$workingDir/callgrind.res";
=20
# Only handle this faked callgrind run
@pids =3D ($pid);
@@ -328,7 +327,7 @@
=20
foreach $pid (@pids) {
$pidstr =3D "PID $pid: ";
- print $pidstr.$cmd{$pid};
+ if ($pid >0) { print $pidstr.$cmd{$pid}; }
=20
if ($command eq "") {
if ($printLong) {
@@ -355,6 +354,7 @@
}
}
=20
+ #print "Reading ".$result{$pid}. "...\n";
if ($result{$pid} eq "") { $waitForAnswer=3D0; }
if (!$waitForAnswer) { print " OK.\n"; next; }
=20
Modified: trunk/callgrind/command.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/command.c 2006-04-20 14:38:50 UTC (rev 5860)
+++ trunk/callgrind/command.c 2006-04-21 00:58:58 UTC (rev 5861)
@@ -34,11 +34,17 @@
=20
#include <pub_tool_threadstate.h> // VG_N_THREADS
=20
+// Version for the syntax in command/result files for interactive contro=
l
+#define COMMAND_VERSION "1.0"
+
static Char outbuf[FILENAME_LEN + FN_NAME_LEN + OBJ_NAME_LEN];
=20
static Char* command_file =3D 0;
static Char* command_file2 =3D 0;
+static Char* current_command_file =3D 0;
static Char* result_file =3D 0;
+static Char* result_file2 =3D 0;
+static Char* current_result_file =3D 0;
static Char* info_file =3D 0;
static Char* dump_base =3D 0;
=20
@@ -60,7 +66,6 @@
/* This is for compatibility with the "Force Now" Button of current
* KCachegrind releases, as it doesn't use ".pid" to distinguish
* different callgrind instances from same base directory.
- * Should be removed sometimes in the future (29.10.03)
*/
command_file2 =3D (char*) CLG_MALLOC(size);
CLG_ASSERT(command_file2 !=3D 0);
@@ -73,6 +78,14 @@
VG_(sprintf)(result_file, "%s/%s.%d",
dir, DEFAULT_RESULTNAME, VG_(getpid)());
=20
+ /* If we get a command from a command file without .pid, use
+ * a result file without .pid suffix
+ */
+ result_file2 =3D (char*) CLG_MALLOC(size);
+ CLG_ASSERT(result_file2 !=3D 0);
+ VG_(sprintf)(result_file2, "%s/%s",
+ dir, DEFAULT_RESULTNAME);
+
info_file =3D (char*) CLG_MALLOC(VG_(strlen)(DEFAULT_INFONAME) + 10);
CLG_ASSERT(info_file !=3D 0);
VG_(sprintf)(info_file, "%s.%d", DEFAULT_INFONAME, VG_(getpid)());
@@ -105,15 +118,11 @@
"# It is used to enable controlling the supervision of\n"
"# '%s'\n"
"# by external tools.\n\n",
-#if VG_CORE_INTERFACE_VERSION < 9
- VG_(client_argv[0])
-#else
VG_(args_the_exename)
-#endif
);
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
=20
- VG_(sprintf)(buf, "version: " VERSION "\n");
+ VG_(sprintf)(buf, "version: " COMMAND_VERSION "\n");
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
=20
VG_(sprintf)(buf, "base: %s\n", dir);
@@ -130,13 +139,6 @@
=20
VG_(strcpy)(buf, "cmd:");
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
-#if VG_CORE_INTERFACE_VERSION < 9
- for (i =3D 0; i < VG_(client_argc); i++) {
- if (!VG_(client_argv[i])) continue;
- VG_(sprintf)(buf, " %s", VG_(client_argv[i]));
- VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
- }
-#else
VG_(sprintf)(buf, " %s", VG_(args_the_exename));
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
for (i =3D 0; i < VG_(args_for_client).used; i++) {
@@ -144,7 +146,6 @@
VG_(sprintf)(buf, " %s", VG_(args_for_client).strs[i]);
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
}
-#endif
VG_(write)(fd, "\n", 1);
VG_(close)(fd);
}
@@ -166,7 +167,8 @@
if (fd > -2) return fd;
=20
/* fd =3D=3D -2: No error, but we need to create the file */
- res =3D VG_(open)(result_file,
+ CLG_ASSERT(current_result_file !=3D 0);
+ res =3D VG_(open)(current_result_file,
VKI_O_CREAT|VKI_O_WRONLY|VKI_O_TRUNC,
VKI_S_IRUSR|VKI_S_IWUSR);
=20
@@ -179,7 +181,7 @@
return fd;
}
=20
-/* Run Info: Fixed information for a callgrind run */
+/* Run Info: Persistant information of the callgrind run */
static Int dump_info(Int fd)
{
Char* buf =3D outbuf;
@@ -187,8 +189,12 @@
=20
if ( (fd =3D createRes(fd)) <0) return fd;
=20
+ /* creator */
+ VG_(sprintf)(buf, "creator: callgrind-" VERSION "\n");
+ VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
+
/* version */
- VG_(sprintf)(buf, "version: " VERSION "\n");
+ VG_(sprintf)(buf, "version: " COMMAND_VERSION "\n");
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
=20
/* "pid:" line */
@@ -202,13 +208,6 @@
/* "cmd:" line */
VG_(strcpy)(buf, "cmd:");
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
-#if VG_CORE_INTERFACE_VERSION < 9
- for (i =3D 0; i < VG_(client_argc); i++) {
- if (!VG_(client_argv[i])) continue;
- VG_(sprintf)(buf, " %s", VG_(client_argv[i]));
- VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
- }
-#else
VG_(sprintf)(buf, " %s", VG_(args_the_exename));
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
for (i =3D 0; i < VG_(args_for_client).used; i++) {
@@ -216,7 +215,7 @@
VG_(sprintf)(buf, " %s", VG_(args_for_client).strs[i]);
VG_(write)(fd, (void*)buf, VG_(strlen)(buf));
}
-#endif
+ VG_(write)(fd, "\n", 1);
=20
return fd;
}
@@ -355,17 +354,17 @@
static Char cmdBuffer[512];
Char *cmdPos =3D 0, *cmdNextLine =3D 0;
Int fd, bytesRead =3D 0, do_kill =3D 0;
- static Char* cfile =3D 0;
SysRes res;
=20
if (!command_inited) return;
=20
/* toggle between 2 command files, with/without ".pid" postfix */
- cfile =3D ((cfile =3D=3D command_file) || (cfile =3D=3D 0)) ?=20
- command_file2 : command_file;
+ current_command_file =3D (current_command_file =3D=3D command_file2)=
?=20
+ command_file : command_file2;
+ current_result_file =3D (current_command_file =3D=3D command_file2)=
?
+ result_file2 : result_file; =20
=20
- =20
- res =3D VG_(open)(cfile, VKI_O_RDONLY,0);
+ res =3D VG_(open)(current_command_file, VKI_O_RDONLY,0);
if (!res.isError) {
fd =3D (Int) res.val;
bytesRead =3D VG_(read)(fd,cmdBuffer,500);
@@ -505,12 +504,12 @@
}
=20
/* If command executed, delete command file */
- if (cmdPos) VG_(unlink)(cfile);
+ if (cmdPos) VG_(unlink)(current_command_file);
if (fd>=3D0) VG_(close)(fd); =20
=20
if (do_kill) {
VG_(message)(Vg_UserMsg,
- "Killed because of command from %s", cfile);
+ "Killed because of command from %s", current_command_file);
CLG_(fini)(0);
VG_(exit)(1);
}
|