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
(22) |
2
(19) |
3
(8) |
4
(34) |
5
(14) |
6
(14) |
|
7
(12) |
8
(15) |
9
(15) |
10
(10) |
11
(10) |
12
(28) |
13
(11) |
|
14
(22) |
15
(29) |
16
(20) |
17
(15) |
18
(39) |
19
(11) |
20
(12) |
|
21
(8) |
22
(9) |
23
(8) |
24
(10) |
25
(9) |
26
(7) |
27
(7) |
|
28
(6) |
29
(6) |
30
(11) |
|
|
|
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-04 17:10:35
|
CVS commit by nethercote:
Format wibbles.
M +2 -4 vg_mylibc.c 1.102
--- valgrind/coregrind/vg_mylibc.c #1.101:1.102
@@ -164,6 +164,5 @@ Int VG_(sigaction) ( Int signum,
Int VG_(sigaltstack)( const vki_stack_t* ss, vki_stack_t* oss )
{
- Int res
- = VG_(do_syscall)(__NR_sigaltstack, (UWord)ss, (UWord)oss);
+ Int res = VG_(do_syscall)(__NR_sigaltstack, (UWord)ss, (UWord)oss);
return VG_(is_kerror)(res) ? -1 : 0;
}
@@ -1667,6 +1666,5 @@ UInt VG_(read_millisecond_timer) ( void
Int res;
- res = VG_(do_syscall)(__NR_gettimeofday, (UWord)&tv_now,
- (UWord)NULL);
+ res = VG_(do_syscall)(__NR_gettimeofday, (UWord)&tv_now, (UWord)NULL);
now = tv_now.tv_sec * 1000000ULL + tv_now.tv_usec;
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-04 17:02:50
|
CVS commit by nethercote:
64-bit cleanness: convert some (UInt) casts of pointers to (UWord) casts.
Also, remove some unnecessary (UInt) casts of integers.
M +28 -28 vg_mylibc.c 1.101
--- valgrind/coregrind/vg_mylibc.c #1.100:1.101
@@ -165,5 +165,5 @@ Int VG_(sigaltstack)( const vki_stack_t*
{
Int res
- = VG_(do_syscall)(__NR_sigaltstack, (UInt)ss, (UInt)oss);
+ = VG_(do_syscall)(__NR_sigaltstack, (UWord)ss, (UWord)oss);
return VG_(is_kerror)(res) ? -1 : 0;
}
@@ -221,5 +221,5 @@ Int VG_(tkill)( Int tid, Int signo )
Int VG_(sigpending) ( vki_sigset_t* set )
{
- Int res = VG_(do_syscall)(__NR_sigpending, (UInt)set);
+ Int res = VG_(do_syscall)(__NR_sigpending, (UWord)set);
return VG_(is_kerror)(res) ? -1 : 0;
}
@@ -269,7 +269,7 @@ Int VG_(gettid)(void)
------------------------------------------------------------------ */
-static Int munmap_inner(void *start, UInt length)
+static Int munmap_inner(void *start, SizeT length)
{
- return VG_(do_syscall)(__NR_munmap, (UInt)start, (UInt)length );
+ return VG_(do_syscall)(__NR_munmap, (UWord)start, length );
}
@@ -340,6 +340,6 @@ Int VG_(mprotect)( void *start, SizeT le
void VG_(exit)( Int status )
{
- (void)VG_(do_syscall)(__NR_exit_group, (UInt)status );
- (void)VG_(do_syscall)(__NR_exit, (UInt)status );
+ (void)VG_(do_syscall)(__NR_exit_group, status );
+ (void)VG_(do_syscall)(__NR_exit, status );
/* Why are we still alive here? */
/*NOTREACHED*/
@@ -1234,5 +1234,5 @@ Int VG_(open) ( const Char* pathname, In
/* ... so we go direct to the horse's mouth, which seems to work
ok: */
- fd = VG_(do_syscall)(__NR_open, (UInt)pathname, flags, mode);
+ fd = VG_(do_syscall)(__NR_open, (UWord)pathname, flags, mode);
/* VG_(printf)("result = %d\n", fd); */
/* return -ve error code */
@@ -1256,5 +1256,5 @@ Int VG_(read) ( Int fd, void* buf, Int c
Int res;
/* res = read( fd, buf, count ); */
- res = VG_(do_syscall)(__NR_read, fd, (UInt)buf, count);
+ res = VG_(do_syscall)(__NR_read, fd, (UWord)buf, count);
/* return -ERRNO on error */
return res;
@@ -1265,5 +1265,5 @@ Int VG_(write) ( Int fd, const void* buf
Int res;
/* res = write( fd, buf, count ); */
- res = VG_(do_syscall)(__NR_write, fd, (UInt)buf, count);
+ res = VG_(do_syscall)(__NR_write, fd, (UWord)buf, count);
/* return -ERRNO on error */
return res;
@@ -1274,5 +1274,5 @@ Int VG_(lseek) ( Int fd, Long offset, In
Int res;
/* res = lseek( fd, offset, whence ); */
- res = VG_(do_syscall)(__NR_lseek, fd, (UInt)offset, whence);
+ res = VG_(do_syscall)(__NR_lseek, fd, (UWord)offset, whence);
if (VG_(is_kerror)(res)) res = -1;
return res;
@@ -1282,5 +1282,5 @@ Int VG_(stat) ( Char* file_name, struct
{
Int res;
- res = VG_(do_syscall)(__NR_stat, (UInt)file_name, (UInt)buf);
+ res = VG_(do_syscall)(__NR_stat, (UWord)file_name, (UWord)buf);
return res; /* return -ve error */
}
@@ -1289,5 +1289,5 @@ Int VG_(fstat) ( Int fd, struct vki_stat
{
Int res;
- res = VG_(do_syscall)(__NR_fstat, (UInt)fd, (UInt)buf);
+ res = VG_(do_syscall)(__NR_fstat, fd, (UWord)buf);
return VG_(is_kerror)(res) ? (-1) : 0;
}
@@ -1296,5 +1296,5 @@ Int VG_(dup2) ( Int oldfd, Int newfd )
{
Int res;
- res = VG_(do_syscall)(__NR_dup2, (UInt)oldfd, (UInt)newfd);
+ res = VG_(do_syscall)(__NR_dup2, oldfd, newfd);
return VG_(is_kerror)(res) ? (-1) : res;
}
@@ -1303,5 +1303,5 @@ Int VG_(rename) ( Char* old_name, Char*
{
Int res;
- res = VG_(do_syscall)(__NR_rename, (UInt)old_name, (UInt)new_name);
+ res = VG_(do_syscall)(__NR_rename, (UWord)old_name, (UWord)new_name);
return VG_(is_kerror)(res) ? (-1) : 0;
}
@@ -1310,5 +1310,5 @@ Int VG_(unlink) ( Char* file_name )
{
Int res;
- res = VG_(do_syscall)(__NR_unlink, (UInt)file_name);
+ res = VG_(do_syscall)(__NR_unlink, (UWord)file_name);
return VG_(is_kerror)(res) ? (-1) : 0;
}
@@ -1320,5 +1320,5 @@ Char* VG_(getcwd) ( Char* buf, SizeT siz
Int res;
vg_assert(buf != NULL);
- res = VG_(do_syscall)(__NR_getcwd, (UInt)buf, size);
+ res = VG_(do_syscall)(__NR_getcwd, (UWord)buf, size);
return VG_(is_kerror)(res) ? ((Char*)NULL) : (Char*)res;
}
@@ -1451,5 +1451,5 @@ Int VG_(getrlimit) (Int resource, struct
Int res;
/* res = getrlimit( resource, rlim ); */
- res = VG_(do_syscall)(__NR_getrlimit, (UInt)resource, (UInt)rlim);
+ res = VG_(do_syscall)(__NR_getrlimit, resource, (UWord)rlim);
if(VG_(is_kerror)(res)) res = -1;
return res;
@@ -1462,5 +1462,5 @@ Int VG_(setrlimit) (Int resource, struct
Int res;
/* res = setrlimit( resource, rlim ); */
- res = VG_(do_syscall)(__NR_setrlimit, (UInt)resource, (UInt)rlim);
+ res = VG_(do_syscall)(__NR_setrlimit, resource, (UWord)rlim);
if(VG_(is_kerror)(res)) res = -1;
return res;
@@ -1473,5 +1473,5 @@ Int VG_(getdents) (UInt fd, struct vki_d
Int res;
/* res = getdents( fd, dirp, count ); */
- res = VG_(do_syscall)(__NR_getdents, fd, (UInt)dirp, count);
+ res = VG_(do_syscall)(__NR_getdents, fd, (UWord)dirp, count);
if (VG_(is_kerror)(res)) res = -1;
return res;
@@ -1483,5 +1483,5 @@ Int VG_(readlink) (Char* path, Char* buf
Int res;
/* res = readlink( path, buf, bufsiz ); */
- res = VG_(do_syscall)(__NR_readlink, (UInt)path, (UInt)buf, bufsiz);
+ res = VG_(do_syscall)(__NR_readlink, (UWord)path, (UWord)buf, bufsiz);
if (VG_(is_kerror)(res)) res = -1;
return res;
@@ -1667,6 +1667,6 @@ UInt VG_(read_millisecond_timer) ( void
Int res;
- res = VG_(do_syscall)(__NR_gettimeofday, (UInt)&tv_now,
- (UInt)NULL);
+ res = VG_(do_syscall)(__NR_gettimeofday, (UWord)&tv_now,
+ (UWord)NULL);
now = tv_now.tv_sec * 1000000ULL + tv_now.tv_usec;
@@ -1946,5 +1946,5 @@ Int my_socket ( Int domain, Int type, In
args[1] = type;
args[2] = protocol;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_SOCKET, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_SOCKET, (UWord)&args);
if (VG_(is_kerror)(res))
res = -1;
@@ -1961,5 +1961,5 @@ Int my_connect ( Int sockfd, struct vki_
args[1] = (UInt)serv_addr;
args[2] = addrlen;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_CONNECT, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_CONNECT, (UWord)&args);
if (VG_(is_kerror)(res))
res = -1;
@@ -1982,5 +1982,5 @@ Int VG_(write_socket)( Int sd, void *msg
args[2] = count;
args[3] = flags;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_SEND, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_SEND, (UWord)&args);
if (VG_(is_kerror)(res))
res = -1;
@@ -1995,5 +1995,5 @@ Int VG_(getsockname) ( Int sd, struct vk
args[1] = (UInt)name;
args[2] = (UInt)namelen;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETSOCKNAME, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETSOCKNAME, (UWord)&args);
if(VG_(is_kerror)(res))
res = -1;
@@ -2008,5 +2008,5 @@ Int VG_(getpeername) ( Int sd, struct vk
args[1] = (UInt)name;
args[2] = (UInt)namelen;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETPEERNAME, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETPEERNAME, (UWord)&args);
if(VG_(is_kerror)(res))
res = -1;
@@ -2024,5 +2024,5 @@ Int VG_(getsockopt) ( Int sd, Int level,
args[3] = (UInt)optval;
args[4] = (UInt)optlen;
- res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETSOCKOPT, (UInt)&args);
+ res = VG_(do_syscall)(__NR_socketcall, VKI_SYS_GETSOCKOPT, (UWord)&args);
if(VG_(is_kerror)(res))
res = -1;
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-04 16:39:47
|
CVS commit by nethercote:
64-bit cleanness: make the hash-table have UWord keys instead of UInt keys.
Allows addresses as keys.
M +1 -1 coregrind/vg_hashtable.c 1.11
M +2 -2 helgrind/hg_main.c 1.89
M +2 -2 include/tool.h.base 1.13
M +1 -1 massif/ms_main.c 1.20
M +6 -6 memcheck/mac_malloc_wrappers.c 1.17
--- valgrind/coregrind/vg_hashtable.c #1.10:1.11
@@ -74,5 +74,5 @@ void VG_(HT_add_node) ( VgHashTable tabl
the previous node's `next' pointer which allows it to be removed from the
list later without having to look it up again. */
-VgHashNode* VG_(HT_get_node) ( VgHashTable table, UInt key,
+VgHashNode* VG_(HT_get_node) ( VgHashTable table, UWord key,
/*OUT*/VgHashNode*** next_ptr )
{
--- valgrind/helgrind/hg_main.c #1.88:1.89
@@ -1921,5 +1921,5 @@ void handle_free ( void* p )
HG_Chunk** prev_chunks_next_ptr;
- hc = (HG_Chunk*)VG_(HT_get_node) ( hg_malloc_list, (UInt)p,
+ hc = (HG_Chunk*)VG_(HT_get_node) ( hg_malloc_list, (UWord)p,
(VgHashNode***)&prev_chunks_next_ptr );
if (hc == NULL) {
@@ -1953,5 +1953,5 @@ void* SK_(realloc) ( void* p, SizeT new_
/* First try and find the block. */
- hc = (HG_Chunk*)VG_(HT_get_node) ( hg_malloc_list, (UInt)p,
+ hc = (HG_Chunk*)VG_(HT_get_node) ( hg_malloc_list, (UWord)p,
(VgHashNode***)&prev_chunks_next_ptr );
--- valgrind/include/tool.h.base #1.12:1.13
@@ -1587,5 +1587,5 @@
struct _VgHashNode {
struct _VgHashNode * next;
- UInt key;
+ UWord key;
}
VgHashNode;
@@ -1607,5 +1607,5 @@
previous node's `next' pointer which allows it to be removed from the
list later without having to look it up again. */
-extern VgHashNode* VG_(HT_get_node) ( VgHashTable t, UInt key,
+extern VgHashNode* VG_(HT_get_node) ( VgHashTable t, UWord key,
/*OUT*/VgHashNode*** next_ptr );
--- valgrind/massif/ms_main.c #1.19:1.20
@@ -649,5 +649,5 @@ static __inline__
HP_Chunk* get_HP_Chunk(void* p, HP_Chunk*** prev_chunks_next_ptr)
{
- return (HP_Chunk*)VG_(HT_get_node) ( malloc_list, (UInt)p,
+ return (HP_Chunk*)VG_(HT_get_node) ( malloc_list, (UWord)p,
(VgHashNode***)prev_chunks_next_ptr );
}
--- valgrind/memcheck/mac_malloc_wrappers.c #1.16:1.17
@@ -305,5 +305,5 @@ void MAC_(handle_free) ( Addr p, UInt rz
cmalloc_n_frees++;
- mc = (MAC_Chunk*)VG_(HT_get_node) ( MAC_(malloc_list), (UInt)p,
+ mc = (MAC_Chunk*)VG_(HT_get_node) ( MAC_(malloc_list), (UWord)p,
(void*)&prev_chunks_next_ptr );
if (mc == NULL) {
@@ -354,5 +354,5 @@ void* SK_(realloc) ( void* p, SizeT new_
/* First try and find the block. */
- mc = (MAC_Chunk*)VG_(HT_get_node) ( MAC_(malloc_list), (UInt)p,
+ mc = (MAC_Chunk*)VG_(HT_get_node) ( MAC_(malloc_list), (UWord)p,
(void*)&prev_chunks_next_ptr );
@@ -461,5 +461,5 @@ void MAC_(destroy_mempool)(Addr pool)
mp = (MAC_Mempool*)VG_(HT_get_node) ( MAC_(mempool_list),
- (UInt)pool,
+ (UWord)pool,
(void*)&prev_next );
@@ -483,5 +483,5 @@ void MAC_(mempool_alloc)(Addr pool, Addr
MAC_Mempool** prev_next;
- mp = (MAC_Mempool*)VG_(HT_get_node) ( MAC_(mempool_list), (UInt)pool,
+ mp = (MAC_Mempool*)VG_(HT_get_node) ( MAC_(mempool_list), (UWord)pool,
(void*)&prev_next );
@@ -506,5 +506,5 @@ void MAC_(mempool_free)(Addr pool, Addr
- mp = (MAC_Mempool*)VG_(HT_get_node)(MAC_(mempool_list), (UInt)pool,
+ mp = (MAC_Mempool*)VG_(HT_get_node)(MAC_(mempool_list), (UWord)pool,
(void*)&prev_pool);
@@ -514,5 +514,5 @@ void MAC_(mempool_free)(Addr pool, Addr
}
- mc = (MAC_Chunk*)VG_(HT_get_node)(mp->chunks, (UInt)addr,
+ mc = (MAC_Chunk*)VG_(HT_get_node)(mp->chunks, (UWord)addr,
(void*)&prev_chunk);
|
|
From: Benjamin M. <ben...@cs...> - 2004-11-04 16:17:06
|
CVS commit by bmeyer: Changed to be consistant with the rest of the files M +1 -1 demangle.h 1.2 --- valgrind/coregrind/demangle/demangle.h #1.1.1.1:1.2 @@ -19,5 +19,5 @@ -#if !defined (DEMANGLE_H) +#ifndef DEMANGLE_H #define DEMANGLE_H |
|
From: Nicholas N. <nj...@ca...> - 2004-11-04 13:49:37
|
CVS commit by nethercote:
64-bit cleanness: replace hard-wired 0xffffffff literals with something less
32-bit-specific.
M +1 -1 coregrind/vg_mylibc.c 1.100
M +2 -2 massif/ms_main.c 1.19
M +4 -4 memcheck/tests/brk.c 1.2
--- valgrind/coregrind/vg_mylibc.c #1.99:1.100
@@ -46,5 +46,5 @@ Int VG_(sigfillset)( vki_sigset_t* set )
return -1;
for (i = 0; i < _VKI_NSIG_WORDS; i++)
- set->sig[i] = 0xFFFFFFFF;
+ set->sig[i] = ~(UWord)0x0;
return 0;
}
--- valgrind/massif/ms_main.c #1.18:1.19
@@ -416,5 +416,5 @@ static Bool is_alloc_fn(Addr eip)
static XPt* get_XCon( ThreadId tid, Bool custom_malloc )
{
- // Static to minimise stack size. +1 for added 0xffffffff %eip.
+ // Static to minimise stack size. +1 for added ~0 %eip.
static Addr eips[MAX_DEPTH + MAX_ALLOC_FNS + 1];
@@ -441,5 +441,5 @@ static XPt* get_XCon( ThreadId tid, Bool
// the parent's approx_ST wouldn't be equal [or almost equal] to the
// total of the childrens' approx_STs).
- eips[ n_eips++ ] = 0xffffffff;
+ eips[ n_eips++ ] = ~((Addr)0);
// Skip over alloc functions in eips[].
--- valgrind/memcheck/tests/brk.c #1.1:1.2
@@ -14,5 +14,5 @@ int main(void)
void* vals[10];
void* res;
-
+#define EOL ((void*)( ~(long)0 ))
vals[0] = (void*)0;
vals[1] = (void*)1;
@@ -24,6 +24,6 @@ int main(void)
vals[7] = ds - 0x1; // shrink below start size
// vals[8] = ds - 0x1000; // shrink a lot below start size (into text)
-// vals[9] = (void*)0xffffffff;
- vals[8] = (void*)0xffffffff;
+// vals[9] = EOL;
+ vals[8] = EOL;
for (i = 0; (void*)0xffffffff != vals[i]; i++) {
@@ -33,5 +33,5 @@ int main(void)
assert( 0 == brk(orig_ds) ); // libc brk()
- for (i = 0; (void*)0xffffffff != vals[i]; i++) {
+ for (i = 0; EOL != vals[i]; i++) {
res = (void*)brk(vals[i]);
}
|
|
From: Tom H. <th...@cy...> - 2004-11-04 13:24:38
|
CVS commit by thughes:
Fix some GNAT related stabs parsing problems.
MERGE TO STABLE
M +20 -7 vg_stabs.c 1.14.2.2
--- valgrind/coregrind/vg_stabs.c #1.14.2.1:1.14.2.2
@@ -171,4 +171,13 @@ static SymType *structDef(StabTypeTab *t
SymType *ref = structRef(tab, NULL, isstruct, name);
+ /* it seems that GNAT likes to declare names as both struct tags
+ and typedefs so check we aren't about to make a structure a
+ reference to itself as that will create a loop */
+ if (ref == def) {
+ if (debug)
+ VG_(printf)("ignoring %s self ref for %s %p -> %p\n",
+ isstruct ? "struct" : "union", name, ref, def);
+ }
+ else {
if (debug)
VG_(printf)("defining %s ref for %s %p -> %p\n",
@@ -177,4 +186,5 @@ static SymType *structDef(StabTypeTab *t
def = VG_(st_mktypedef)(ref, name, VG_(st_basetype)(def, False));
VG_(st_setname)(def, name);
+ }
return def;
}
@@ -940,5 +950,8 @@ static SymType *stabtype_parser(SegInfo
EXPECT(',', "struct TYPE");
- off = atou(&p, 0);
+ /* logic dictates that the offset would always be
+ positive and that atou would work here but GNAT has
+ has other ideas - see bug 90128 for more details */
+ off = atoi(&p, 0);
if (*p == ',') {
|
|
From: Tom H. <th...@cy...> - 2004-11-04 13:20:23
|
CVS commit by thughes:
Add support for the settimeofday system call.
MERGE TO STABLE
M +14 -0 vg_syscalls.c 1.131.2.1
--- valgrind/coregrind/vg_syscalls.c #1.131:1.131.2.1
@@ -4675,4 +4675,17 @@ PRE(setrlimit)
}
+PRE(settimeofday)
+{
+ /* int settimeofday(const struct timeval *tv, const struct timezone *tz); */
+ MAYBE_PRINTF("settimeofday ( %p, %p )\n",arg1,arg2);
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tv)", arg1,
+ sizeof(struct timeval) );
+ if (arg2 != 0) {
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tz)", arg2,
+ sizeof(struct timezone) );
+ /* maybe should warn if tz->tz_dsttime is non-zero? */
+ }
+}
+
PRE(setuid)
{
@@ -6072,4 +6085,5 @@ static const struct sys_info sys_info[]
SYSB_(setreuid, 0),
SYSB_(setrlimit, 0),
+ SYSB_(settimeofday, 0),
SYSB_(setuid32, 0),
SYSB_(setuid, 0),
|
|
From: Tom H. <th...@cy...> - 2004-11-04 13:20:22
|
CVS commit by thughes:
Add support for the settimeofday system call.
M +14 -0 vg_syscalls.c 1.154
--- valgrind/coregrind/vg_syscalls.c #1.153:1.154
@@ -4666,4 +4666,17 @@ PRE(setrlimit)
}
+PRE(settimeofday)
+{
+ /* int settimeofday(const struct timeval *tv, const struct timezone *tz); */
+ MAYBE_PRINTF("settimeofday ( %p, %p )\n",arg1,arg2);
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tv)", arg1,
+ sizeof(struct vki_timeval) );
+ if (arg2 != 0) {
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tz)", arg2,
+ sizeof(struct vki_timezone) );
+ /* maybe should warn if tz->tz_dsttime is non-zero? */
+ }
+}
+
PRE(setuid)
{
@@ -6082,4 +6095,5 @@ static const struct sys_info sys_info[]
SYSB_(setreuid, 0),
SYSB_(setrlimit, 0),
+ SYSB_(settimeofday, 0),
SYSB_(setuid32, 0),
SYSB_(setuid, 0),
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-04 11:08:45
|
On Thu, 4 Nov 2004, Tom Hughes wrote:
>> + if (((const struct timezone *)arg2)->tz_dsttime != 0)
>> + {
>> + MAYBE_PRINTF("settimeofday tz_dsttime in tz should be zero\n");
>> + }
>
> Hmm. What do people think about this? There don't seem to be any
> precedents for this kind of message. If we are going to do it is
> a message controlled by --trace-syslog the right way, or should it
> be a standard warning?
It shouldn't use MAYBE_PRINTF -- that's for showing which syscalls are
called when you use --trace-syscalls=yes.
As for generally issuing a warning... there are heaps of syscall checks
that we could do, which we currently don't. Memcheck doesn't even check
if scalar args are defined, which is a definite oversight, let alone check
if the values in the args look reasonable.
I'm thinking about overhauling the syscall wrappers anyway, so that more
information is encoded in a single spot -- ie. we just give the prototype
somehow, eg:
SYSCALL(ssize_t, "write", int, "fd", const void *, "buf", size_t, "count");
and several things would be auto-handled by this: the printing for
--trace-syscalls=yes, scalar definedness checking for Memcheck, and it
would also replace the comments giving the prototype (some of which aren't
correct...)
As for checking for reasonable ranges, I'm not sure. I wonder if it could
give lots of messages that people don't care about? There are a few
warnings that currently don't go through the proper error-handling code
(eg. "silly arg to malloc") and so cannot be suppressed, etc. We could do
that but I'm inclined to leave it for the moment. If you check in the
patch, I'd put in a comment about the possibility of this check, but not
actually do anything about it yet.
N
|
|
From: Tom H. <th...@cy...> - 2004-11-04 10:37:21
|
In message <330...@os...>
Larsson Roger <rog...@op...> wrote:
> now with contents!
Thanks for the patch. For future reference you might find that it's
better to submit things like this through the bug tracker as it helps
ensure they don't get missed.
> + if (((const struct timezone *)arg2)->tz_dsttime != 0)
> + {
> + MAYBE_PRINTF("settimeofday tz_dsttime in tz should be zero\n");
> + }
Hmm. What do people think about this? There don't seem to be any
precedents for this kind of message. If we are going to do it is
a message controlled by --trace-syslog the right way, or should it
be a standard warning?
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: <js...@ac...> - 2004-11-04 03:56:31
|
Nightly build on phoenix ( SuSE 9.1 ) started at 2004-11-04 03:50:00 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: (cpu_test failed, skipping) insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 177 tests, 2 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_fcntl (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <to...@co...> - 2004-11-04 03:26:27
|
Nightly build on dunsmere ( Fedora Core 2 ) started at 2004-11-04 03:20:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 8 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-04 03:20:54
|
Nightly build on audi ( Red Hat 9 ) started at 2004-11-04 03:15:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 8 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-04 03:13:33
|
Nightly build on ginetta ( Red Hat 8.0 ) started at 2004-11-04 03:10:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow cpuid: valgrind ./cpuid dastest: valgrind ./dastest fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 0 stderr failures, 0 stdout failures ================= |
|
From: Tom H. <th...@cy...> - 2004-11-04 03:08:21
|
Nightly build on alvis ( Red Hat 7.3 ) started at 2004-11-04 03:05:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 1 stderr failure, 0 stdout failures ================= memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-04 03:03:55
|
Nightly build on standard ( Red Hat 7.2 ) started at 2004-11-04 03:00:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 1 stderr failure, 0 stdout failures ================= memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |
|
From: Nicholas N. <nj...@ca...> - 2004-11-03 18:10:42
|
CVS commit by nethercote:
64-bit cleanness: Yet more UInt-->SizeT changes.
M +5 -5 addrcheck/ac_main.c 1.68
M +2 -2 cachegrind/cg_main.c 1.82
M +1 -1 coregrind/toolfuncs.def 1.7
M +2 -4 coregrind/vg_memory.c 1.76
M +12 -5 coregrind/vg_mylibc.c 1.99
M +10 -10 coregrind/vg_replace_malloc.c.base 1.10
M +3 -3 coregrind/vg_symtab2.c 1.95
M +50 -50 coregrind/vg_syscalls.c 1.153
M +2 -2 helgrind/hg_main.c 1.88
M +6 -6 include/tool.h.base 1.12
M +1 -1 memcheck/mac_needs.c 1.30
M +2 -2 memcheck/mac_shared.h 1.26
--- valgrind/addrcheck/ac_main.c #1.67:1.68
@@ -139,5 +139,5 @@ static void ac_ACCESS4_SLOWLY ( Addr a,
static void ac_ACCESS2_SLOWLY ( Addr a, Bool isWrite );
static void ac_ACCESS1_SLOWLY ( Addr a, Bool isWrite );
-static void ac_fpu_ACCESS_check_SLOWLY ( Addr addr, Int size, Bool isWrite );
+static void ac_fpu_ACCESS_check_SLOWLY ( Addr addr, SizeT size, Bool isWrite );
/*------------------------------------------------------------*/
@@ -834,5 +834,5 @@ static void ac_ACCESS1_SLOWLY ( Addr a,
static
-void ac_fpu_ACCESS_check ( Addr addr, Int size, Bool isWrite )
+void ac_fpu_ACCESS_check ( Addr addr, SizeT size, Bool isWrite )
{
/* Ensure the read area is both addressible and valid (ie,
@@ -913,5 +913,5 @@ void ac_fpu_ACCESS_check ( Addr addr, In
REGPARM(2)
-static void ac_fpu_READ_check ( Addr addr, Int size )
+static void ac_fpu_READ_check ( Addr addr, SizeT size )
{
ac_fpu_ACCESS_check ( addr, size, /*isWrite*/False );
@@ -919,5 +919,5 @@ static void ac_fpu_READ_check ( Addr add
REGPARM(2)
-static void ac_fpu_WRITE_check ( Addr addr, Int size )
+static void ac_fpu_WRITE_check ( Addr addr, SizeT size )
{
ac_fpu_ACCESS_check ( addr, size, /*isWrite*/True );
@@ -928,5 +928,5 @@ static void ac_fpu_WRITE_check ( Addr ad
------------------------------------------------------------------ */
-void ac_fpu_ACCESS_check_SLOWLY ( Addr addr, Int size, Bool isWrite )
+void ac_fpu_ACCESS_check_SLOWLY ( Addr addr, SizeT size, Bool isWrite )
{
Int i;
--- valgrind/cachegrind/cg_main.c #1.81:1.82
@@ -1025,10 +1025,10 @@ void SK_(fini)(Int exitcode)
// Called when a translation is invalidated due to code unloading.
-void SK_(discard_basic_block_info) ( Addr a, UInt size )
+void SK_(discard_basic_block_info) ( Addr a, SizeT size )
{
VgHashNode** prev_next_ptr;
VgHashNode* bb_info;
- if (0) VG_(printf)( "discard_basic_block_info: %p, %u\n", a, size);
+ if (0) VG_(printf)( "discard_basic_block_info: %p, %llu\n", a, (ULong)size);
// Get BB info, remove from table, free BB info. Simple!
--- valgrind/coregrind/toolfuncs.def #1.6:1.7
@@ -92,5 +92,5 @@
## Should discard any information that pertains to specific basic blocks
## or instructions within the address range given.
-void, discard_basic_block_info, Addr a, UInt size
+void, discard_basic_block_info, Addr a, SizeT size
--- valgrind/coregrind/vg_memory.c #1.75:1.76
@@ -716,5 +716,5 @@ static void segv_handler(Int seg)
signal = bad.
*/
-Bool VG_(is_addressable)(Addr p, Int size)
+Bool VG_(is_addressable)(Addr p, SizeT size)
{
volatile Char * volatile cp = (volatile Char *)p;
@@ -723,6 +723,4 @@ Bool VG_(is_addressable)(Addr p, Int siz
vki_sigset_t mask;
- vg_assert(size > 0);
-
sa.ksa_handler = segv_handler;
sa.sa_flags = 0;
@@ -749,5 +747,5 @@ Bool VG_(is_addressable)(Addr p, Int siz
// Returns 0 on failure.
-Addr VG_(client_alloc)(Addr addr, UInt len, UInt prot, UInt sf_flags)
+Addr VG_(client_alloc)(Addr addr, SizeT len, UInt prot, UInt sf_flags)
{
len = PGROUNDUP(len);
--- valgrind/coregrind/vg_mylibc.c #1.98:1.99
@@ -1316,9 +1316,9 @@ Int VG_(unlink) ( Char* file_name )
/* Nb: we do not allow the Linux extension which malloc()s memory for the
buffer if buf==NULL, because we don't want Linux calling malloc() */
-Char* VG_(getcwd) ( Char* buf, Int size )
+Char* VG_(getcwd) ( Char* buf, SizeT size )
{
Int res;
vg_assert(buf != NULL);
- res = VG_(do_syscall)(__NR_getcwd, (UInt)buf, (UInt)size);
+ res = VG_(do_syscall)(__NR_getcwd, (UInt)buf, size);
return VG_(is_kerror)(res) ? ((Char*)NULL) : (Char*)res;
}
@@ -1327,5 +1327,5 @@ Char* VG_(getcwd) ( Char* buf, Int size
Bool VG_(getcwd_alloc) ( Char** out )
{
- UInt size = 4;
+ SizeT size = 4;
*out = NULL;
@@ -1729,5 +1729,5 @@ Int VG_(log2) ( Int x )
// Generic shell sort. Like stdlib.h's qsort().
-void VG_(ssort)( void* base, UInt nmemb, UInt size,
+void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
Int (*compar)(void*, void*) )
{
@@ -1759,5 +1759,5 @@ void VG_(ssort)( void* base, UInt nmemb,
// Specialised cases
- if (sizeof(UInt) == size) {
+ if (sizeof(ULong) == size) {
#define ASSIGN(dst, dsti, src, srci) \
@@ -1767,4 +1767,11 @@ void VG_(ssort)( void* base, UInt nmemb,
compar( (void*)(& (dst)[(dsti)]), (void*)(& (src)[(srci)]) )
+ ULong* a = (ULong*)base;
+ ULong v[1];
+
+ SORT;
+
+ } else if (sizeof(UInt) == size) {
+
UInt* a = (UInt*)base;
UInt v[1];
--- valgrind/coregrind/vg_replace_malloc.c.base #1.9:1.10
@@ -96,5 +96,5 @@
/* ALL calls to malloc() and friends wind up here. */
#define ALLOC(fff, vgfff) \
-LIBALIAS(void *, fff, (Int n)) \
+LIBALIAS(void *, fff, (SizeT n)) \
{ \
void* v; \
@@ -110,5 +110,5 @@
#define ALLOC2(fff, vgfff) \
-LIBALIAS(void *, fff, (Int n)) \
+LIBALIAS(void *, fff, (SizeT n)) \
{ \
void* v; \
@@ -165,5 +165,5 @@
-LIBALIAS(void*, calloc, ( Int nmemb, Int size ))
+LIBALIAS(void*, calloc, ( SizeT nmemb, SizeT size ))
{
void* v;
@@ -178,5 +178,5 @@
}
-LIBALIAS(void*, realloc, ( void* ptrV, Int new_size ))
+LIBALIAS(void*, realloc, ( void* ptrV, SizeT new_size ))
{
void* v;
@@ -200,5 +200,5 @@
-LIBALIAS(void*, memalign, ( Int alignment, Int n ))
+LIBALIAS(void*, memalign, ( SizeT alignment, SizeT n ))
{
void* v;
@@ -220,5 +220,5 @@
-LIBALIAS(void*, valloc, ( Int size ))
+LIBALIAS(void*, valloc, ( SizeT size ))
{
return VG_INTERCEPT(soname:libc.so.6, memalign)(VKI_PAGE_SIZE, size);
@@ -235,5 +235,5 @@
-LIBALIAS(int, posix_memalign, ( void **memptr, UInt alignment, UInt size ))
+LIBALIAS(int, posix_memalign, ( void **memptr, SizeT alignment, SizeT size ))
{
void *mem;
@@ -256,5 +256,5 @@
LIBALIAS(int, malloc_usable_size, ( void* p ))
{
- Int pszB;
+ SizeT pszB;
MALLOC_TRACE("malloc_usable_size(%p)", p );
@@ -263,6 +263,6 @@
if (!init_done) init();
- pszB = (Int)VALGRIND_NON_SIMD_CALL2( info.arena_payload_szB,
- VG_AR_CLIENT, p );
+ pszB = (SizeT)VALGRIND_NON_SIMD_CALL2( info.arena_payload_szB,
+ VG_AR_CLIENT, p );
MALLOC_TRACE(" = %d", pszB );
--- valgrind/coregrind/vg_symtab2.c #1.94:1.95
@@ -1602,5 +1602,5 @@ SegInfo *VG_(read_seg_symbols) ( Segment
maintain the no-overlapping invariant.
*/
-static void unload_symbols ( Addr start, UInt length )
+static void unload_symbols ( Addr start, SizeT length )
{
SegInfo *prev, *curr;
@@ -2542,5 +2542,5 @@ Addr VG_(seg_start)(const SegInfo* seg)
}
-UInt VG_(seg_size)(const SegInfo* seg)
+SizeT VG_(seg_size)(const SegInfo* seg)
{
return seg->size;
@@ -2552,5 +2552,5 @@ const UChar* VG_(seg_filename)(const Seg
}
-UInt VG_(seg_sym_offset)(const SegInfo* seg)
+ULong VG_(seg_sym_offset)(const SegInfo* seg)
{
return seg->offset;
--- valgrind/coregrind/vg_syscalls.c #1.152:1.153
@@ -114,5 +114,5 @@ static void do_atfork_child(ThreadId tid
/* return true if address range entirely contained within client
address space */
-static Bool valid_client_addr(Addr start, UInt size, ThreadId tid, const Char *syscallname)
+static Bool valid_client_addr(Addr start, SizeT size, ThreadId tid, const Char *syscallname)
{
Addr end = start+size;
@@ -166,5 +166,5 @@ static Bool valid_client_addr(Addr start
kernel's, which causes the leak detector to crash. */
static
-void mash_addr_and_len( Addr* a, UInt* len)
+void mash_addr_and_len( Addr* a, SizeT* len)
{
Addr ra;
@@ -176,5 +176,5 @@ void mash_addr_and_len( Addr* a, UInt* l
static
-void mmap_segment ( Addr a, UInt len, UInt prot, UInt mm_flags, Int fd, ULong offset )
+void mmap_segment ( Addr a, SizeT len, UInt prot, UInt mm_flags, Int fd, ULong offset )
{
Bool rr, ww, xx;
@@ -201,6 +201,6 @@ void mmap_segment ( Addr a, UInt len, UI
static
-Addr mremap_segment ( Addr old_addr, UInt old_size,
- Addr new_addr, UInt new_size,
+Addr mremap_segment ( Addr old_addr, SizeT old_size,
+ Addr new_addr, SizeT new_size,
UInt flags, ThreadId tid)
{
@@ -692,5 +692,5 @@ Char *strdupcat ( const Char *s1, const
static
void pre_mem_read_sendmsg ( ThreadId tid,
- Char *msg, UInt base, UInt size )
+ Char *msg, Addr base, SizeT size )
{
Char *outmsg = strdupcat ( "socketcall.sendmsg", msg, VG_AR_TRANSIENT );
@@ -702,5 +702,5 @@ void pre_mem_read_sendmsg ( ThreadId tid
static
void pre_mem_write_recvmsg ( ThreadId tid,
- Char *msg, UInt base, UInt size )
+ Char *msg, Addr base, SizeT size )
{
Char *outmsg = strdupcat ( "socketcall.recvmsg", msg, VG_AR_TRANSIENT );
@@ -711,5 +711,5 @@ void pre_mem_write_recvmsg ( ThreadId ti
static
void post_mem_write_recvmsg ( ThreadId tid,
- Char *fieldName, UInt base, UInt size )
+ Char *fieldName, Addr base, SizeT size )
{
VG_TRACK( post_mem_write, base, size );
@@ -720,5 +720,5 @@ void msghdr_foreachfield (
ThreadId tid,
struct vki_msghdr *msg,
- void (*foreach_func)( ThreadId, Char *, UInt, UInt )
+ void (*foreach_func)( ThreadId, Char *, Addr, SizeT )
)
{
@@ -1189,6 +1189,6 @@ PRE(fsetxattr)
/* int fsetxattr (int filedes, const char *name,
const void *value, size_t size, int flags); */
- MAYBE_PRINTF("fsetxattr ( %d, %p, %p, %d, %d )\n",
- arg1, arg2, arg3, arg4, arg5);
+ MAYBE_PRINTF("fsetxattr ( %d, %p, %p, %llu, %d )\n",
+ arg1, arg2, arg3, (ULong)arg4, arg5);
SYSCALL_TRACK( pre_mem_read_asciiz, tid, "fsetxattr(name)", arg2 );
SYSCALL_TRACK( pre_mem_read, tid, "fsetxattr(value)", arg3, arg4 );
@@ -1247,5 +1247,5 @@ PRE(flistxattr)
{
/* ssize_t flistxattr (int filedes, char *list, size_t size); */
- MAYBE_PRINTF("flistxattr ( %d, %p, %d )\n", arg1, arg2, arg3);
+ MAYBE_PRINTF("flistxattr ( %d, %p, %llu )\n", arg1, arg2, (ULong)arg3);
SYSCALL_TRACK( pre_mem_write, tid, "listxattr(list)", arg2, arg3 );
}
@@ -1308,5 +1308,5 @@ PRE(msync)
{
/* int msync(const void *start, size_t length, int flags); */
- MAYBE_PRINTF("msync ( %p, %d, %d )\n", arg1,arg2,arg3);
+ MAYBE_PRINTF("msync ( %p, %llu, %d )\n", arg1,(ULong)arg2,arg3);
SYSCALL_TRACK( pre_mem_read, tid, "msync(start)", arg1, arg2 );
}
@@ -1432,5 +1432,5 @@ PRE(madvise)
{
/* int madvise(void *start, size_t length, int advice ); */
- MAYBE_PRINTF("madvise ( %p, %d, %d )\n", arg1,arg2,arg3);
+ MAYBE_PRINTF("madvise ( %p, %llu, %d )\n", arg1,(ULong)arg2,arg3);
}
@@ -1441,6 +1441,6 @@ PRE(mremap)
/* void* mremap(void * old_address, size_t old_size,
size_t new_size, unsigned long flags, void * new_address); */
- MAYBE_PRINTF("mremap ( %p, %d, %d, 0x%x, %p )\n",
- arg1, arg2, arg3, arg4, arg5);
+ MAYBE_PRINTF("mremap ( %p, %llu, %d, 0x%x, %p )\n",
+ arg1, (ULong)arg2, arg3, arg4, arg5);
set_result( mremap_segment((Addr)arg1, arg2, (Addr)arg5, arg3, arg4, tid) );
@@ -1499,5 +1499,5 @@ PRE(mlock)
{
/* int mlock(const void * addr, size_t len) */
- MAYBE_PRINTF("mlock ( %p, %d )\n", arg1, arg2);
+ MAYBE_PRINTF("mlock ( %p, %llu )\n", arg1, (ULong)arg2);
}
@@ -1505,5 +1505,5 @@ PRE(munlock)
{
/* int munlock(const void * addr, size_t len) */
- MAYBE_PRINTF("munlock ( %p, %d )\n", arg1, arg2);
+ MAYBE_PRINTF("munlock ( %p, %llu )\n", arg1, (ULong)arg2);
}
@@ -1572,5 +1572,5 @@ PRE(sendfile)
/* ssize_t sendfile(int out_fd, int in_fd, off_t *offset,
size_t count) */
- MAYBE_PRINTF("sendfile ( %d, %d, %p, %d )\n",arg1,arg2,arg3,arg4);
+ MAYBE_PRINTF("sendfile ( %d, %d, %p, %llu )\n",arg1,arg2,arg3,(ULong)arg4);
if (arg3 != (UInt)NULL)
SYSCALL_TRACK( pre_mem_write, tid, "sendfile(offset)",
@@ -1587,5 +1587,5 @@ PRE(sendfile64)
/* ssize_t sendfile64(int out_df, int in_fd, loff_t *offset,
size_t count); */
- MAYBE_PRINTF("sendfile64 ( %d, %d, %p, %d )\n",arg1,arg2,arg3,arg4);
+ MAYBE_PRINTF("sendfile64 ( %d, %d, %p, %llu )\n",arg1,arg2,arg3,(ULong)arg4);
if (arg3 != (UInt)NULL)
SYSCALL_TRACK( pre_mem_write, tid, "sendfile64(offset)",
@@ -1603,6 +1603,6 @@ PRE(pwrite64)
{
// ssize_t pwrite64(int fd, const void *buf, size_t nbytes, loff_t offset);
- MAYBE_PRINTF("pwrite64 ( %d, %p, %d, %lld )\n",
- arg1, arg2, arg3, arg4|((ULong) arg5 << 32));
+ MAYBE_PRINTF("pwrite64 ( %d, %p, %llu, %lld )\n",
+ arg1, arg2, (ULong)arg3, arg4|((ULong) arg5 << 32));
SYSCALL_TRACK( pre_mem_read, tid, "pwrite64(buf)", arg2, arg3 );
}
@@ -1630,5 +1630,5 @@ PRE(fstatfs64)
{
/* int fstatfs64(int fd, size_t sz, struct statfs *buf); */
- MAYBE_PRINTF("fstatfs64 ( %d, %p )\n",arg1,arg2);
+ MAYBE_PRINTF("fstatfs64 ( %d, %llu, %p )\n",arg1,(ULong)arg2,arg3);
SYSCALL_TRACK( pre_mem_write, tid, "stat(buf)", arg3, arg2 );
}
@@ -1648,6 +1648,6 @@ PRE(pread64)
{
/* ssize_t pread64(int fd, void *buf, size_t count, loff_t offset); */
- MAYBE_PRINTF("pread ( %d, %p, %d, %lld )\n",
- arg1, arg2, arg3, arg4|((ULong) arg5 << 32));
+ MAYBE_PRINTF("pread ( %d, %p, %llu, %lld )\n",
+ arg1, arg2, (ULong)arg3, arg4|((ULong) arg5 << 32));
SYSCALL_TRACK( pre_mem_write, tid, "pread(buf)", arg2, arg3 );
}
@@ -2112,5 +2112,5 @@ PRE(ftruncate)
{
/* int ftruncate(int fd, size_t length); */
- MAYBE_PRINTF("ftruncate ( %d, %d )\n", arg1,arg2);
+ MAYBE_PRINTF("ftruncate ( %d, %lld )\n", arg1,(ULong)arg2);
}
@@ -2173,5 +2173,5 @@ PRE(getcwd)
// type to the glibc one!
/* long getcwd(char *buf, size_t size); */
- MAYBE_PRINTF("getcwd ( %p, %d )\n",arg1,arg2);
+ MAYBE_PRINTF("getcwd ( %p, %llu )\n",arg1,(ULong)arg2);
SYSCALL_TRACK( pre_mem_write, tid, "getcwd(buf)", arg1, arg2 );
}
@@ -4081,6 +4081,6 @@ PRE(mmap2)
int flags, int fd, off_t offset);
*/
- MAYBE_PRINTF("mmap2 ( %p, %d, %d, %d, %d, %d )\n",
- arg1, arg2, arg3, arg4, arg5, arg6 );
+ MAYBE_PRINTF("mmap2 ( %p, %llu, %d, %d, %d, %d )\n",
+ arg1, (ULong)arg2, arg3, arg4, arg5, arg6 );
if (arg4 & VKI_MAP_FIXED) {
@@ -4113,6 +4113,6 @@ PRE(mmap)
PLATFORM_GET_MMAP_ARGS(tst, a1, a2, a3, a4, a5, a6);
- MAYBE_PRINTF("mmap ( %p, %d, %d, %d, %d, %d )\n",
- a1, a2, a3, a4, a5, a6 );
+ MAYBE_PRINTF("mmap ( %p, %llu, %d, %d, %d, %d )\n",
+ a1, (ULong)a2, a3, a4, a5, a6 );
if (a4 & VKI_MAP_FIXED) {
@@ -4143,5 +4143,5 @@ PRE(mprotect)
/* int mprotect(const void *addr, size_t len, int prot); */
/* should addr .. addr+len-1 be checked before the call? */
- MAYBE_PRINTF("mprotect ( %p, %d, %d )\n", arg1,arg2,arg3);
+ MAYBE_PRINTF("mprotect ( %p, %llu, %d )\n", arg1,(ULong)arg2,arg3);
if (!valid_client_addr(arg1, arg2, tid, "mprotect"))
@@ -4152,5 +4152,5 @@ POST(mprotect)
{
Addr a = arg1;
- UInt len = arg2;
+ SizeT len = arg2;
Int prot = arg3;
Bool rr = prot & VKI_PROT_READ;
@@ -4167,5 +4167,5 @@ PRE(munmap)
/* int munmap(void *start, size_t length); */
/* should start .. start+length-1 be checked before the call? */
- MAYBE_PRINTF("munmap ( %p, %d )\n", arg1,arg2);
+ MAYBE_PRINTF("munmap ( %p, %llu )\n", arg1,(ULong)arg2);
if (!valid_client_addr(arg1, arg2, tid, "munmap"))
@@ -4176,5 +4176,5 @@ POST(munmap)
{
Addr a = arg1;
- UInt len = arg2;
+ SizeT len = arg2;
mash_addr_and_len(&a, &len);
@@ -4186,5 +4186,5 @@ PRE(mincore)
{
/* int mincore(void *start, size_t length, unsigned char *vec); */
- MAYBE_PRINTF("mincore ( %p, %d, %p )\n", arg1,arg2,arg3);
+ MAYBE_PRINTF("mincore ( %p, %llu, %p )\n", arg1,(ULong)arg2,arg3);
SYSCALL_TRACK(pre_mem_write, tid, "mincore(vec)",
arg3, (arg2 + 4096 - 1) / 4096);
@@ -4263,5 +4263,5 @@ PRE(read)
{
/* size_t read(int fd, void *buf, size_t count); */
- MAYBE_PRINTF("read ( %d, %p, %d )\n", arg1, arg2, arg3);
+ MAYBE_PRINTF("read ( %d, %p, %llu )\n", arg1, arg2, (ULong)arg3);
if (!fd_allowed(arg1, "read", tid, False))
@@ -4279,5 +4279,5 @@ PRE(write)
{
/* size_t write(int fd, const void *buf, size_t count); */
- MAYBE_PRINTF("write ( %d, %p, %d )\n", arg1, arg2, arg3);
+ MAYBE_PRINTF("write ( %d, %p, %llu )\n", arg1, arg2, (ULong)arg3);
if (!fd_allowed(arg1, "write", tid, False))
set_result( -VKI_EBADF );
@@ -4412,5 +4412,5 @@ PRE(readlink)
{
/* int readlink(const char *path, char *buf, size_t bufsiz); */
- MAYBE_PRINTF("readlink ( %p, %p, %d )\n", arg1,arg2,arg3);
+ MAYBE_PRINTF("readlink ( %p, %p, %llu )\n", arg1,arg2,(ULong)arg3);
SYSCALL_TRACK( pre_mem_read_asciiz, tid, "readlink(path)", arg1 );
SYSCALL_TRACK( pre_mem_write, tid, "readlink(buf)", arg2,arg3 );
@@ -4427,5 +4427,5 @@ PRE(readv)
Int i;
struct vki_iovec * vec;
- MAYBE_PRINTF("readv ( %d, %p, %d )\n",arg1,arg2,arg3);
+ MAYBE_PRINTF("readv ( %d, %p, %llu )\n",arg1,arg2,(ULong)arg3);
if (!fd_allowed(arg1, "readv", tid, False)) {
set_result( -VKI_EBADF );
@@ -4587,5 +4587,5 @@ PRE(setgroups)
{
/* int setgroups(size_t size, const gid_t *list); */
- MAYBE_PRINTF("setgroups ( %d, %p )\n", arg1, arg2);
+ MAYBE_PRINTF("setgroups ( %llu, %p )\n", (ULong)arg1, arg2);
if (arg1 > 0)
SYSCALL_TRACK( pre_mem_read, tid, "setgroups(list)", arg2,
@@ -5075,5 +5075,5 @@ PRE(statfs64)
{
/* int statfs64(const char *path, size_t sz, struct statfs64 *buf); */
- MAYBE_PRINTF("statfs64 ( %p, %p )\n",arg1,arg2);
+ MAYBE_PRINTF("statfs64 ( %p, %llu, %p )\n",arg1,(ULong)arg2,arg3);
SYSCALL_TRACK( pre_mem_read_asciiz, tid, "statfs64(path)", arg1 );
SYSCALL_TRACK( pre_mem_write, tid, "statfs64(buf)", arg3, arg2 );
@@ -5255,5 +5255,5 @@ PRE(writev)
Int i;
struct vki_iovec * vec;
- MAYBE_PRINTF("writev ( %d, %p, %d )\n",arg1,arg2,arg3);
+ MAYBE_PRINTF("writev ( %d, %p, %llu )\n",arg1,arg2,(ULong)arg3);
if (!fd_allowed(arg1, "writev", tid, False)) {
set_result( -VKI_EBADF );
@@ -5521,5 +5521,5 @@ POSTALIAS(rt_sigpending, sigpending);
PRE(io_setup)
{
- UInt size;
+ SizeT size;
Addr addr;
@@ -5555,5 +5555,5 @@ PRE(io_destroy)
Segment *s = VG_(find_segment)(arg1);
struct vki_aio_ring *r = *(struct vki_aio_ring **)arg1;
- UInt size = PGROUNDUP(sizeof(struct vki_aio_ring) + r->nr * sizeof(struct vki_io_event));
+ SizeT size = PGROUNDUP(sizeof(struct vki_aio_ring) + r->nr * sizeof(struct vki_io_event));
/* long io_destroy (aio_context_t ctx); */
@@ -5691,6 +5691,6 @@ PRE(mq_timedsend)
/* int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
unsigned msg_prio, const struct timespec *abs_timeout); */
- MAYBE_PRINTF("mq_timedsend ( %d, %p, %d, %d, %p )\n",
- arg1,arg2,arg3,arg4,arg5);
+ MAYBE_PRINTF("mq_timedsend ( %d, %p, %llu, %d, %p )\n",
+ arg1,arg2,(ULong)arg3,arg4,arg5);
if (!fd_allowed(arg1, "mq_timedsend", tid, False)) {
set_result( -VKI_EBADF );
@@ -5708,6 +5708,6 @@ PRE(mq_timedreceive)
size_t msg_len, unsigned *restrict msg_prio,
const struct timespec *restrict abs_timeout); */
- MAYBE_PRINTF("mq_timedreceive( %d, %p, %d, %p, %p )\n",
- arg1,arg2,arg3,arg4,arg5);
+ MAYBE_PRINTF("mq_timedreceive( %d, %p, %llu, %p, %p )\n",
+ arg1,arg2,(ULong)arg3,arg4,arg5);
if (!fd_allowed(arg1, "mq_timedreceive", tid, False)) {
set_result( -VKI_EBADF );
--- valgrind/helgrind/hg_main.c #1.87:1.88
@@ -143,5 +143,5 @@ typedef
struct _HG_Chunk* next;
Addr data; /* ptr to actual block */
- Int size; /* size requested */
+ SizeT size; /* size requested */
ExeContext* where; /* where it was allocated */
ThreadId tid; /* allocating thread */
@@ -2404,5 +2404,5 @@ static void describe_addr ( Addr a, Addr
seg = VG_(next_seginfo)(seg)) {
Addr base = VG_(seg_start)(seg);
- UInt size = VG_(seg_size)(seg);
+ SizeT size = VG_(seg_size)(seg);
const UChar *filename = VG_(seg_filename)(seg);
--- valgrind/include/tool.h.base #1.11:1.12
@@ -389,5 +389,5 @@
/* Like qsort(), but does shell-sort. The size==1/2/4 cases are specialised. */
-extern void VG_(ssort)( void* base, UInt nmemb, UInt size,
+extern void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
Int (*compar)(void*, void*) );
@@ -461,5 +461,5 @@
extern Int VG_(dup2) ( Int oldfd, Int newfd );
-extern Char* VG_(getcwd) ( Char* buf, Int size );
+extern Char* VG_(getcwd) ( Char* buf, SizeT size );
/* Easier to use than VG_(getcwd)() -- does the buffer fiddling itself.
@@ -500,7 +500,7 @@
extern void *VG_(shadow_alloc)(UInt size);
-extern Bool VG_(is_addressable)(Addr p, Int sz);
+extern Bool VG_(is_addressable)(Addr p, SizeT sz);
-extern Addr VG_(client_alloc)(Addr base, UInt len, UInt prot, UInt flags);
+extern Addr VG_(client_alloc)(Addr base, SizeT len, UInt prot, UInt flags);
extern void VG_(client_free)(Addr addr);
@@ -1558,7 +1558,7 @@
extern const SegInfo* VG_(next_seginfo) ( const SegInfo *seg );
extern Addr VG_(seg_start) ( const SegInfo *seg );
-extern UInt VG_(seg_size) ( const SegInfo *seg );
+extern SizeT VG_(seg_size) ( const SegInfo *seg );
extern const UChar* VG_(seg_filename) ( const SegInfo *seg );
-extern UInt VG_(seg_sym_offset)( const SegInfo *seg );
+extern ULong VG_(seg_sym_offset)( const SegInfo *seg );
typedef
--- valgrind/memcheck/mac_needs.c #1.29:1.30
@@ -877,5 +877,5 @@ Bool MAC_(handle_common_client_requests)
case VG_USERREQ__MALLOCLIKE_BLOCK: {
Addr p = (Addr)arg[1];
- UInt sizeB = arg[2];
+ SizeT sizeB = arg[2];
UInt rzB = arg[3];
Bool is_zeroed = (Bool)arg[4];
--- valgrind/memcheck/mac_shared.h #1.25:1.26
@@ -61,6 +61,6 @@ typedef
struct { // Used by:
AddrKind akind; // ALL
- Int blksize; // Freed, Mallocd
- Int rwoffset; // Freed, Mallocd
+ SizeT blksize; // Freed, Mallocd
+ SSizeT rwoffset; // Freed, Mallocd
ExeContext* lastchange; // Freed, Mallocd
ThreadId stack_tid; // Stack
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-03 17:08:06
|
CVS commit by nethercote:
64-bit cleanness: More UInt-->SizeT changes.
M +6 -6 core.h 1.49
M +2 -2 vg_main.c 1.227
M +4 -4 vg_memory.c 1.75
M +2 -2 vg_procselfmaps.c 1.15
M +2 -2 vg_symtab2.c 1.94
--- valgrind/coregrind/core.h #1.48:1.49
@@ -1172,5 +1172,5 @@ extern void VG_(read_procselfmaps) ( voi
extern
void VG_(parse_procselfmaps) (
- void (*record_mapping)( Addr addr, UInt len, Char rr, Char ww, Char xx,
+ void (*record_mapping)( Addr addr, SizeT len, Char rr, Char ww, Char xx,
UInt dev, UInt ino, ULong foff,
const UChar *filename ) );
@@ -1187,5 +1187,5 @@ extern void VG_(mini_stack_dump) ( Addr
extern SegInfo * VG_(read_seg_symbols) ( Segment *seg );
extern void VG_(symtab_incref) ( SegInfo * );
-extern void VG_(symtab_decref) ( SegInfo *, Addr a, UInt len );
+extern void VG_(symtab_decref) ( SegInfo *, Addr a );
extern Bool VG_(get_fnname_nodemangle)( Addr a, Char* fnname, Int n_fnname );
@@ -1297,5 +1297,5 @@ struct _Segment {
Addr addr; /* mapped addr (page aligned) */
- UInt len; /* size of mapping (page aligned) */
+ SizeT len; /* size of mapping (page aligned) */
/* These are valid if (flags & SF_FILE) */
@@ -1327,8 +1327,8 @@ extern Segment *VG_(first_segment)(void)
extern Segment *VG_(next_segment)(Segment *);
-extern Bool VG_(seg_contains)(const Segment *s, Addr ptr, UInt size);
-extern Bool VG_(seg_overlaps)(const Segment *s, Addr ptr, UInt size);
+extern Bool VG_(seg_contains)(const Segment *s, Addr ptr, SizeT size);
+extern Bool VG_(seg_overlaps)(const Segment *s, Addr ptr, SizeT size);
-extern void VG_(pad_address_space)(void);
+extern void VG_(pad_address_space) (void);
extern void VG_(unpad_address_space)(void);
--- valgrind/coregrind/vg_main.c #1.226:1.227
@@ -2341,5 +2341,5 @@ Int VG_(helper_offset)(Addr a)
static void build_valgrind_map_callback
- ( Addr start, UInt size, Char rr, Char ww, Char xx,
+ ( Addr start, SizeT size, Char rr, Char ww, Char xx,
UInt dev, UInt ino, ULong foffset, const UChar* filename )
{
@@ -2365,5 +2365,5 @@ Addr sp_at_startup___global_arg = 0;
static void build_segment_map_callback
- ( Addr start, UInt size, Char rr, Char ww, Char xx,
+ ( Addr start, SizeT size, Char rr, Char ww, Char xx,
UInt dev, UInt ino, ULong foffset, const UChar* filename )
{
--- valgrind/coregrind/vg_memory.c #1.74:1.75
@@ -67,5 +67,5 @@ static SkipList sk_segments = SKIPLIST_I
/*--------------------------------------------------------------*/
-Bool VG_(seg_contains)(const Segment *s, Addr p, UInt len)
+Bool VG_(seg_contains)(const Segment *s, Addr p, SizeT len)
{
Addr se = s->addr+s->len;
@@ -77,5 +77,5 @@ Bool VG_(seg_contains)(const Segment *s,
}
-Bool VG_(seg_overlaps)(const Segment *s, Addr p, UInt len)
+Bool VG_(seg_overlaps)(const Segment *s, Addr p, SizeT len)
{
Addr se = s->addr+s->len;
@@ -106,5 +106,5 @@ static void freeseg(Segment *s)
recycleseg(s);
if (s->symtab != NULL) {
- VG_(symtab_decref)(s->symtab, s->addr, s->len);
+ VG_(symtab_decref)(s->symtab, s->addr);
s->symtab = NULL;
}
@@ -345,5 +345,5 @@ void VG_(map_file_segment)(Addr addr, Si
s->ino != ino ||
s->offset != off)) {
- VG_(symtab_decref)(s->symtab, s->addr, s->len);
+ VG_(symtab_decref)(s->symtab, s->addr);
s->symtab = NULL;
}
--- valgrind/coregrind/vg_procselfmaps.c #1.14:1.15
@@ -131,5 +131,5 @@ void VG_(read_procselfmaps)(void)
So the sig of the called fn might be
- void (*record_mapping)( Addr start, UInt size,
+ void (*record_mapping)( Addr start, SizeT size,
Char r, Char w, Char x,
ULong foffset, UChar* filename )
@@ -142,5 +142,5 @@ void VG_(read_procselfmaps)(void)
*/
void VG_(parse_procselfmaps) (
- void (*record_mapping)( Addr addr, UInt len, Char rr, Char ww, Char xx,
+ void (*record_mapping)( Addr addr, SizeT len, Char rr, Char ww, Char xx,
UInt dev, UInt ino, ULong foff, const UChar* filename )
)
--- valgrind/coregrind/vg_symtab2.c #1.93:1.94
@@ -1322,5 +1322,5 @@ Bool vg_read_lib_symbols ( SegInfo* si )
if (seg->symtab != NULL)
- VG_(symtab_decref)(seg->symtab, seg->addr, seg->len);
+ VG_(symtab_decref)(seg->symtab, seg->addr);
VG_(symtab_incref)(si);
@@ -1636,5 +1636,5 @@ static void unload_symbols ( Addr start,
}
-void VG_(symtab_decref)(SegInfo *si, Addr start, UInt len)
+void VG_(symtab_decref)(SegInfo *si, Addr start)
{
vg_assert(si->ref >= 1);
|
|
From: <js...@ac...> - 2004-11-03 03:55:51
|
Nightly build on phoenix ( SuSE 9.1 ) started at 2004-11-03 03:50:00 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: (cpu_test failed, skipping) insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 177 tests, 2 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_fcntl (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <to...@co...> - 2004-11-03 03:26:26
|
Nightly build on dunsmere ( Fedora Core 2 ) started at 2004-11-03 03:20:03 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 8 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-03 03:20:28
|
Nightly build on audi ( Red Hat 9 ) started at 2004-11-03 03:15:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 8 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-03 03:13:50
|
Nightly build on ginetta ( Red Hat 8.0 ) started at 2004-11-03 03:10:03 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow cpuid: valgrind ./cpuid dastest: valgrind ./dastest fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 0 stderr failures, 0 stdout failures ================= |
|
From: Tom H. <th...@cy...> - 2004-11-03 03:08:36
|
Nightly build on alvis ( Red Hat 7.3 ) started at 2004-11-03 03:05:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 1 stderr failure, 0 stdout failures ================= memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-03 03:04:35
|
Nightly build on standard ( Red Hat 7.2 ) started at 2004-11-03 03:00:06 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 182 tests, 1 stderr failure, 0 stdout failures ================= memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |
|
From: Nicholas N. <nj...@ca...> - 2004-11-02 13:29:56
|
CVS commit by nethercote:
64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.
M +9 -9 coregrind/core.h 1.48
M +9 -9 coregrind/vg_memory.c 1.74
M +13 -13 coregrind/vg_mylibc.c 1.98
M +1 -1 include/basic_types.h 1.3
M +1 -1 include/tool.h.base 1.11
M +3 -3 massif/ms_main.c 1.18
--- valgrind/coregrind/core.h #1.47:1.48
@@ -1013,8 +1013,8 @@ extern Int VG_(poll)( struct vki_pollfd
/* system/mman.h */
-extern void* VG_(mmap)( void* start, UInt length, UInt prot, UInt flags,
+extern void* VG_(mmap)( void* start, SizeT length, UInt prot, UInt flags,
UInt sf_flags, UInt fd, UInt offset );
-extern Int VG_(munmap)( void* start, Int length );
-extern Int VG_(mprotect)( void *start, Int length, UInt prot );
+extern Int VG_(munmap)( void* start, SizeT length );
+extern Int VG_(mprotect)( void *start, SizeT length, UInt prot );
@@ -1309,17 +1309,17 @@ struct _Segment {
/* segment mapped from a file descriptor */
-extern void VG_(map_fd_segment) (Addr addr, UInt len, UInt prot, UInt flags,
+extern void VG_(map_fd_segment) (Addr addr, SizeT len, UInt prot, UInt flags,
Int fd, ULong off, const Char *filename);
/* segment mapped from a file */
-extern void VG_(map_file_segment)(Addr addr, UInt len, UInt prot, UInt flags,
+extern void VG_(map_file_segment)(Addr addr, SizeT len, UInt prot, UInt flags,
UInt dev, UInt ino, ULong off, const Char *filename);
/* simple segment */
-extern void VG_(map_segment) (Addr addr, UInt len, UInt prot, UInt flags);
+extern void VG_(map_segment) (Addr addr, SizeT len, UInt prot, UInt flags);
-extern void VG_(unmap_range) (Addr addr, UInt len);
-extern void VG_(mprotect_range)(Addr addr, UInt len, UInt prot);
-extern Addr VG_(find_map_space)(Addr base, UInt len, Bool for_client);
+extern void VG_(unmap_range) (Addr addr, SizeT len);
+extern void VG_(mprotect_range)(Addr addr, SizeT len, UInt prot);
+extern Addr VG_(find_map_space)(Addr base, SizeT len, Bool for_client);
extern Segment *VG_(find_segment)(Addr a);
--- valgrind/coregrind/vg_memory.c #1.73:1.74
@@ -155,5 +155,5 @@ Segment *VG_(split_segment)(Addr a)
/* This unmaps all the segments in the range [addr, addr+len); any
partial mappings at the ends are truncated. */
-void VG_(unmap_range)(Addr addr, UInt len)
+void VG_(unmap_range)(Addr addr, SizeT len)
{
Segment *s;
@@ -282,5 +282,5 @@ static inline Bool neighbours(Segment *s
/* If possible, merge segment with its neighbours - some segments,
including s, may be destroyed in the process */
-static void merge_segments(Addr a, UInt len)
+static void merge_segments(Addr a, SizeT len)
{
Segment *s;
@@ -315,5 +315,5 @@ static void merge_segments(Addr a, UInt
}
-void VG_(map_file_segment)(Addr addr, UInt len, UInt prot, UInt flags,
+void VG_(map_file_segment)(Addr addr, SizeT len, UInt prot, UInt flags,
UInt dev, UInt ino, ULong off, const Char *filename)
{
@@ -323,6 +323,6 @@ void VG_(map_file_segment)(Addr addr, UI
if (debug)
- VG_(printf)("map_file_segment(%p, %d, %x, %x, %4x, %d, %ld, %s)\n",
- addr, len, prot, flags, dev, ino, off, filename);
+ VG_(printf)("map_file_segment(%p, %llu, %x, %x, %4x, %d, %ld, %s)\n",
+ addr, (ULong)len, prot, flags, dev, ino, off, filename);
/* Everything must be page-aligned */
@@ -422,5 +422,5 @@ void VG_(map_file_segment)(Addr addr, UI
}
-void VG_(map_fd_segment)(Addr addr, UInt len, UInt prot, UInt flags,
+void VG_(map_fd_segment)(Addr addr, SizeT len, UInt prot, UInt flags,
Int fd, ULong off, const Char *filename)
{
@@ -450,5 +450,5 @@ void VG_(map_fd_segment)(Addr addr, UInt
}
-void VG_(map_segment)(Addr addr, UInt len, UInt prot, UInt flags)
+void VG_(map_segment)(Addr addr, SizeT len, UInt prot, UInt flags)
{
flags &= ~SF_FILE;
@@ -458,5 +458,5 @@ void VG_(map_segment)(Addr addr, UInt le
/* set new protection flags on an address range */
-void VG_(mprotect_range)(Addr a, UInt len, UInt prot)
+void VG_(mprotect_range)(Addr a, SizeT len, UInt prot)
{
Segment *s, *next;
@@ -487,5 +487,5 @@ void VG_(mprotect_range)(Addr a, UInt le
}
-Addr VG_(find_map_space)(Addr addr, UInt len, Bool for_client)
+Addr VG_(find_map_space)(Addr addr, SizeT len, Bool for_client)
{
static const Bool debug = False || mem_debug;
--- valgrind/coregrind/vg_mylibc.c #1.97:1.98
@@ -274,5 +274,5 @@ static Int munmap_inner(void *start, UIn
}
-static Addr mmap_inner(void *start, UInt length, UInt prot, UInt flags, UInt fd, UInt offset)
+static Addr mmap_inner(void *start, SizeT length, UInt prot, UInt flags, UInt fd, UInt offset)
{
Int ret;
@@ -285,5 +285,5 @@ static Addr mmap_inner(void *start, UInt
/* Returns -1 on failure. */
-void* VG_(mmap)( void* start, UInt length,
+void* VG_(mmap)( void* start, SizeT length,
UInt prot, UInt flags, UInt sf_flags, UInt fd, UInt offset)
{
@@ -322,5 +322,5 @@ void* VG_(mmap)( void* start, UInt lengt
/* Returns -1 on failure. */
-Int VG_(munmap)( void* start, Int length )
+Int VG_(munmap)( void* start, SizeT length )
{
Int res = munmap_inner(start, length);
@@ -330,7 +330,7 @@ Int VG_(munmap)( void* start, Int length
}
-Int VG_(mprotect)( void *start, Int length, UInt prot )
+Int VG_(mprotect)( void *start, SizeT length, UInt prot )
{
- Int res = VG_(do_syscall)(__NR_mprotect, (UInt)start, (UInt)length, prot );
+ Int res = VG_(do_syscall)(__NR_mprotect, (UWord)start, length, prot );
if (!VG_(is_kerror)(res))
VG_(mprotect_range)((Addr)start, length, prot);
@@ -1683,7 +1683,7 @@ UInt VG_(read_millisecond_timer) ( void
------------------------------------------------------------------ */
-void* VG_(get_memory_from_mmap) ( Int nBytes, Char* who )
+void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who )
{
- static UInt tot_alloc = 0;
+ static SizeT tot_alloc = 0;
void* p;
p = VG_(mmap)(0, nBytes,
@@ -1696,14 +1696,14 @@ void* VG_(get_memory_from_mmap) ( Int nB
if (0)
VG_(printf)(
- "get_memory_from_mmap: %d tot, %d req = %p .. %p, caller %s\n",
- tot_alloc, nBytes, p, ((char*)p) + nBytes - 1, who );
+ "get_memory_from_mmap: %llu tot, %llu req = %p .. %p, caller %s\n",
+ (ULong)tot_alloc, (ULong)nBytes, p, ((char*)p) + nBytes - 1, who );
return p;
}
VG_(printf)("\n");
- VG_(printf)("VG_(get_memory_from_mmap): %s's request for %d bytes failed.\n",
- who, nBytes);
- VG_(printf)("VG_(get_memory_from_mmap): %d bytes already allocated.\n",
- tot_alloc);
+ VG_(printf)("VG_(get_memory_from_mmap): %s's request for %llu bytes failed.\n",
+ who, (ULong)nBytes);
+ VG_(printf)("VG_(get_memory_from_mmap): %llu bytes already allocated.\n",
+ (ULong)tot_alloc);
VG_(printf)("\n");
VG_(printf)("Sorry. You could try using a tool that uses less memory;\n");
--- valgrind/include/tool.h.base #1.10:1.11
@@ -486,5 +486,5 @@
/* ------------------------------------------------------------------ */
/* Get memory by anonymous mmap. */
-extern void* VG_(get_memory_from_mmap) ( Int nBytes, Char* who );
+extern void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who );
extern Bool VG_(is_client_addr) (Addr a);
--- valgrind/massif/ms_main.c #1.17:1.18
@@ -245,5 +245,5 @@ static Char buf2[BUF_LEN];
static Char buf3[BUF_LEN];
-static UInt sigstacks_space = 0; // Current signal stacks space sum
+static SizeT sigstacks_space = 0; // Current signal stacks space sum
static VgHashTable malloc_list = NULL; // HP_Chunks
@@ -1114,10 +1114,10 @@ static void hp_census(void)
/*------------------------------------------------------------*/
-static void new_mem_stack_signal(Addr a, UInt len)
+static void new_mem_stack_signal(Addr a, SizeT len)
{
sigstacks_space += len;
}
-static void die_mem_stack_signal(Addr a, UInt len)
+static void die_mem_stack_signal(Addr a, SizeT len)
{
sk_assert(sigstacks_space >= len);
|