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
(2) |
2
(4) |
3
(1) |
4
(7) |
5
|
|
6
|
7
(4) |
8
|
9
(3) |
10
(6) |
11
(13) |
12
(6) |
|
13
(1) |
14
|
15
(1) |
16
|
17
(4) |
18
(3) |
19
(5) |
|
20
(5) |
21
(5) |
22
(5) |
23
(6) |
24
|
25
(1) |
26
(1) |
|
27
(1) |
28
(4) |
29
(5) |
30
|
|
|
|
|
From: <sv...@va...> - 2016-11-18 21:54:18
|
Author: philippe
Date: Fri Nov 18 21:54:09 2016
New Revision: 16138
Log:
Add typedef Alloc_Fn_t/Free_Fn_t in pub_tool_basics.h, use them everywhere
Modified:
trunk/coregrind/m_deduppoolalloc.c
trunk/coregrind/m_oset.c
trunk/coregrind/m_poolalloc.c
trunk/coregrind/m_rangemap.c
trunk/coregrind/m_xarray.c
trunk/coregrind/m_xtree.c
trunk/include/pub_tool_basics.h
trunk/include/pub_tool_deduppoolalloc.h
trunk/include/pub_tool_oset.h
trunk/include/pub_tool_poolalloc.h
trunk/include/pub_tool_rangemap.h
trunk/include/pub_tool_xarray.h
trunk/include/pub_tool_xtree.h
Modified: trunk/coregrind/m_deduppoolalloc.c
==============================================================================
--- trunk/coregrind/m_deduppoolalloc.c (original)
+++ trunk/coregrind/m_deduppoolalloc.c Fri Nov 18 21:54:09 2016
@@ -43,9 +43,9 @@
SizeT fixedSzb; /* If using VG_(allocFixedEltDedupPA), size of elements */
Bool strPA; /* True if this is a string dedup pool */
SizeT eltAlign;
- void* (*alloc_fn)(const HChar*, SizeT); /* pool allocator */
+ Alloc_Fn_t alloc_fn; /* pool allocator */
const HChar* cc; /* pool allocator's cost centre */
- void (*free_fn)(void*); /* pool allocator's deallocation function */
+ Free_Fn_t free_fn; /* pool allocator's deallocation function */
/* XArray of void* (pointers to pools). The pools themselves.
Each element is a pointer to a block of size at least PoolSzB bytes.
The last block might be smaller due to a call to shrink_block. */
@@ -84,9 +84,9 @@
DedupPoolAlloc* VG_(newDedupPA) ( SizeT poolSzB,
SizeT eltAlign,
- void* (*alloc_fn)(const HChar*, SizeT),
+ Alloc_Fn_t alloc_fn,
const HChar* cc,
- void (*free_fn)(void*) )
+ Free_Fn_t free_fn )
{
DedupPoolAlloc* ddpa;
vg_assert(poolSzB >= eltAlign);
Modified: trunk/coregrind/m_oset.c
==============================================================================
--- trunk/coregrind/m_oset.c (original)
+++ trunk/coregrind/m_oset.c Fri Nov 18 21:54:09 2016
@@ -112,9 +112,9 @@
struct _OSet {
SizeT keyOff; // key offset
OSetCmp_t cmp; // compare a key and an element, or NULL
- OSetAlloc_t alloc_fn; // allocator
+ Alloc_Fn_t alloc_fn; // allocator
const HChar* cc; // cost centre for allocator
- OSetFree_t free_fn; // deallocator
+ Free_Fn_t free_fn; // deallocator
PoolAlloc* node_pa; // (optional) pool allocator for nodes.
SizeT maxEltSize; // for node_pa, must be > 0. Otherwise unused.
UInt nElems; // number of elements in the tree
@@ -286,8 +286,8 @@
// The underscores avoid GCC complaints about overshadowing global names.
AvlTree* VG_(OSetGen_Create)(PtrdiffT keyOff, OSetCmp_t cmp,
- OSetAlloc_t alloc_fn, const HChar* cc,
- OSetFree_t free_fn)
+ Alloc_Fn_t alloc_fn, const HChar* cc,
+ Free_Fn_t free_fn)
{
AvlTree* t;
@@ -315,8 +315,8 @@
}
AvlTree* VG_(OSetGen_Create_With_Pool)(PtrdiffT keyOff, OSetCmp_t cmp,
- OSetAlloc_t alloc_fn, const HChar* cc,
- OSetFree_t free_fn,
+ Alloc_Fn_t alloc_fn, const HChar* cc,
+ Free_Fn_t free_fn,
SizeT poolSize,
SizeT maxEltSize)
{
@@ -361,8 +361,8 @@
return t;
}
-AvlTree* VG_(OSetWord_Create)(OSetAlloc_t alloc_fn, const HChar* cc,
- OSetFree_t free_fn)
+AvlTree* VG_(OSetWord_Create)(Alloc_Fn_t alloc_fn, const HChar* cc,
+ Free_Fn_t free_fn)
{
return VG_(OSetGen_Create)(/*keyOff*/0, /*cmp*/NULL, alloc_fn, cc, free_fn);
}
Modified: trunk/coregrind/m_poolalloc.c
==============================================================================
--- trunk/coregrind/m_poolalloc.c (original)
+++ trunk/coregrind/m_poolalloc.c Fri Nov 18 21:54:09 2016
@@ -36,9 +36,9 @@
UWord nrRef; /* nr reference to this pool allocator */
UWord elemSzB; /* element size */
UWord nPerPool; /* # elems per pool */
- void* (*alloc_fn)(const HChar*, SizeT); /* pool allocator */
- const HChar* cc; /* pool allocator's cost centre */
- void (*free_fn)(void*); /* pool allocator's free-er */
+ Alloc_Fn_t alloc_fn; /* pool allocator */
+ const HChar* cc; /* pool allocator's cost centre */
+ Free_Fn_t free_fn; /* pool allocator's free-er */
/* XArray of void* (pointers to pools). The pools themselves.
Each element is a pointer to a block of size (elemSzB *
nPerPool) bytes. */
@@ -50,9 +50,9 @@
PoolAlloc* VG_(newPA) ( UWord elemSzB,
UWord nPerPool,
- void* (*alloc_fn)(const HChar*, SizeT),
+ Alloc_Fn_t alloc_fn,
const HChar* cc,
- void (*free_fn)(void*) )
+ Free_Fn_t free_fn )
{
PoolAlloc* pa;
vg_assert(0 == (elemSzB % sizeof(UWord)));
Modified: trunk/coregrind/m_rangemap.c
==============================================================================
--- trunk/coregrind/m_rangemap.c (original)
+++ trunk/coregrind/m_rangemap.c Fri Nov 18 21:54:09 2016
@@ -48,9 +48,9 @@
struct _RangeMap {
- void* (*alloc_fn) ( const HChar*, SizeT ); /* alloc fn (nofail) */
+ Alloc_Fn_t alloc_fn; /* alloc fn (nofail) */
const HChar* cc; /* cost centre for alloc */
- void (*free_fn) ( void* ); /* free fn */
+ Free_Fn_t free_fn; /* free fn */
XArray* ranges;
};
@@ -62,9 +62,9 @@
static void show ( const RangeMap* rm );
-RangeMap* VG_(newRangeMap) ( void*(*alloc_fn)(const HChar*,SizeT),
+RangeMap* VG_(newRangeMap) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn)(void*),
+ Free_Fn_t free_fn,
UWord initialVal )
{
/* check user-supplied info .. */
Modified: trunk/coregrind/m_xarray.c
==============================================================================
--- trunk/coregrind/m_xarray.c (original)
+++ trunk/coregrind/m_xarray.c Fri Nov 18 21:54:09 2016
@@ -38,9 +38,9 @@
/* See pub_tool_xarray.h for details of what this is all about. */
struct _XArray {
- void* (*alloc_fn) ( const HChar*, SizeT ); /* alloc fn (nofail) */
+ Alloc_Fn_t alloc_fn; /* alloc fn (nofail) */
const HChar* cc; /* cost centre for alloc */
- void (*free_fn) ( void* ); /* free fn */
+ Free_Fn_t free_fn; /* free fn */
Int (*cmpFn) ( const void*, const void* ); /* cmp fn (may be NULL) */
Word elemSzB; /* element size in bytes */
void* arr; /* pointer to elements */
@@ -50,9 +50,9 @@
};
-XArray* VG_(newXA) ( void*(*alloc_fn)(const HChar*,SizeT),
+XArray* VG_(newXA) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn)(void*),
+ Free_Fn_t free_fn,
Word elemSzB )
{
XArray* xa;
Modified: trunk/coregrind/m_xtree.c
==============================================================================
--- trunk/coregrind/m_xtree.c (original)
+++ trunk/coregrind/m_xtree.c Fri Nov 18 21:54:09 2016
@@ -73,9 +73,9 @@
struct _XT_shared {
UWord nrRef; /* nr of XTrees referencing this shared memory. */
- void* (*alloc_fn)( const HChar*, SizeT ); /* alloc fn (nofail) */
+ Alloc_Fn_t alloc_fn; /* alloc fn (nofail) */
const HChar* cc; /* cost centre for alloc */
- void (*free_fn)( void* ); /* free fn */
+ Free_Fn_t free_fn; /* free fn */
/* The data associated to each ec is stored in 2 arrays:
an xec array, shared between an xt and all its snapshots.
@@ -102,7 +102,7 @@
(with the index ecu/4). */
#define NO_OFFSET 0xffffffff
-static XT_shared* new_XT_shared (void* (*alloc_fn)(const HChar*, SizeT),
+static XT_shared* new_XT_shared (Alloc_Fn_t alloc_fn,
const HChar* cc,
void (*free_fn)(void*))
{
@@ -208,9 +208,9 @@
struct _XTree {
- void* (*alloc_fn)( const HChar*, SizeT ); /* alloc fn (nofail) */
+ Alloc_Fn_t alloc_fn; /* alloc fn (nofail) */
const HChar* cc; /* cost centre for alloc */
- void (*free_fn)( void* ); /* free fn */
+ Free_Fn_t free_fn; /* free fn */
Word dataSzB; /* data size in bytes */
XT_init_data_t init_data_fn;
XT_add_data_t add_data_fn;
@@ -224,9 +224,9 @@
};
-XTree* VG_(XT_create) ( void*(*alloc_fn)(const HChar*, SizeT),
+XTree* VG_(XT_create) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn) (void*),
+ Free_Fn_t free_fn,
Word dataSzB,
XT_init_data_t init_data_fn,
XT_add_data_t add_data_fn,
Modified: trunk/include/pub_tool_basics.h
==============================================================================
--- trunk/include/pub_tool_basics.h (original)
+++ trunk/include/pub_tool_basics.h Fri Nov 18 21:54:09 2016
@@ -129,6 +129,17 @@
/* ThreadIds are simply indices into the VG_(threads)[] array. */
typedef UInt ThreadId;
+/* Many data structures need to allocate and release memory.
+ The allocation/release functions must be provided by the caller.
+ The Alloc_Fn_t function must allocate a chunk of memory of size szB.
+ cc is the Cost Centre for this allocated memory. This constant string
+ is used to provide Valgrind's heap profiling, activated by
+ --profile-heap=no|yes.
+ The corresponding Free_Fn_t frees the memory chunk p. */
+
+typedef void* (*Alloc_Fn_t) ( const HChar* cc, SizeT szB );
+typedef void (*Free_Fn_t) ( void* p );
+
/* An abstraction of syscall return values.
Linux/MIPS32 and Linux/MIPS64:
When _isError == False,
Modified: trunk/include/pub_tool_deduppoolalloc.h
==============================================================================
--- trunk/include/pub_tool_deduppoolalloc.h (original)
+++ trunk/include/pub_tool_deduppoolalloc.h Fri Nov 18 21:54:09 2016
@@ -93,9 +93,9 @@
This function never returns NULL. */
extern DedupPoolAlloc* VG_(newDedupPA) ( SizeT poolSzB,
SizeT eltAlign,
- void* (*alloc)(const HChar*, SizeT),
+ Alloc_Fn_t alloc_fn,
const HChar* cc,
- void (*free_fn)(void*) );
+ Free_Fn_t free_fn );
/* Allocates or retrieve element from ddpa with eltSzB bytes to store elt.
This function never returns NULL.
Modified: trunk/include/pub_tool_oset.h
==============================================================================
--- trunk/include/pub_tool_oset.h (original)
+++ trunk/include/pub_tool_oset.h Fri Nov 18 21:54:09 2016
@@ -77,13 +77,8 @@
typedef struct _OSet OSet;
-// - Cmp: returns -1, 0 or 1 if key is <, == or > elem.
-// - Alloc: allocates a chunk of memory.
-// - Free: frees a chunk of memory allocated with Alloc.
-
+// - OSetCmp_t: returns -1, 0 or 1 if key is <, == or > elem.
typedef Word (*OSetCmp_t) ( const void* key, const void* elem );
-typedef void* (*OSetAlloc_t) ( const HChar* cc, SizeT szB );
-typedef void (*OSetFree_t) ( void* p );
/*--------------------------------------------------------------------*/
/*--- Creating and destroying OSets (UWord) ---*/
@@ -103,8 +98,8 @@
// to allow the destruction of any attached resources; if NULL it is not
// called.
-extern OSet* VG_(OSetWord_Create) ( OSetAlloc_t alloc_fn, const HChar* cc,
- OSetFree_t free_fn );
+extern OSet* VG_(OSetWord_Create) ( Alloc_Fn_t alloc_fn, const HChar* cc,
+ Free_Fn_t free_fn );
extern void VG_(OSetWord_Destroy) ( OSet* os );
/*--------------------------------------------------------------------*/
@@ -204,14 +199,14 @@
// lead to assertions in Valgrind's allocator.
extern OSet* VG_(OSetGen_Create) ( PtrdiffT keyOff, OSetCmp_t cmp,
- OSetAlloc_t alloc_fn, const HChar* cc,
- OSetFree_t free_fn);
+ Alloc_Fn_t alloc_fn, const HChar* cc,
+ Free_Fn_t free_fn);
extern OSet* VG_(OSetGen_Create_With_Pool) ( PtrdiffT keyOff, OSetCmp_t cmp,
- OSetAlloc_t alloc_fn,
+ Alloc_Fn_t alloc_fn,
const HChar* cc,
- OSetFree_t free_fn,
+ Free_Fn_t free_fn,
SizeT poolSize,
SizeT maxEltSize);
// Same as VG_(OSetGen_Create) but created OSet will use a pool allocator to
Modified: trunk/include/pub_tool_poolalloc.h
==============================================================================
--- trunk/include/pub_tool_poolalloc.h (original)
+++ trunk/include/pub_tool_poolalloc.h Fri Nov 18 21:54:09 2016
@@ -56,9 +56,9 @@
This function never returns NULL. */
extern PoolAlloc* VG_(newPA) ( UWord elemSzB,
UWord nPerPool,
- void* (*alloc)(const HChar*, SizeT),
+ Alloc_Fn_t alloc_fn,
const HChar* cc,
- void (*free_fn)(void*) );
+ Free_Fn_t free_fn );
/* Free all memory associated with a PoolAlloc. */
Modified: trunk/include/pub_tool_rangemap.h
==============================================================================
--- trunk/include/pub_tool_rangemap.h (original)
+++ trunk/include/pub_tool_rangemap.h Fri Nov 18 21:54:09 2016
@@ -47,9 +47,9 @@
succeeded.) The new array will contain a single range covering the
entire key space, which will be bound to the value |initialVal|.
This function never returns NULL. */
-RangeMap* VG_(newRangeMap) ( void*(*alloc_fn)(const HChar*,SizeT),
+RangeMap* VG_(newRangeMap) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn)(void*),
+ Free_Fn_t free_fn,
UWord initialVal );
/* Free all memory associated with a RangeMap. */
Modified: trunk/include/pub_tool_xarray.h
==============================================================================
--- trunk/include/pub_tool_xarray.h (original)
+++ trunk/include/pub_tool_xarray.h Fri Nov 18 21:54:09 2016
@@ -54,9 +54,9 @@
for elements of the specified size. alloc_fn must not return NULL (that
is, if it returns it must have succeeded.)
This function never returns NULL. */
-extern XArray* VG_(newXA) ( void*(*alloc_fn)(const HChar*,SizeT),
+extern XArray* VG_(newXA) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn)(void*),
+ Free_Fn_t free_fn,
Word elemSzB );
/* Free all memory associated with an XArray. */
Modified: trunk/include/pub_tool_xtree.h
==============================================================================
--- trunk/include/pub_tool_xtree.h (original)
+++ trunk/include/pub_tool_xtree.h Fri Nov 18 21:54:09 2016
@@ -96,9 +96,9 @@
alloc_fn must not return NULL (that is, if it returns it must have
succeeded.).
See respective typedef for *_fn arguments. */
-extern XTree* VG_(XT_create) ( void*(*alloc_fn)(const HChar*, SizeT),
+extern XTree* VG_(XT_create) ( Alloc_Fn_t alloc_fn,
const HChar* cc,
- void(*free_fn) (void*),
+ Free_Fn_t free_fn,
Word dataSzB,
XT_init_data_t init_data_fn,
XT_add_data_t add_data_fn,
|
|
From: Rich C. <rc...@wi...> - 2016-11-18 04:45:09
|
On Thu, 17 Nov 2016 22:29:43 -0600 Rich Coe <rc...@wi...> wrote: > I'm encountering this error: > vex x86->IR: unhandled instruction bytes: 0xCB 0x55 0x8B 0xEC > 0xCB is an intel x86 far return. > > Could valgrind be treating malloc memory as a non-code? (case 1 of the error) > This code is malloc'ing memory and executing code from it. Nevermind. I found the issue explained here: http://valgrind.10908.n7.nabble.com/How-can-ignore-lib-containing-Unrecognized-instruction-Illegal-opcode-td42321.html Thanks. -- Rich Coe rc...@wi... |
|
From: Rich C. <rc...@wi...> - 2016-11-18 04:29:50
|
I'm encountering this error: vex x86->IR: unhandled instruction bytes: 0xCB 0x55 0x8B 0xEC 0xCB is an intel x86 far return. Could valgrind be treating malloc memory as a non-code? (case 1 of the error) This code is malloc'ing memory and executing code from it. Thanks, Rich -- Rich Coe rc...@wi... |