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
(16) |
2
(7) |
3
(9) |
4
(12) |
5
(20) |
|
6
(24) |
7
(10) |
8
(7) |
9
(17) |
10
(9) |
11
(7) |
12
(8) |
|
13
(12) |
14
(17) |
15
(15) |
16
(15) |
17
(21) |
18
(9) |
19
(17) |
|
20
(16) |
21
(12) |
22
(18) |
23
(8) |
24
(2) |
25
(17) |
26
(23) |
|
27
(30) |
28
(19) |
29
(14) |
30
(11) |
|
|
|
|
From: <sv...@va...> - 2008-04-26 18:57:12
|
Author: bart Date: 2008-04-26 19:57:18 +0100 (Sat, 26 Apr 2008) New Revision: 7929 Log: Filtered out malloc/free statistics. Modified: trunk/memcheck/tests/leak-pool-0.stderr.exp trunk/memcheck/tests/leak-pool-0.vgtest trunk/memcheck/tests/leak-pool-1.stderr.exp trunk/memcheck/tests/leak-pool-1.vgtest trunk/memcheck/tests/leak-pool-2.stderr.exp trunk/memcheck/tests/leak-pool-2.vgtest trunk/memcheck/tests/leak-pool-3.stderr.exp trunk/memcheck/tests/leak-pool-3.vgtest trunk/memcheck/tests/leak-pool-4.stderr.exp trunk/memcheck/tests/leak-pool-4.vgtest trunk/memcheck/tests/leak-pool-5.stderr.exp trunk/memcheck/tests/leak-pool-5.vgtest Modified: trunk/memcheck/tests/leak-pool-0.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-0.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-0.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-0.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-0.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-0.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 0 +stderr_filter: filter_allocs Modified: trunk/memcheck/tests/leak-pool-1.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-1.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-1.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-1.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-1.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-1.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 1 +stderr_filter: filter_allocs Modified: trunk/memcheck/tests/leak-pool-2.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-2.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-2.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-2.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-2.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-2.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 2 +stderr_filter: filter_allocs Modified: trunk/memcheck/tests/leak-pool-3.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-3.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-3.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-3.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-3.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-3.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 3 +stderr_filter: filter_allocs Modified: trunk/memcheck/tests/leak-pool-4.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-4.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-4.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-4.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-4.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-4.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 4 +stderr_filter: filter_allocs Modified: trunk/memcheck/tests/leak-pool-5.stderr.exp =================================================================== --- trunk/memcheck/tests/leak-pool-5.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-5.stderr.exp 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,7 +1,7 @@ ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 4,108 bytes in 2 blocks. -malloc/free: 102 allocs, 0 frees, 4,908 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/leak-pool-5.vgtest =================================================================== --- trunk/memcheck/tests/leak-pool-5.vgtest 2008-04-26 18:55:38 UTC (rev 7928) +++ trunk/memcheck/tests/leak-pool-5.vgtest 2008-04-26 18:57:18 UTC (rev 7929) @@ -1,2 +1,3 @@ prog: leak-pool args: 5 +stderr_filter: filter_allocs |
|
From: <sv...@va...> - 2008-04-26 18:55:38
|
Author: bart
Date: 2008-04-26 19:55:38 +0100 (Sat, 26 Apr 2008)
New Revision: 7928
Log:
Filtered out malloc/free statistics.
Modified:
trunk/memcheck/tests/badjump.stderr.exp
trunk/memcheck/tests/badjump.vgtest
trunk/memcheck/tests/describe-block.stderr.exp
trunk/memcheck/tests/describe-block.vgtest
trunk/memcheck/tests/erringfds.stderr.exp
trunk/memcheck/tests/erringfds.vgtest
trunk/memcheck/tests/linux-syscalls-2007.stderr.exp
trunk/memcheck/tests/linux-syscalls-2007.vgtest
trunk/memcheck/tests/linux-syslog-syscall.stderr.exp
trunk/memcheck/tests/linux-syslog-syscall.vgtest
trunk/memcheck/tests/lsframe1.stderr.exp
trunk/memcheck/tests/lsframe1.vgtest
trunk/memcheck/tests/lsframe2.stderr.exp
trunk/memcheck/tests/lsframe2.vgtest
trunk/memcheck/tests/match-overrun.stderr.exp
trunk/memcheck/tests/match-overrun.vgtest
trunk/memcheck/tests/noisy_child.stderr.exp
trunk/memcheck/tests/noisy_child.vgtest
trunk/memcheck/tests/partial_load_dflt.stderr.exp
trunk/memcheck/tests/partial_load_dflt.vgtest
trunk/memcheck/tests/partial_load_ok.stderr.exp
trunk/memcheck/tests/partial_load_ok.vgtest
trunk/memcheck/tests/partiallydefinedeq.stderr.exp
trunk/memcheck/tests/partiallydefinedeq.vgtest
trunk/memcheck/tests/sigkill.stderr.exp
trunk/memcheck/tests/sigkill.vgtest
Modified: trunk/memcheck/tests/badjump.stderr.exp
===================================================================
--- trunk/memcheck/tests/badjump.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/badjump.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -14,7 +14,7 @@
The main thread stack size used in this run was ....
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/badjump.vgtest
===================================================================
--- trunk/memcheck/tests/badjump.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/badjump.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: badjump
cleanup: rm -f vgcore.pid*
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/describe-block.stderr.exp
===================================================================
--- trunk/memcheck/tests/describe-block.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/describe-block.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -13,7 +13,7 @@
The main thread stack size used in this run was ....
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/describe-block.vgtest
===================================================================
--- trunk/memcheck/tests/describe-block.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/describe-block.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: describe-block
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/erringfds.stderr.exp
===================================================================
--- trunk/memcheck/tests/erringfds.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/erringfds.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -2,7 +2,7 @@
Warning: invalid file descriptor -1 in syscall read()
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/erringfds.vgtest
===================================================================
--- trunk/memcheck/tests/erringfds.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/erringfds.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: erringfds
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/linux-syscalls-2007.stderr.exp
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/linux-syscalls-2007.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,7 +1,7 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/linux-syscalls-2007.vgtest
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/linux-syscalls-2007.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: linux-syscalls-2007
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/linux-syslog-syscall.stderr.exp
===================================================================
--- trunk/memcheck/tests/linux-syslog-syscall.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/linux-syslog-syscall.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -2,7 +2,7 @@
Done.
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/linux-syslog-syscall.vgtest
===================================================================
--- trunk/memcheck/tests/linux-syslog-syscall.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/linux-syslog-syscall.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: linux-syslog-syscall
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/lsframe1.stderr.exp
===================================================================
--- trunk/memcheck/tests/lsframe1.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/lsframe1.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -3,7 +3,7 @@
lsframe1: done, result is -8388608
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/lsframe1.vgtest
===================================================================
--- trunk/memcheck/tests/lsframe1.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/lsframe1.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: lsframe1
vgopts: --main-stacksize=67200000 --max-stackframe=67200000
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/lsframe2.stderr.exp
===================================================================
--- trunk/memcheck/tests/lsframe2.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/lsframe2.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -3,7 +3,7 @@
lsframe2: done, result is -272629760
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/lsframe2.vgtest
===================================================================
--- trunk/memcheck/tests/lsframe2.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/lsframe2.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: lsframe2
vgopts: --main-stacksize=68500000
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/match-overrun.stderr.exp
===================================================================
--- trunk/memcheck/tests/match-overrun.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/match-overrun.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -10,7 +10,7 @@
The main thread stack size used in this run was ....
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/match-overrun.vgtest
===================================================================
--- trunk/memcheck/tests/match-overrun.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/match-overrun.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: match-overrun
vgopts: --suppressions=match-overrun.supp
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/noisy_child.stderr.exp
===================================================================
--- trunk/memcheck/tests/noisy_child.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/noisy_child.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -13,7 +13,7 @@
by 0x........: main (noisy_child.c:24)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 1 allocs, 1 frees, 10 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/noisy_child.vgtest
===================================================================
--- trunk/memcheck/tests/noisy_child.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/noisy_child.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: noisy_child
vgopts: --child-silent-after-fork=yes
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/partial_load_dflt.stderr.exp
===================================================================
--- trunk/memcheck/tests/partial_load_dflt.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partial_load_dflt.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -24,7 +24,7 @@
by 0x........: main (partial_load.c:36)
ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 4 allocs, 4 frees, 12 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/partial_load_dflt.vgtest
===================================================================
--- trunk/memcheck/tests/partial_load_dflt.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partial_load_dflt.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: partial_load
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/partial_load_ok.stderr.exp
===================================================================
--- trunk/memcheck/tests/partial_load_ok.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partial_load_ok.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -18,7 +18,7 @@
by 0x........: main (partial_load.c:36)
ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 4 allocs, 4 frees, 12 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/partial_load_ok.vgtest
===================================================================
--- trunk/memcheck/tests/partial_load_ok.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partial_load_ok.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1,2 +1,3 @@
prog: partial_load
vgopts: --partial-loads-ok=yes
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/partiallydefinedeq.stderr.exp
===================================================================
--- trunk/memcheck/tests/partiallydefinedeq.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partiallydefinedeq.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -8,7 +8,7 @@
by 0x........: main (partiallydefinedeq.c:52)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 8 bytes in 2 blocks.
-malloc/free: 2 allocs, 0 frees, 8 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/partiallydefinedeq.vgtest
===================================================================
--- trunk/memcheck/tests/partiallydefinedeq.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/partiallydefinedeq.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: partiallydefinedeq
+stderr_filter: filter_allocs
Modified: trunk/memcheck/tests/sigkill.stderr.exp
===================================================================
--- trunk/memcheck/tests/sigkill.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/sigkill.stderr.exp 2008-04-26 18:55:38 UTC (rev 7928)
@@ -196,7 +196,7 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/sigkill.vgtest
===================================================================
--- trunk/memcheck/tests/sigkill.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
+++ trunk/memcheck/tests/sigkill.vgtest 2008-04-26 18:55:38 UTC (rev 7928)
@@ -1 +1,2 @@
prog: sigkill
+stderr_filter: filter_allocs
|
|
From: <sv...@va...> - 2008-04-26 18:36:43
|
Author: bart
Date: 2008-04-26 19:36:42 +0100 (Sat, 26 Apr 2008)
New Revision: 7927
Log:
Filtered out malloc/free statistics.
Modified:
trunk/memcheck/tests/addressable.stderr.exp
trunk/memcheck/tests/addressable.vgtest
Modified: trunk/memcheck/tests/addressable.stderr.exp
===================================================================
--- trunk/memcheck/tests/addressable.stderr.exp 2008-04-26 18:34:17 UTC (rev 7926)
+++ trunk/memcheck/tests/addressable.stderr.exp 2008-04-26 18:36:42 UTC (rev 7927)
@@ -1,8 +1,8 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Unaddressable byte(s) found during client check request
@@ -25,14 +25,14 @@
The main thread stack size used in this run was ....
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
@@ -42,8 +42,8 @@
by 0x........: main (addressable.c:125)
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Uninitialised byte(s) found during client check request
@@ -57,13 +57,13 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+malloc/free: in use at exit: ... bytes in ... blocks.
+malloc/free: ... allocs, ... frees, ... bytes allocated.
For a detailed leak analysis, rerun with: --leak-check=yes
For counts of detected errors, rerun with: -v
Modified: trunk/memcheck/tests/addressable.vgtest
===================================================================
--- trunk/memcheck/tests/addressable.vgtest 2008-04-26 18:34:17 UTC (rev 7926)
+++ trunk/memcheck/tests/addressable.vgtest 2008-04-26 18:36:42 UTC (rev 7927)
@@ -1 +1,2 @@
prog: addressable
+stderr_filter: filter_allocs
|
|
From: <sv...@va...> - 2008-04-26 18:34:24
|
Author: bart Date: 2008-04-26 19:34:17 +0100 (Sat, 26 Apr 2008) New Revision: 7926 Log: Filtered out malloc/free statistics from mallinfo test. Modified: trunk/memcheck/tests/mallinfo.stderr.exp trunk/memcheck/tests/mallinfo.vgtest Modified: trunk/memcheck/tests/mallinfo.stderr.exp =================================================================== --- trunk/memcheck/tests/mallinfo.stderr.exp 2008-04-26 18:33:30 UTC (rev 7925) +++ trunk/memcheck/tests/mallinfo.stderr.exp 2008-04-26 18:34:17 UTC (rev 7926) @@ -2,7 +2,7 @@ Success. ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 0 bytes in 0 blocks. -malloc/free: 40 allocs, 40 frees, 177,120 bytes allocated. +malloc/free: in use at exit: ... bytes in ... blocks. +malloc/free: ... allocs, ... frees, ... bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v Modified: trunk/memcheck/tests/mallinfo.vgtest =================================================================== --- trunk/memcheck/tests/mallinfo.vgtest 2008-04-26 18:33:30 UTC (rev 7925) +++ trunk/memcheck/tests/mallinfo.vgtest 2008-04-26 18:34:17 UTC (rev 7926) @@ -1,2 +1,3 @@ prog: mallinfo args: -q +stderr_filter: filter_allocs |
|
From: <sv...@va...> - 2008-04-26 18:33:41
|
Author: bart Date: 2008-04-26 19:33:30 +0100 (Sat, 26 Apr 2008) New Revision: 7925 Log: filter_allocs now also works when any of the numbers to be filtered out is greater than or equal to 1000. Modified: trunk/memcheck/tests/filter_allocs Modified: trunk/memcheck/tests/filter_allocs =================================================================== --- trunk/memcheck/tests/filter_allocs 2008-04-26 18:14:34 UTC (rev 7924) +++ trunk/memcheck/tests/filter_allocs 2008-04-26 18:33:30 UTC (rev 7925) @@ -1,6 +1,6 @@ #! /bin/sh ./filter_stderr | -sed "s/malloc\/free: in use at exit: [0-9]* bytes in [0-9]* blocks./malloc\/free: in use at exit: ... bytes in ... blocks./" | -sed "s/malloc.free: [0-9]* allocs, [0-9]* frees, [0-9]* bytes allocated./malloc\/free: ... allocs, ... frees, ... bytes allocated./" +sed -e "s/malloc\/free: in use at exit: [0-9,]* bytes in [0-9,]* blocks./malloc\/free: in use at exit: ... bytes in ... blocks./" \ + -e "s/malloc.free: [0-9,]* allocs, [0-9,]* frees, [0-9,]* bytes allocated./malloc\/free: ... allocs, ... frees, ... bytes allocated./" |
|
From: <sv...@va...> - 2008-04-26 18:14:44
|
Author: bart Date: 2008-04-26 19:14:34 +0100 (Sat, 26 Apr 2008) New Revision: 7924 Log: Suppress unavoidable warning during compilation of pth_cancel1.c. Modified: trunk/none/tests/Makefile.am Modified: trunk/none/tests/Makefile.am =================================================================== --- trunk/none/tests/Makefile.am 2008-04-26 11:03:42 UTC (rev 7923) +++ trunk/none/tests/Makefile.am 2008-04-26 18:14:34 UTC (rev 7924) @@ -165,6 +165,7 @@ mq_LDADD = -lrt pth_atfork1_LDADD = -lpthread pth_blockedsig_LDADD = -lpthread +pth_cancel1_CFLAGS = -Wno-shadow pth_cancel1_LDADD = -lpthread pth_cancel2_LDADD = -lpthread pth_cvsimple_LDADD = -lpthread |
|
From: <sv...@va...> - 2008-04-26 11:03:42
|
Author: bart
Date: 2008-04-26 12:03:42 +0100 (Sat, 26 Apr 2008)
New Revision: 7923
Log:
Added actual syslog system call test.
Added:
trunk/memcheck/tests/linux-syslog-syscall.c
Added: trunk/memcheck/tests/linux-syslog-syscall.c
===================================================================
--- trunk/memcheck/tests/linux-syslog-syscall.c (rev 0)
+++ trunk/memcheck/tests/linux-syslog-syscall.c 2008-04-26 11:03:42 UTC (rev 7923)
@@ -0,0 +1,23 @@
+/** Test program for the syslog() system call.
+ * From the syslog(2) man page:
+ * If you need the libc function syslog() (which talks to syslogd(8)),
+ * then look at syslog(3). The system call of this name is about control‐
+ * ling the kernel printk() buffer, and the glibc version is called
+ * klogctl().
+ */
+
+#include "../../config.h"
+#include <stdio.h>
+#if defined(HAVE_SYS_KLOG_H)
+#include <sys/klog.h>
+#endif
+
+int main(int argc, char** argv)
+{
+ int number_of_unread_characters;
+#if defined HAVE_KLOGCTL
+ number_of_unread_characters = klogctl(9, 0, 0);
+#endif
+ fprintf(stderr, "Done.\n");
+ return 0 * number_of_unread_characters;
+}
|
|
From: Bart V. A. <bar...@gm...> - 2008-04-26 11:01:47
|
On Thu, Apr 17, 2008 at 2:44 PM, trevor hansen <tr...@ly...> wrote: > > On Ubuntu 7.10 /bin/lsmod & /bin/dmesg respectively use create_module & > syslog. This patch wires up the syscall wrappers which have already been > implemented for other platforms. create_module has been removed from the > kernel, but is still being called for some reason by lsmod. Thanks for the patch. I have commited (a slightly modified version of) your patch. Can you please give it a try ? Bart. |
|
From: <sv...@va...> - 2008-04-26 10:59:45
|
Author: bart
Date: 2008-04-26 11:59:46 +0100 (Sat, 26 Apr 2008)
New Revision: 7922
Log:
Added tests for <sys/klog.h> and klogctl().
Modified:
trunk/configure.in
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-04-26 10:59:23 UTC (rev 7921)
+++ trunk/configure.in 2008-04-26 10:59:46 UTC (rev 7922)
@@ -959,6 +959,7 @@
sys/endian.h \
sys/epoll.h \
sys/eventfd.h \
+ sys/klog.h \
sys/poll.h \
sys/signalfd.h \
])
@@ -982,6 +983,7 @@
eventfd \
eventfd_read \
floor \
+ klogctl \
mallinfo \
memchr \
memset \
|
|
From: <sv...@va...> - 2008-04-26 10:59:17
|
Author: bart Date: 2008-04-26 11:59:23 +0100 (Sat, 26 Apr 2008) New Revision: 7921 Log: Added regression test for Linux' syslog system call (called klogctl by glibc). Added: trunk/memcheck/tests/linux-syslog-syscall.stderr.exp trunk/memcheck/tests/linux-syslog-syscall.vgtest Modified: trunk/memcheck/tests/Makefile.am Modified: trunk/memcheck/tests/Makefile.am =================================================================== --- trunk/memcheck/tests/Makefile.am 2008-04-26 10:57:07 UTC (rev 7920) +++ trunk/memcheck/tests/Makefile.am 2008-04-26 10:59:23 UTC (rev 7921) @@ -65,6 +65,7 @@ leak-tree.stderr.exp2 leak-tree.stderr.exp64 \ leak-regroot.vgtest leak-regroot.stderr.exp \ leakotron.vgtest leakotron.stdout.exp leakotron.stderr.exp \ + linux-syslog-syscall linux-syslog-syscall.stderr.exp \ linux-syscalls-2007 linux-syscalls-2007.stderr.exp \ long_namespace_xml.vgtest long_namespace_xml.stdout.exp \ long_namespace_xml.stderr.exp \ @@ -171,6 +172,7 @@ doublefree error_counts errs1 exitprog execve execve2 erringfds \ fprw fwrite hello inits inline \ leak-0 leak-cycle leak-pool leak-tree leak-regroot leakotron \ + linux-syslog-syscall \ linux-syscalls-2007 \ long_namespace_xml \ lsframe1 lsframe2 \ Added: trunk/memcheck/tests/linux-syslog-syscall.stderr.exp =================================================================== --- trunk/memcheck/tests/linux-syslog-syscall.stderr.exp (rev 0) +++ trunk/memcheck/tests/linux-syslog-syscall.stderr.exp 2008-04-26 10:59:23 UTC (rev 7921) @@ -0,0 +1,8 @@ + +Done. + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 0 allocs, 0 frees, 0 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v Added: trunk/memcheck/tests/linux-syslog-syscall.vgtest =================================================================== --- trunk/memcheck/tests/linux-syslog-syscall.vgtest (rev 0) +++ trunk/memcheck/tests/linux-syslog-syscall.vgtest 2008-04-26 10:59:23 UTC (rev 7921) @@ -0,0 +1 @@ +prog: linux-syslog-syscall |
|
From: <sv...@va...> - 2008-04-26 10:57:02
|
Author: bart
Date: 2008-04-26 11:57:07 +0100 (Sat, 26 Apr 2008)
New Revision: 7920
Log:
Enabled syslog and create_module system calls.
Modified:
trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c
trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2008-04-26 10:47:29 UTC (rev 7919)
+++ trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2008-04-26 10:57:07 UTC (rev 7920)
@@ -1168,7 +1168,7 @@
GENXY(__NR_times, sys_times), // 100
PLAXY(__NR_ptrace, sys_ptrace), // 101
GENX_(__NR_getuid, sys_getuid), // 102
- // (__NR_syslog, sys_syslog), // 103
+ LINXY(__NR_syslog, sys_syslog), // 103
GENX_(__NR_getgid, sys_getgid), // 104
GENX_(__NR_setuid, sys_setuid), // 105
@@ -1253,7 +1253,7 @@
// (__NR_setdomainname, sys_setdomainname), // 171
GENX_(__NR_iopl, sys_iopl), // 172
LINX_(__NR_ioperm, sys_ioperm), // 173
- // (__NR_create_module, sys_ni_syscall), // 174
+ GENX_(__NR_create_module, sys_ni_syscall), // 174
// (__NR_init_module, sys_init_module), // 175
// (__NR_delete_module, sys_delete_module), // 176
Modified: trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c 2008-04-26 10:47:29 UTC (rev 7919)
+++ trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c 2008-04-26 10:57:07 UTC (rev 7920)
@@ -1621,8 +1621,7 @@
//..
GENXY(__NR_mprotect, sys_mprotect), // 125
LINXY(__NR_sigprocmask, sys_sigprocmask), // 126
-//.. // Nb: create_module() was removed 2.4-->2.6
-//.. GENX_(__NR_create_module, sys_ni_syscall), // 127
+ GENX_(__NR_create_module, sys_ni_syscall), // 127
//.. GENX_(__NR_init_module, sys_init_module), // 128
//.. // (__NR_delete_module, sys_delete_module), // 129 (*/Linux)?
//..
Modified: trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c 2008-04-26 10:47:29 UTC (rev 7919)
+++ trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c 2008-04-26 10:57:07 UTC (rev 7920)
@@ -1254,7 +1254,7 @@
// _____(__NR_fstatfs, sys_fstatfs), // 100
// _____(__NR_ioperm, sys_ioperm), // 101
PLAXY(__NR_socketcall, sys_socketcall), // 102
-// _____(__NR_syslog, sys_syslog), // 103
+ LINXY(__NR_syslog, sys_syslog), // 103
GENXY(__NR_setitimer, sys_setitimer), // 104
GENXY(__NR_getitimer, sys_getitimer), // 105
@@ -1283,7 +1283,7 @@
GENXY(__NR_mprotect, sys_mprotect), // 125
// _____(__NR_sigprocmask, sys_sigprocmask), // 126
-// _____(__NR_create_module, sys_create_module), // 127
+ GENX_(__NR_create_module, sys_ni_syscall), // 127
// _____(__NR_init_module, sys_init_module), // 128
// _____(__NR_delete_module, sys_delete_module), // 129
|
|
From: <sv...@va...> - 2008-04-26 10:47:26
|
Author: bart
Date: 2008-04-26 11:47:29 +0100 (Sat, 26 Apr 2008)
New Revision: 7919
Log:
Documentation now matches the implementation of the Linux time system call wrapper.
Modified:
trunk/README_MISSING_SYSCALL_OR_IOCTL
Modified: trunk/README_MISSING_SYSCALL_OR_IOCTL
===================================================================
--- trunk/README_MISSING_SYSCALL_OR_IOCTL 2008-04-26 08:23:35 UTC (rev 7918)
+++ trunk/README_MISSING_SYSCALL_OR_IOCTL 2008-04-26 10:47:29 UTC (rev 7919)
@@ -44,38 +44,45 @@
The syscall wrapper for time()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Removing the debug printing clutter, it looks like this:
+The wrapper for the time system call looks like this:
- PRE(time)
+ PRE(sys_time)
{
/* time_t time(time_t *t); */
- PRINT("time ( %p )",arg1);
- if (arg1 != (UWord)NULL) {
- PRE_MEM_WRITE( "time", arg1, sizeof(time_t) );
+ PRINT("sys_time ( %p )",ARG1);
+ PRE_REG_READ1(long, "time", int *, t);
+ if (ARG1 != 0) {
+ PRE_MEM_WRITE( "time(t)", ARG1, sizeof(vki_time_t) );
}
}
- POST(time)
+ POST(sys_time)
{
- if (arg1 != (UWord)NULL) {
- POST_MEM_WRITE( arg1, sizeof(vki_time_t) );
+ if (ARG1 != 0) {
+ POST_MEM_WRITE( ARG1, sizeof(vki_time_t) );
}
}
The first thing we do happens before the syscall occurs, in the PRE() function:
-if a non-NULL buffer is passed in as the argument, tell the tool that the
+tell the tool the return type of the syscall, that the syscall has one
+argument, the type of the argument and that the argument is being read from a
+register:
+
+ PRE_REG_READ1(long, "time", int *, t);
+
+Next, if a non-NULL buffer is passed in as the argument, tell the tool that the
buffer is about to be written to:
- if (arg1 != (UWord)NULL) {
- PRE_MEM_WRITE( "time", arg1, sizeof(vki_time_t) );
+ if (ARG1 != 0) {
+ PRE_MEM_WRITE( "time", ARG1, sizeof(vki_time_t) );
}
Finally, the really important bit, after the syscall occurs, in the POST()
function: if, and only if, the system call was successful, tell the tool that
the memory was written:
- if (arg1 != (UInt)NULL) {
- POST_MEM_WRITE( arg1, sizeof(vki_time_t) );
+ if (ARG1 != 0) {
+ POST_MEM_WRITE( ARG1, sizeof(vki_time_t) );
}
The POST() function won't be called if the syscall failed, so you
@@ -134,8 +141,7 @@
dependant ones (in syswrap-$(PLATFORM)-linux.c).
The *XY variant if it requires a PRE() and POST() function, and
the *X_ variant if it only requires a PRE()
- function. The 2nd arg of these macros indicate if the syscall
- could possibly block.
+ function.
If you find this difficult, read the wrappers for other syscalls
for ideas. A good tip is to look for the wrapper for a syscall
|
|
From: <sv...@va...> - 2008-04-26 08:23:30
|
Author: bart
Date: 2008-04-26 09:23:35 +0100 (Sat, 26 Apr 2008)
New Revision: 7918
Log:
Made source code C90 compliant.
Modified:
trunk/memcheck/tests/linux-syscalls-2007.c
Modified: trunk/memcheck/tests/linux-syscalls-2007.c
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.c 2008-04-26 07:45:10 UTC (rev 7917)
+++ trunk/memcheck/tests/linux-syscalls-2007.c 2008-04-26 08:23:35 UTC (rev 7918)
@@ -34,17 +34,22 @@
&& defined(HAVE_EVENTFD_READ) && defined(HAVE_PPOLL)
{
sigset_t mask;
+ int fd, fd2;
+ eventfd_t ev;
+ struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 };
+ struct pollfd pfd[2];
+
sigemptyset (&mask);
sigaddset (&mask, SIGUSR1);
- int fd = signalfd (-1, &mask, 0);
+ fd = signalfd (-1, &mask, 0);
sigaddset (&mask, SIGUSR2);
fd = signalfd (fd, &mask, 0);
- int fd2 = eventfd (5, 0);
- eventfd_t ev;
+ fd2 = eventfd (5, 0);
eventfd_read (fd2, &ev);
- struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 };
- struct pollfd pfd[2] = { [0].fd = fd, [0].events = POLLIN|POLLOUT,
- [1].fd = fd2, [1].events = POLLIN|POLLOUT };
+ pfd[0].fd = fd;
+ pfd[0].events = POLLIN|POLLOUT;
+ pfd[1].fd = fd2;
+ pfd[1].events = POLLIN|POLLOUT;
ppoll (pfd, 2, &ts, &mask);
}
#endif
@@ -61,12 +66,14 @@
#if defined(HAVE_EPOLL_CREATE) && defined(HAVE_EPOLL_PWAIT)
{
- int fd3 = epoll_create (10);
+ int fd3;
struct epoll_event evs[10];
sigset_t mask;
+
sigemptyset (&mask);
sigaddset (&mask, SIGUSR1);
sigaddset (&mask, SIGUSR2);
+ fd3 = epoll_create (10);
epoll_pwait (fd3, evs, 10, 0, &mask);
}
#endif
|
|
From: Bart V. A. <bar...@gm...> - 2008-04-26 08:17:55
|
On Fri, Apr 25, 2008 at 1:33 PM, <sv...@va...> wrote: > Author: dirk > Date: 2008-04-25 12:33:30 +0100 (Fri, 25 Apr 2008) > New Revision: 7915 > > Log: > glibc 2.8 has the very same checking reports as did > glibc 2.7 have.. as did glibc 2.6, as did glibc 2.5, as did glibc 2.4 > as did glibc 2.4. so consolidate into one suppression file Hello Dirk, Although your modifications are OK they break Valgrind on OpenSUSE 11. This is because of a bug in the OpenSUSE glibc-devel package: $ rpm -qf /usr/include/features.h glibc-devel-2.8-6 $ grep 'define.*__GLIBC_MINOR__' /usr/include/features.h #define __GLIBC_MINOR__ 7 Bart. |
|
From: <sv...@va...> - 2008-04-26 07:45:19
|
Author: bart
Date: 2008-04-26 08:45:10 +0100 (Sat, 26 Apr 2008)
New Revision: 7917
Log:
Added support for epoll_pwait(), utimensat(), eventfd(), timerfd() and signalfd(). Fixes bug 160907.
Added:
trunk/memcheck/tests/linux-syscalls-2007.c
trunk/memcheck/tests/linux-syscalls-2007.stderr.exp
trunk/memcheck/tests/linux-syscalls-2007.vgtest
Modified:
trunk/configure.in
trunk/coregrind/m_syswrap/priv_syswrap-linux.h
trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
trunk/coregrind/m_syswrap/syswrap-generic.c
trunk/coregrind/m_syswrap/syswrap-linux.c
trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c
trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c
trunk/coregrind/m_syswrap/syswrap-x86-linux.c
trunk/memcheck/tests/Makefile.am
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/configure.in 2008-04-26 07:45:10 UTC (rev 7917)
@@ -953,7 +953,15 @@
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/endian.h endian.h mqueue.h])
+AC_CHECK_HEADERS([ \
+ endian.h \
+ mqueue.h \
+ sys/endian.h \
+ sys/epoll.h \
+ sys/eventfd.h \
+ sys/poll.h \
+ sys/signalfd.h \
+ ])
# Checks for typedefs, structures, and compiler characteristics.
@@ -968,8 +976,27 @@
AC_FUNC_MMAP
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr semtimedop])
-AC_CHECK_FUNCS([mallinfo])
+AC_CHECK_FUNCS([ \
+ epoll_create \
+ epoll_pwait \
+ eventfd \
+ eventfd_read \
+ floor \
+ mallinfo \
+ memchr \
+ memset \
+ mkdir \
+ ppoll \
+ semtimedop \
+ signalfd \
+ strchr \
+ strdup \
+ strpbrk \
+ strrchr \
+ strstr \
+ timerfd \
+ utimensat \
+ ])
# Do we have a useable MPI setup on the primary and/or secondary targets?
Modified: trunk/coregrind/m_syswrap/priv_syswrap-linux.h
===================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-linux.h 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/priv_syswrap-linux.h 2008-04-26 07:45:10 UTC (rev 7917)
@@ -82,6 +82,8 @@
DECL_TEMPLATE(linux, sys_epoll_create);
DECL_TEMPLATE(linux, sys_epoll_ctl);
DECL_TEMPLATE(linux, sys_epoll_wait);
+DECL_TEMPLATE(linux, sys_epoll_pwait);
+DECL_TEMPLATE(linux, sys_eventfd);
DECL_TEMPLATE(linux, sys_gettid);
DECL_TEMPLATE(linux, sys_set_tid_address);
@@ -124,7 +126,10 @@
DECL_TEMPLATE(linux, sys_timer_gettime);
DECL_TEMPLATE(linux, sys_timer_getoverrun);
DECL_TEMPLATE(linux, sys_timer_delete);
+DECL_TEMPLATE(linux, sys_timerfd);
+DECL_TEMPLATE(linux, sys_signalfd);
+
DECL_TEMPLATE(linux, sys_capget);
DECL_TEMPLATE(linux, sys_capset);
Modified: trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -1370,7 +1370,7 @@
LINX_(__NR_faccessat, sys_faccessat), // 269
LINX_(__NR_pselect6, sys_pselect6), // 270
-// LINXY(__NR_ppoll, sys_ni_syscall), // 271
+ LINXY(__NR_ppoll, sys_ppoll), // 271
// LINX_(__NR_unshare, sys_unshare), // 272
LINX_(__NR_set_robust_list, sys_set_robust_list), // 273
LINXY(__NR_get_robust_list, sys_get_robust_list), // 274
@@ -1380,6 +1380,12 @@
LINX_(__NR_sync_file_range, sys_sync_file_range), // 277
// LINX_(__NR_vmsplice, sys_ni_syscall), // 278
// LINX_(__NR_move_pages, sys_ni_syscall), // 279
+ LINX_(__NR_utimensat, sys_utimensat), // 280
+ LINXY(__NR_epoll_pwait, sys_epoll_pwait), // 281
+ LINXY(__NR_signalfd, sys_signalfd), // 282
+ LINXY(__NR_timerfd, sys_timerfd), // 283
+ LINX_(__NR_eventfd, sys_eventfd), // 284
+// LINX_(__NR_fallocate, sys_ni_syscall), // 285
};
const UInt ML_(syscall_table_size) =
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -5638,7 +5638,7 @@
PRE_REG_READ2(long, "utimes", char *, filename, struct timeval *, tvp);
PRE_MEM_RASCIIZ( "utimes(filename)", ARG1 );
if (ARG2 != 0)
- PRE_MEM_READ( "utimes(tvp)", ARG2, sizeof(struct vki_timeval) );
+ PRE_MEM_READ( "utimes(tvp)", ARG2, 2 * sizeof(struct vki_timeval) );
}
PRE(sys_acct)
Modified: trunk/coregrind/m_syswrap/syswrap-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-linux.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -988,7 +988,7 @@
UInt i;
struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1;
*flags |= SfMayBlock;
- PRINT("sys_ppoll ( %p, %d, %p, %p, %llu )\n", ARG1,ARG2,ARG3,ARG4,ARG5);
+ PRINT("sys_ppoll ( %p, %d, %p, %p, %llu )\n", ARG1,ARG2,ARG3,ARG4,(ULong)ARG5);
PRE_REG_READ5(long, "ppoll",
struct vki_pollfd *, ufds, unsigned int, nfds,
struct vki_timespec *, tsp, vki_sigset_t *, sigmask,
@@ -1072,6 +1072,41 @@
POST_MEM_WRITE( ARG2, sizeof(struct vki_epoll_event)*RES ) ;
}
+PRE(sys_epoll_pwait)
+{
+ *flags |= SfMayBlock;
+ PRINT("sys_epoll_pwait ( %d, %p, %d, %d, %p, %llu )", ARG1,ARG2,ARG3,ARG4,ARG5,(ULong)ARG6);
+ PRE_REG_READ6(long, "epoll_pwait",
+ int, epfd, struct vki_epoll_event *, events,
+ int, maxevents, int, timeout, vki_sigset_t *, sigmask,
+ vki_size_t, sigsetsize);
+ PRE_MEM_WRITE( "epoll_pwait(events)", ARG2, sizeof(struct vki_epoll_event)*ARG3);
+ if (ARG4)
+ PRE_MEM_READ( "epoll_pwait(sigmask)", ARG5, sizeof(vki_sigset_t) );
+}
+POST(sys_epoll_pwait)
+{
+ vg_assert(SUCCESS);
+ if (RES > 0)
+ POST_MEM_WRITE( ARG2, sizeof(struct vki_epoll_event)*RES ) ;
+}
+
+PRE(sys_eventfd)
+{
+ PRINT("sys_eventfd ( %u )", ARG1);
+ PRE_REG_READ1(long, "sys_eventfd", unsigned int, count);
+}
+POST(sys_eventfd)
+{
+ if (!ML_(fd_allowed)(RES, "eventfd", tid, True)) {
+ VG_(close)(RES);
+ SET_STATUS_Failure( VKI_EMFILE );
+ } else {
+ if (VG_(clo_track_fds))
+ ML_(record_fd_open_nameless) (tid, RES);
+ }
+}
+
/* ---------------------------------------------------------------------
tid-related wrappers
------------------------------------------------------------------ */
@@ -1672,6 +1707,27 @@
PRE_REG_READ1(long, "timer_delete", vki_timer_t, timerid);
}
+PRE(sys_timerfd)
+{
+ PRINT("sys_timerfd ( %d, %d, %p )", ARG1, ARG2, ARG3);
+ PRE_REG_READ3(long, "sys_timerfd",
+ int, fd, int, clockid, const struct itimerspec *, tmr);
+ PRE_MEM_READ( "timerfd(tmr)", ARG3,
+ sizeof(struct vki_itimerspec) );
+ if (ARG1 != -1 && !ML_(fd_allowed)(ARG1, "timerfd", tid, False))
+ SET_STATUS_Failure( VKI_EBADF );
+}
+POST(sys_timerfd)
+{
+ if (!ML_(fd_allowed)(RES, "timerfd", tid, True)) {
+ VG_(close)(RES);
+ SET_STATUS_Failure( VKI_EMFILE );
+ } else {
+ if (VG_(clo_track_fds))
+ ML_(record_fd_open_nameless) (tid, RES);
+ }
+}
+
/* ---------------------------------------------------------------------
capabilities wrappers
------------------------------------------------------------------ */
@@ -2220,6 +2276,27 @@
}
#endif
+PRE(sys_signalfd)
+{
+ PRINT("sys_signalfd ( %d, %p, %llu )", ARG1, ARG2, (ULong) ARG3);
+ PRE_REG_READ3(long, "sys_signalfd",
+ int, fd, vki_sigset_t *, sigmask, vki_size_t, sigsetsize);
+ PRE_MEM_READ( "signalfd(sigmask)", ARG2, sizeof(vki_sigset_t) );
+ if (ARG1 != -1 && !ML_(fd_allowed)(ARG1, "signalfd", tid, False))
+ SET_STATUS_Failure( VKI_EBADF );
+}
+POST(sys_signalfd)
+{
+ if (!ML_(fd_allowed)(RES, "signalfd", tid, True)) {
+ VG_(close)(RES);
+ SET_STATUS_Failure( VKI_EMFILE );
+ } else {
+ if (VG_(clo_track_fds))
+ ML_(record_fd_open_nameless) (tid, RES);
+ }
+}
+
+
/* ---------------------------------------------------------------------
rt_sig* wrappers
------------------------------------------------------------------ */
@@ -2542,9 +2619,19 @@
int, dfd, char *, filename, struct timeval *, tvp);
PRE_MEM_RASCIIZ( "futimesat(filename)", ARG2 );
if (ARG3 != 0)
- PRE_MEM_READ( "futimesat(tvp)", ARG3, sizeof(struct vki_timeval) );
+ PRE_MEM_READ( "futimesat(tvp)", ARG3, 2 * sizeof(struct vki_timeval) );
}
+PRE(sys_utimensat)
+{
+ PRINT("sys_utimensat ( %d, %p(%s), %p, 0x%x )", ARG1,ARG2,ARG2,ARG3,ARG4);
+ PRE_REG_READ4(long, "utimensat",
+ int, dfd, char *, filename, struct timespec *, utimes, int, flags);
+ PRE_MEM_RASCIIZ( "utimensat(filename)", ARG2 );
+ if (ARG3 != 0)
+ PRE_MEM_READ( "utimensat(tvp)", ARG3, 2 * sizeof(struct vki_timespec) );
+}
+
PRE(sys_newfstatat)
{
PRINT("sys_newfstatat ( %d, %p(%s), %p )", ARG1,ARG2,ARG2,ARG3);
@@ -2823,19 +2910,6 @@
PRE_REG_READ3(int, "ioprio_set", int, which, int, who, int, ioprio);
}
-
-/* XXX I don't think this is really the right place for this.
- Move it elsewhere in this file? */
-PRE(sys_utimensat)
-{
- PRINT("sys_utimensat ( %d, %p(%s), %p )", ARG1,ARG2,ARG2,ARG3);
- PRE_REG_READ3(long, "utimensat",
- int, dfd, char *, filename, struct timespec *, tvp);
- PRE_MEM_RASCIIZ( "utimensat(filename)", ARG2 );
- if (ARG3 != 0)
- PRE_MEM_READ( "utimensat(tvp)", ARG3, sizeof(struct vki_timespec) );
-}
-
#undef PRE
#undef POST
Modified: trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -1823,6 +1823,15 @@
LINX_(__NR_faccessat, sys_faccessat), // 298
LINX_(__NR_set_robust_list, sys_set_robust_list), // 299
LINXY(__NR_get_robust_list, sys_get_robust_list), // 300
+// LINX_(__NR_move_pages, sys_ni_syscall), // 301
+// LINX_(__NR_getcpu, sys_ni_syscall), // 302
+ LINXY(__NR_epoll_pwait, sys_epoll_pwait), // 303
+ LINX_(__NR_utimensat, sys_utimensat), // 304
+ LINXY(__NR_signalfd, sys_signalfd), // 305
+ LINXY(__NR_timerfd, sys_timerfd), // 306
+ LINX_(__NR_eventfd, sys_eventfd), // 307
+// LINX_(__NR_sync_file_range2, sys_ni_syscall), // 308
+// LINX_(__NR_fallocate, sys_ni_syscall), // 309
};
const UInt ML_(syscall_table_size) =
Modified: trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-ppc64-linux.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -1478,7 +1478,15 @@
LINX_(__NR_faccessat, sys_faccessat), // 298
LINX_(__NR_set_robust_list, sys_set_robust_list), // 299
LINXY(__NR_get_robust_list, sys_get_robust_list), // 300
-
+// LINX_(__NR_move_pages, sys_ni_syscall), // 301
+// LINX_(__NR_getcpu, sys_ni_syscall), // 302
+ LINXY(__NR_epoll_pwait, sys_epoll_pwait), // 303
+ LINX_(__NR_utimensat, sys_utimensat), // 304
+ LINXY(__NR_signalfd, sys_signalfd), // 305
+ LINXY(__NR_timerfd, sys_timerfd), // 306
+ LINX_(__NR_eventfd, sys_eventfd), // 307
+// LINX_(__NR_sync_file_range2, sys_ni_syscall), // 308
+// LINX_(__NR_fallocate, sys_ni_syscall), // 309
};
const UInt ML_(syscall_table_size) =
Modified: trunk/coregrind/m_syswrap/syswrap-x86-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -2224,9 +2224,13 @@
// LINX_(__NR_vmsplice, sys_ni_syscall), // 316
// LINX_(__NR_move_pages, sys_ni_syscall), // 317
// LINX_(__NR_getcpu, sys_ni_syscall), // 318
-// LINX_(__NR_epoll_pwait, sys_ni_syscall), // 319
+ LINXY(__NR_epoll_pwait, sys_epoll_pwait), // 319
LINX_(__NR_utimensat, sys_utimensat), // 320
+ LINXY(__NR_signalfd, sys_signalfd), // 321
+ LINXY(__NR_timerfd, sys_timerfd), // 322
+ LINX_(__NR_eventfd, sys_eventfd), // 323
+// LINX_(__NR_fallocate, sys_ni_syscall), // 324
};
const UInt ML_(syscall_table_size) =
Modified: trunk/memcheck/tests/Makefile.am
===================================================================
--- trunk/memcheck/tests/Makefile.am 2008-04-25 15:24:43 UTC (rev 7916)
+++ trunk/memcheck/tests/Makefile.am 2008-04-26 07:45:10 UTC (rev 7917)
@@ -65,6 +65,7 @@
leak-tree.stderr.exp2 leak-tree.stderr.exp64 \
leak-regroot.vgtest leak-regroot.stderr.exp \
leakotron.vgtest leakotron.stdout.exp leakotron.stderr.exp \
+ linux-syscalls-2007 linux-syscalls-2007.stderr.exp \
long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
long_namespace_xml.stderr.exp \
lsframe1.vgtest lsframe1.stdout.exp lsframe1.stderr.exp \
@@ -170,6 +171,7 @@
doublefree error_counts errs1 exitprog execve execve2 erringfds \
fprw fwrite hello inits inline \
leak-0 leak-cycle leak-pool leak-tree leak-regroot leakotron \
+ linux-syscalls-2007 \
long_namespace_xml \
lsframe1 lsframe2 \
mallinfo \
Added: trunk/memcheck/tests/linux-syscalls-2007.c
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.c (rev 0)
+++ trunk/memcheck/tests/linux-syscalls-2007.c 2008-04-26 07:45:10 UTC (rev 7917)
@@ -0,0 +1,75 @@
+/**
+ * Test program for some Linux syscalls introduced during 2006 and 2007:
+ * - epoll_pwait() was introduced in the 2.6.19 kernel, released in November
+ * 2006.
+ * - utimensat(), eventfd(), timerfd() and signalfd() were introduced in the
+ * 2.6.22 kernel, released in July 2007.
+ *
+ * See also http://bugs.kde.org/show_bug.cgi?id=160907.
+ */
+
+#define _GNU_SOURCE
+
+#include "../../config.h"
+#include <fcntl.h>
+#include <signal.h>
+#if defined(HAVE_SYS_EPOLL_H)
+#include <sys/epoll.h>
+#endif
+#if defined(HAVE_SYS_EVENTFD_H)
+#include <sys/eventfd.h>
+#endif
+#if defined(HAVE_SYS_POLL_H)
+#include <sys/poll.h>
+#endif
+#if defined(HAVE_SYS_SIGNALFD_H)
+#include <sys/signalfd.h>
+#endif
+#include <sys/stat.h>
+#include <unistd.h>
+
+int main (void)
+{
+#if defined(HAVE_SIGNALFD) && defined(HAVE_EVENTFD) \
+ && defined(HAVE_EVENTFD_READ) && defined(HAVE_PPOLL)
+ {
+ sigset_t mask;
+ sigemptyset (&mask);
+ sigaddset (&mask, SIGUSR1);
+ int fd = signalfd (-1, &mask, 0);
+ sigaddset (&mask, SIGUSR2);
+ fd = signalfd (fd, &mask, 0);
+ int fd2 = eventfd (5, 0);
+ eventfd_t ev;
+ eventfd_read (fd2, &ev);
+ struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 };
+ struct pollfd pfd[2] = { [0].fd = fd, [0].events = POLLIN|POLLOUT,
+ [1].fd = fd2, [1].events = POLLIN|POLLOUT };
+ ppoll (pfd, 2, &ts, &mask);
+ }
+#endif
+
+#if defined(HAVE_UTIMENSAT)
+ unlink("/tmp/valgrind-utimensat-test");
+ close (creat ("/tmp/valgrind-utimensat-test", S_IRUSR | S_IWUSR));
+ {
+ struct timespec ts2[2] = { [0].tv_sec = 10000000, [1].tv_sec = 20000000 };
+ utimensat (AT_FDCWD, "/tmp/valgrind-utimensat-test", ts2, 0);
+ }
+ unlink("/tmp/valgrind-utimensat-test");
+#endif
+
+#if defined(HAVE_EPOLL_CREATE) && defined(HAVE_EPOLL_PWAIT)
+ {
+ int fd3 = epoll_create (10);
+ struct epoll_event evs[10];
+ sigset_t mask;
+ sigemptyset (&mask);
+ sigaddset (&mask, SIGUSR1);
+ sigaddset (&mask, SIGUSR2);
+ epoll_pwait (fd3, evs, 10, 0, &mask);
+ }
+#endif
+
+ return 0;
+}
Added: trunk/memcheck/tests/linux-syscalls-2007.stderr.exp
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.stderr.exp (rev 0)
+++ trunk/memcheck/tests/linux-syscalls-2007.stderr.exp 2008-04-26 07:45:10 UTC (rev 7917)
@@ -0,0 +1,7 @@
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+malloc/free: in use at exit: 0 bytes in 0 blocks.
+malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+For a detailed leak analysis, rerun with: --leak-check=yes
+For counts of detected errors, rerun with: -v
Added: trunk/memcheck/tests/linux-syscalls-2007.vgtest
===================================================================
--- trunk/memcheck/tests/linux-syscalls-2007.vgtest (rev 0)
+++ trunk/memcheck/tests/linux-syscalls-2007.vgtest 2008-04-26 07:45:10 UTC (rev 7917)
@@ -0,0 +1 @@
+prog: linux-syscalls-2007
|
|
From: Tom H. <th...@cy...> - 2008-04-26 03:10:08
|
Nightly build on alvis ( i686, Red Hat 7.3 ) started at 2008-04-26 03:15:03 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 == 331 tests, 76 stderr failures, 1 stdout failure, 29 post 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-pool-0 (stderr) memcheck/tests/leak-pool-1 (stderr) memcheck/tests/leak-pool-2 (stderr) memcheck/tests/leak-pool-3 (stderr) memcheck/tests/leak-pool-4 (stderr) memcheck/tests/leak-pool-5 (stderr) memcheck/tests/leak-regroot (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/long_namespace_xml (stderr) memcheck/tests/lsframe1 (stderr) memcheck/tests/lsframe2 (stderr) memcheck/tests/mallinfo (stderr) memcheck/tests/malloc_free_fill (stderr) memcheck/tests/match-overrun (stderr) memcheck/tests/noisy_child (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/varinfo1 (stderr) memcheck/tests/varinfo2 (stderr) memcheck/tests/varinfo3 (stderr) memcheck/tests/varinfo4 (stderr) memcheck/tests/varinfo5 (stderr) memcheck/tests/varinfo6 (stderr) memcheck/tests/x86/bug152022 (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/x86/xor-undef-x86 (stderr) memcheck/tests/xml1 (stderr) massif/tests/alloc-fns-A (post) massif/tests/alloc-fns-B (post) massif/tests/basic (post) massif/tests/basic2 (post) massif/tests/big-alloc (post) massif/tests/culling1 (stderr) massif/tests/culling2 (stderr) massif/tests/custom_alloc (post) massif/tests/deep-A (post) massif/tests/deep-B (stderr) massif/tests/deep-B (post) massif/tests/deep-C (stderr) massif/tests/deep-C (post) massif/tests/deep-D (post) massif/tests/ignoring (post) massif/tests/insig (post) massif/tests/long-names (post) massif/tests/long-time (post) massif/tests/new-cpp (post) massif/tests/null (post) massif/tests/one (post) massif/tests/overloaded-new (post) massif/tests/peak (post) massif/tests/peak2 (stderr) massif/tests/peak2 (post) massif/tests/realloc (stderr) massif/tests/realloc (post) massif/tests/thresholds_0_0 (post) massif/tests/thresholds_0_10 (post) massif/tests/thresholds_10_0 (post) massif/tests/thresholds_10_10 (post) massif/tests/thresholds_5_0 (post) massif/tests/thresholds_5_10 (post) massif/tests/zero1 (post) massif/tests/zero2 (post) none/tests/blockfault (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) none/tests/shell (stderr) none/tests/shell_valid1 (stderr) none/tests/shell_valid2 (stderr) none/tests/shell_valid3 (stderr) helgrind/tests/hg01_all_ok (stderr) helgrind/tests/hg02_deadlock (stderr) helgrind/tests/hg03_inherit (stderr) helgrind/tests/hg04_race (stderr) helgrind/tests/hg05_race2 (stderr) helgrind/tests/hg06_readshared (stderr) helgrind/tests/tc01_simple_race (stderr) helgrind/tests/tc02_simple_tls (stderr) helgrind/tests/tc03_re_excl (stderr) helgrind/tests/tc05_simple_race (stderr) helgrind/tests/tc06_two_races (stderr) helgrind/tests/tc07_hbl1 (stderr) helgrind/tests/tc08_hbl2 (stderr) helgrind/tests/tc09_bad_unlock (stderr) helgrind/tests/tc11_XCHG (stderr) helgrind/tests/tc12_rwl_trivial (stderr) helgrind/tests/tc14_laog_dinphils (stderr) helgrind/tests/tc16_byterace (stderr) helgrind/tests/tc17_sembar (stderr) helgrind/tests/tc18_semabuse (stderr) helgrind/tests/tc19_shadowmem (stderr) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) helgrind/tests/tc23_bogus_condwait (stderr) helgrind/tests/tc24_nonzero_sem (stderr) |
|
From: Tom H. <th...@cy...> - 2008-04-26 03:05:58
|
Nightly build on alvis ( i686, Red Hat 7.3 ) started at 2008-04-26 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 == 327 tests, 76 stderr failures, 1 stdout failure, 29 post 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-pool-0 (stderr) memcheck/tests/leak-pool-1 (stderr) memcheck/tests/leak-pool-2 (stderr) memcheck/tests/leak-pool-3 (stderr) memcheck/tests/leak-pool-4 (stderr) memcheck/tests/leak-pool-5 (stderr) memcheck/tests/leak-regroot (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/long_namespace_xml (stderr) memcheck/tests/lsframe1 (stderr) memcheck/tests/lsframe2 (stderr) memcheck/tests/mallinfo (stderr) memcheck/tests/malloc_free_fill (stderr) memcheck/tests/match-overrun (stderr) memcheck/tests/noisy_child (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/varinfo1 (stderr) memcheck/tests/varinfo2 (stderr) memcheck/tests/varinfo3 (stderr) memcheck/tests/varinfo4 (stderr) memcheck/tests/varinfo5 (stderr) memcheck/tests/varinfo6 (stderr) memcheck/tests/x86/bug152022 (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/x86/xor-undef-x86 (stderr) memcheck/tests/xml1 (stderr) massif/tests/alloc-fns-A (post) massif/tests/alloc-fns-B (post) massif/tests/basic (post) massif/tests/basic2 (post) massif/tests/big-alloc (post) massif/tests/culling1 (stderr) massif/tests/culling2 (stderr) massif/tests/custom_alloc (post) massif/tests/deep-A (post) massif/tests/deep-B (stderr) massif/tests/deep-B (post) massif/tests/deep-C (stderr) massif/tests/deep-C (post) massif/tests/deep-D (post) massif/tests/ignoring (post) massif/tests/insig (post) massif/tests/long-names (post) massif/tests/long-time (post) massif/tests/new-cpp (post) massif/tests/null (post) massif/tests/one (post) massif/tests/overloaded-new (post) massif/tests/peak (post) massif/tests/peak2 (stderr) massif/tests/peak2 (post) massif/tests/realloc (stderr) massif/tests/realloc (post) massif/tests/thresholds_0_0 (post) massif/tests/thresholds_0_10 (post) massif/tests/thresholds_10_0 (post) massif/tests/thresholds_10_10 (post) massif/tests/thresholds_5_0 (post) massif/tests/thresholds_5_10 (post) massif/tests/zero1 (post) massif/tests/zero2 (post) none/tests/blockfault (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) none/tests/shell (stderr) none/tests/shell_valid1 (stderr) none/tests/shell_valid2 (stderr) none/tests/shell_valid3 (stderr) helgrind/tests/hg01_all_ok (stderr) helgrind/tests/hg02_deadlock (stderr) helgrind/tests/hg03_inherit (stderr) helgrind/tests/hg04_race (stderr) helgrind/tests/hg05_race2 (stderr) helgrind/tests/hg06_readshared (stderr) helgrind/tests/tc01_simple_race (stderr) helgrind/tests/tc02_simple_tls (stderr) helgrind/tests/tc03_re_excl (stderr) helgrind/tests/tc05_simple_race (stderr) helgrind/tests/tc06_two_races (stderr) helgrind/tests/tc07_hbl1 (stderr) helgrind/tests/tc08_hbl2 (stderr) helgrind/tests/tc09_bad_unlock (stderr) helgrind/tests/tc11_XCHG (stderr) helgrind/tests/tc12_rwl_trivial (stderr) helgrind/tests/tc14_laog_dinphils (stderr) helgrind/tests/tc16_byterace (stderr) helgrind/tests/tc17_sembar (stderr) helgrind/tests/tc18_semabuse (stderr) helgrind/tests/tc19_shadowmem (stderr) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) helgrind/tests/tc23_bogus_condwait (stderr) helgrind/tests/tc24_nonzero_sem (stderr) |
|
From: Tom H. <th...@cy...> - 2008-04-26 02:53:53
|
Nightly build on aston ( x86_64, Fedora Core 5 ) started at 2008-04-26 03:20:05 BST Results differ from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 421 tests, 7 stderr failures, 1 stdout failure, 0 post failures == memcheck/tests/malloc_free_fill (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/x86/scalar (stderr) none/tests/blockfault (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc22_exit_w_lock (stderr) ================================================= == Results from 24 hours ago == ================================================= Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 421 tests, 8 stderr failures, 1 stdout failure, 0 post failures == memcheck/tests/malloc_free_fill (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/x86/scalar (stderr) none/tests/blockfault (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) ================================================= == Difference between 24 hours ago and now == ================================================= *** old.short Sat Apr 26 03:37:19 2008 --- new.short Sat Apr 26 03:53:57 2008 *************** *** 8,10 **** ! == 421 tests, 8 stderr failures, 1 stdout failure, 0 post failures == memcheck/tests/malloc_free_fill (stderr) --- 8,10 ---- ! == 421 tests, 7 stderr failures, 1 stdout failure, 0 post failures == memcheck/tests/malloc_free_fill (stderr) *************** *** 16,18 **** helgrind/tests/tc20_verifywrap (stderr) - helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) --- 16,17 ---- |
|
From: Tom H. <th...@cy...> - 2008-04-26 02:51:22
|
Nightly build on lloyd ( x86_64, Fedora 7 ) started at 2008-04-26 03:05:05 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 == 415 tests, 5 stderr failures, 2 stdout failures, 0 post failures == memcheck/tests/pointer-trace (stderr) memcheck/tests/vcpu_fnfns (stdout) memcheck/tests/x86/scalar (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc22_exit_w_lock (stderr) |
|
From: Tom H. <th...@cy...> - 2008-04-26 02:40:42
|
Nightly build on trojan ( x86_64, Fedora Core 6 ) started at 2008-04-26 03:25:05 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 == 419 tests, 7 stderr failures, 5 stdout failures, 0 post failures == memcheck/tests/pointer-trace (stderr) memcheck/tests/vcpu_fnfns (stdout) memcheck/tests/x86/bug133694 (stdout) memcheck/tests/x86/bug133694 (stderr) memcheck/tests/x86/scalar (stderr) none/tests/cmdline1 (stdout) none/tests/cmdline2 (stdout) none/tests/mremap (stderr) none/tests/mremap2 (stdout) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) |
|
From: Tom H. <th...@cy...> - 2008-04-26 02:35:20
|
Nightly build on dellow ( x86_64, Fedora 8 ) started at 2008-04-26 03:10:06 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 == 415 tests, 8 stderr failures, 2 stdout failures, 0 post failures == memcheck/tests/pointer-trace (stderr) memcheck/tests/vcpu_fnfns (stdout) memcheck/tests/x86/scalar (stderr) none/tests/blockfault (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) helgrind/tests/tc18_semabuse (stderr) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) |
|
From: Tom H. <th...@cy...> - 2008-04-26 02:22:21
|
Nightly build on gill ( x86_64, Fedora Core 2 ) started at 2008-04-26 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 == 421 tests, 30 stderr failures, 3 stdout failures, 0 post failures == memcheck/tests/malloc_free_fill (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/varinfo6 (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/amd64/insn_ssse3 (stdout) none/tests/amd64/insn_ssse3 (stderr) none/tests/amd64/ssse3_misaligned (stderr) none/tests/blockfault (stderr) none/tests/fdleak_fcntl (stderr) none/tests/mremap (stderr) none/tests/mremap2 (stdout) none/tests/x86/insn_ssse3 (stdout) none/tests/x86/insn_ssse3 (stderr) none/tests/x86/ssse3_misaligned (stderr) helgrind/tests/hg01_all_ok (stderr) helgrind/tests/hg02_deadlock (stderr) helgrind/tests/hg03_inherit (stderr) helgrind/tests/hg04_race (stderr) helgrind/tests/hg05_race2 (stderr) helgrind/tests/tc01_simple_race (stderr) helgrind/tests/tc05_simple_race (stderr) helgrind/tests/tc06_two_races (stderr) helgrind/tests/tc09_bad_unlock (stderr) helgrind/tests/tc14_laog_dinphils (stderr) helgrind/tests/tc16_byterace (stderr) helgrind/tests/tc17_sembar (stderr) helgrind/tests/tc19_shadowmem (stderr) helgrind/tests/tc20_verifywrap (stderr) helgrind/tests/tc21_pthonce (stderr) helgrind/tests/tc22_exit_w_lock (stderr) helgrind/tests/tc23_bogus_condwait (stderr) |
|
From: Nicholas N. <nj...@cs...> - 2008-04-26 00:23:52
|
On Fri, 25 Apr 2008, Nuno Lopes wrote: > I would start by reading some papers from here: > http://valgrind.org/docs/pubs.html Yes, the PLDI 2007 one is the best general overview of Valgrind, instrumentation, tools, etc. The USENIX 2005 one is good for learning about Memcheck's V bit (undefinedness) tracking. > Then read the header files. They often have comprehensive explanations. Some of the .c files have good explanations at the top. docs/internals/ also has various files explaining various things, not according to any particular structure, and some might be a bit out of date. Nick |