|
From: Ralf B. <ral...@ch...> - 2005-07-20 12:40:49
|
Hi,
I do not have an bugzilla@kde account and won't create one ;) Maybe
someone can file it if its useful for you.
When calling valgrind --tool=massif and specifying a logfile location
like --logfile=/home/user/massif.log, the massif.<pid>.ps and
massif.<pid>.txt get created at the place, where valgrind ist started.
It would be better to store those data also in the directory specified
by the user.
Background:
Currently, I have a script, which tests our product automatically in a
loop with different tools. One test is massif and the script code looks
like the following:
# get informations about this benchmark
foreach $benchmark ( @XMLfiles )
{
my $xmlbenchmark = XMLin(
$ENV{'ORINOCO_LIB_BASE_PATH'}."/regression/config/".$benchmark );
print "Executing valgrind with dale for testcase $benchmark\n";
my $dirname = $xmlbenchmark->{'base'};
my $executable = $xmlbenchmark->{'executable'};
my $arguments = $xmlbenchmark->{'arguments'};
# create temporary directory, copy benchmark, execute valgrind
tool, delete temporary benchmark
# write logfiles to cwd
system( "mkdir -p ".$ENV{'HOME'}."/work/regression/tmp/" );
system( "cp -r
".$ENV{'ORINOCO_LIB_BASE_PATH'}."/regression/benchmarks/".$dirname."
".$ENV{'HOME'}."/work/regression/tmp/".$$."valgrindcheck" );
chdir( $ENV{'HOME'}."/work/regression/tmp/".$$."valgrindcheck" );
system( "valgrind --logfile=${currentdir}/${benchmark}.log
--tool=$tool ".$tooloptions.
" $executable $arguments >> ${currentdir}/execution.log 2>&1" );
chdir( ".." );
system( "rm -rf
".$ENV{'HOME'}."/work/regression/tmp/".$$."valgrindcheck" );
chdir( $currentdir );
}
All the massif output (except log) get deleted, when deleting the
temporary working directory.
A current workaround for me is moving massif.* to $currentdir.
Anyway: thanks for your tools! They are very valuable for us, and they
are really useful, when doing automated tests every day ;)
Kind regards,
Ralf Beckers
--
Ralf Beckers
Lead Development Engineer
ChipVision Design Systems AG
Fritz-Bock-Strasse 5 - 26121 Oldenburg - Germany
phone +49-441-35042-360 fax +49-441-35042-350
email ral...@ch... www.chipvision.com
|