|
From: Cees W. <ce...@pc...> - 2006-01-25 13:38:28
|
>> But is there any way of definining something like?:
>>
>> {
>> <insert a suppression name here>
>> Memcheck:Leak
>> fun:_Znwj
>> ?? 1 or more of any functions
>> fun:RootOfAllEvil
>> }
>
>
> Currently no, sorry.
Thanks Nick, that save for looking any further.
As a workaround I discovered the XML output of valgrind.
That let me do funky filter things like:
<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:strip-space elements="*" />
<xsl:output method="xml" indent="yes"/>
<!-- match any occurence of RootOfAllEvil -->
<xsl:template match="error[.//fn='RootOfAllEvil']">
<!-- and filter out this kind for RootOfAllEvil -->
<xsl:choose>
<xsl:when test=".//kind[1]='Leak_StillReachable'"/>
<xsl:when test=".//kind[1]='Leak_IndirectlyLost'"/>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="error">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates select="error"/>
</xsl:template>
</xsl:transform>
--
Cees Wesseling
PCRaster Environmental Software
|