Test::Valgrind::Suppressions - Generate suppressions for given tool and command.
Version 1.19
This module is an helper for generating suppressions.
generate
Test::Valgrind::Suppressions->generate( tool => $tool, command => $command, target => $target, );
Generates suppressions for the command $command->new_trainer and the tool $tool->new_trainer, and writes them in the file specified by $target. The action used behind the scenes is Test::Valgrind::Action::Suppressions.
$command->new_trainer
$tool->new_trainer
$target
Returns the status code.
maybe_generalize
my $mangled_suppression = Test::Valgrind::Suppressions->maybe_generalize( $session, $suppression, );
Removes all wildcard frames at the end of the suppression. It also replaces sequences of wildcard frames by '...' when valgrind 3.4.0 or higher is used. Returns the mangled suppression.
'...'
valgrind
3.4.0
maybe_z_demangle
my $demangled_symbol = Test::Valgrind::Suppressions->maybe_z_demangle( $symbol, );
If $symbol is Z-encoded as described in valgrind's include/pub_tool_redir.h, extract and decode its function name part. Otherwise, $symbol is returned as is.
$symbol
This routine follows valgrind's coregrind/m_demangle/demangle.c:maybe_Z_demangle.
Test::Valgrind, Test::Valgrind::Command, Test::Valgrind::Tool, Test::Valgrind::Action::Suppressions.
Vincent Pit, <perl at profvince.com>, http://www.profvince.com.
<perl at profvince.com>
You can contact me by mail or on irc.perl.org (vincent).
irc.perl.org
Please report any bugs or feature requests to bug-test-valgrind-suppressions at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-test-valgrind-suppressions at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Suppressions
Copyright 2008,2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Valgrind, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Valgrind
CPAN shell
perl -MCPAN -e shell install Test::Valgrind
For more information on module installation, please visit the detailed CPAN module installation guide.