rpms/valgrind/devel valgrind-3.2.3-cachegrind-improvements.patch, NONE, 1.1 valgrind-3.2.3-openat.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 sources, 1.11, 1.12 valgrind.spec, 1.46, 1.47 valgrind-3.2.0-makefile.patch, 1.1, NONE valgrind-3.2.1-cachegrind-improvements.patch, 1.1, NONE valgrind-3.2.1-cfa-set-loc.patch, 1.2, NONE valgrind-3.2.1-glibc25.patch, 1.1, NONE valgrind-3.2.1-intel-cache-sizes.patch, 1.1, NONE valgrind-3.2.1-openat.patch, 1.1, NONE valgrind-3.2.1-pkg-config.patch, 1.1, NONE valgrind-3.2.1-ppc-pagesize.patch, 1.1, NONE

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Feb 13 12:24:27 UTC 2007


Author: jakub

Update of /cvs/dist/rpms/valgrind/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv6298

Modified Files:
	.cvsignore sources valgrind.spec 
Added Files:
	valgrind-3.2.3-cachegrind-improvements.patch 
	valgrind-3.2.3-openat.patch 
Removed Files:
	valgrind-3.2.0-makefile.patch 
	valgrind-3.2.1-cachegrind-improvements.patch 
	valgrind-3.2.1-cfa-set-loc.patch valgrind-3.2.1-glibc25.patch 
	valgrind-3.2.1-intel-cache-sizes.patch 
	valgrind-3.2.1-openat.patch valgrind-3.2.1-pkg-config.patch 
	valgrind-3.2.1-ppc-pagesize.patch 
Log Message:
3.2.3-1

valgrind-3.2.3-cachegrind-improvements.patch:
 cg_sim.c |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

--- NEW FILE valgrind-3.2.3-cachegrind-improvements.patch ---
--- valgrind-3.2.3/cg_sim.c.jj	2007-01-08 02:43:10.000000000 -0500
+++ valgrind-3.2.3/cg_sim.c	2007-02-13 07:15:46.000000000 -0500
@@ -42,29 +42,32 @@ typedef struct {
    Int          size;                   /* bytes */
    Int          assoc;
    Int          line_size;              /* bytes */
-   Int          sets;
    Int          sets_min_1;
    Int          assoc_bits;
    Int          line_size_bits;
    Int          tag_shift;
-   Char         desc_line[128];
    UWord*       tags;
-} cache_t2;
+   Char         desc_line[128];
+} cache_t2
+#ifdef __GNUC__
+__attribute__ ((aligned (8 * sizeof (Int))))
+#endif
+;
 
 /* By this point, the size/assoc/line_size has been checked. */
 static void cachesim_initcache(cache_t config, cache_t2* c)
 {
-   Int i;
+   Int sets;
 
    c->size      = config.size;
    c->assoc     = config.assoc;
    c->line_size = config.line_size;
 
-   c->sets           = (c->size / c->line_size) / c->assoc;
-   c->sets_min_1     = c->sets - 1;
+   sets              = (c->size / c->line_size) / c->assoc;
+   c->sets_min_1     = sets - 1;
    c->assoc_bits     = VG_(log2)(c->assoc);
    c->line_size_bits = VG_(log2)(c->line_size);
-   c->tag_shift      = c->line_size_bits + VG_(log2)(c->sets);
+   c->tag_shift      = c->line_size_bits + VG_(log2)(sets);
 
    if (c->assoc == 1) {
       VG_(sprintf)(c->desc_line, "%d B, %d B, direct-mapped", 
@@ -74,10 +77,7 @@ static void cachesim_initcache(cache_t c
                                  c->size, c->line_size, c->assoc);
    }
 
-   c->tags = VG_(malloc)(sizeof(UWord) * c->sets * c->assoc);
-
-   for (i = 0; i < c->sets * c->assoc; i++)
-      c->tags[i] = 0;
+   c->tags = VG_(calloc)(sizeof(UWord) * sets, c->assoc);
 }
 
 /* This is done as a macro rather than by passing in the cache_t2 as an 
@@ -140,8 +140,7 @@ void cachesim_##L##_doref(Addr a, UChar 
       return;                                                               \
                                                                             \
    /* Second case: word straddles two lines. */                             \
-   /* Nb: this is a fast way of doing ((set1+1) % L.sets) */                \
-   } else if (((set1 + 1) & (L.sets-1)) == set2) {                          \
+   } else if (((set1 + 1) & (L.sets_min_1)) == set2) {                      \
       set = &(L.tags[set1 << L.assoc_bits]);                                \
       if (tag == set[0]) {                                                  \
          goto block2;                                                       \

valgrind-3.2.3-openat.patch:
 coregrind/m_syswrap/syswrap-linux.c |   11 ++++++++---
 include/vki-linux.h                 |    2 ++
 2 files changed, 10 insertions(+), 3 deletions(-)

--- NEW FILE valgrind-3.2.3-openat.patch ---
Testcase:
#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>

int
main (void)
{
  int dfd = open ("/tmp", O_RDONLY);
  int fd1 = openat (dfd, "abc", O_RDONLY);
  int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY);
  int fd3 = openat (AT_FDCWD, "abc", O_RDONLY);
  /* This is the only one that should warn.  */
  int fd4 = openat (0x12345678, "abc", O_RDONLY);
  return 0;
}

--- valgrind-3.2.3/include/vki-linux.h.jj	2006-08-28 15:38:37.000000000 +0200
+++ valgrind-3.2.3/include/vki-linux.h	2006-09-26 18:29:00.000000000 +0200
@@ -1223,6 +1223,8 @@ struct vki_dirent {
 
 #define VKI_F_NOTIFY	(VKI_F_LINUX_SPECIFIC_BASE+2)
 
+#define VKI_AT_FDCWD	-100
+
 //----------------------------------------------------------------------
 // From linux-2.6.8.1/include/linux/sysctl.h
 //----------------------------------------------------------------------
--- valgrind-3.2.3/coregrind/m_syswrap/syswrap-linux.c.jj	2006-08-28 15:38:57.000000000 +0200
+++ valgrind-3.2.3/coregrind/m_syswrap/syswrap-linux.c	2006-09-26 18:42:04.000000000 +0200
@@ -2350,10 +2350,15 @@ PRE(sys_openat)
                     int, dfd, const char *, filename, int, flags);
    }
 
-   if (!ML_(fd_allowed)(ARG1, "openat", tid, False))
+   PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
+
+   /* For absolute filenames, dfd is ignored.  If dfd is AT_FDCWD,
+      filename is relative to cwd.  */   
+   if (ML_(safe_to_deref)( (void*)ARG2, 1 )
+       && *(Char *)ARG2 != '/'
+       && ARG1 != VKI_AT_FDCWD
+       && !ML_(fd_allowed)(ARG1, "openat", tid, False))
       SET_STATUS_Failure( VKI_EBADF );
-   else
-      PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
 
    /* Handle the case where the open is of /proc/self/cmdline or
       /proc/<pid>/cmdline, and just give it a copy of the fd for the


Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/valgrind/devel/.cvsignore,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- .cvsignore	19 Sep 2006 11:48:24 -0000	1.11
+++ .cvsignore	13 Feb 2007 12:24:25 -0000	1.12
@@ -1 +1 @@
-valgrind-3.2.1.tar.bz2
+valgrind-3.2.3.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/dist/rpms/valgrind/devel/sources,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- sources	19 Sep 2006 11:48:24 -0000	1.11
+++ sources	13 Feb 2007 12:24:25 -0000	1.12
@@ -1 +1 @@
-9407d33961186814cef0e6ecedfd6318  valgrind-3.2.1.tar.bz2
+978847992b136c8d8cb5c6559a91df1c  valgrind-3.2.3.tar.bz2


Index: valgrind.spec
===================================================================
RCS file: /cvs/dist/rpms/valgrind/devel/valgrind.spec,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- valgrind.spec	8 Nov 2006 17:53:58 -0000	1.46
+++ valgrind.spec	13 Feb 2007 12:24:25 -0000	1.47
@@ -1,17 +1,11 @@
 Summary: Tool for finding memory management bugs in programs
 Name: valgrind
-Version: 3.2.1
-Release: 7
+Version: 3.2.3
+Release: 1
 Epoch: 1
 Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
-Patch1: valgrind-3.2.0-makefile.patch
-Patch2: valgrind-3.2.1-openat.patch
-Patch3: valgrind-3.2.1-cfa-set-loc.patch
-Patch4: valgrind-3.2.1-glibc25.patch
-Patch5: valgrind-3.2.1-ppc-pagesize.patch
-Patch6: valgrind-3.2.1-intel-cache-sizes.patch
-Patch7: valgrind-3.2.1-pkg-config.patch
-Patch8: valgrind-3.2.1-cachegrind-improvements.patch
+Patch1: valgrind-3.2.3-openat.patch
+Patch2: valgrind-3.2.3-cachegrind-improvements.patch
 License: GPL
 URL: http://www.valgrind.org/
 Group: Development/Debuggers
@@ -42,12 +36,6 @@
 %setup -q
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
 
 %build
 %ifarch x86_64 ppc64
@@ -131,6 +119,9 @@
 %{_mandir}/man1/valgrind*
 
 %changelog
+* Tue Feb 13 2007 Jakub Jelinek <jakub at redhat.com> 3.2.3-1
+- update to 3.2.3
+
 * Wed Nov  8 2006 Jakub Jelinek <jakub at redhat.com> 3.2.1-7
 - some cachegrind improvements (Ulrich Drepper)
 


--- valgrind-3.2.0-makefile.patch DELETED ---


--- valgrind-3.2.1-cachegrind-improvements.patch DELETED ---


--- valgrind-3.2.1-cfa-set-loc.patch DELETED ---


--- valgrind-3.2.1-glibc25.patch DELETED ---


--- valgrind-3.2.1-intel-cache-sizes.patch DELETED ---


--- valgrind-3.2.1-openat.patch DELETED ---


--- valgrind-3.2.1-pkg-config.patch DELETED ---


--- valgrind-3.2.1-ppc-pagesize.patch DELETED ---




More information about the fedora-cvs-commits mailing list