Hi,

I am trying to use the bbv tool in Valgrind to look at block level
similarity between threads.
I am testing this with Valgrind 3.6.0 SVN together with Apache 2.2.14 with
mpm_worker thread model.

Although I use %p to tag the output files, something seems unusual. I get pc
files which seem to have no corresponding bb files.

To make this more clear the output looks like:
apache_bb.out.11325
apache_bb.out.11325.2
apache_bb.out.11325.3
apache_bb.out.11325.4
apache_bb.out.11325.5
apache_bb.out.11325.6
[...]
apache_pc.out.11325
apache_pc.out.11328
apache_pc.out.11329
apache_pc.out.11330
apache_pc.out.11331
apache_pc.out.11495
apache_pc.out.11630
apache_pc.out.11631
apache_pc.out.11828
apache_pc.out.11832
apache_pc.out.11839
apache_pc.out.11845
apache_pc.out.12089
[...]

So apache_bb.out.11325.2 I would assume is the 2nd thread in 11325 pid. If
they share the same code segment (apache_pc.out.11325), then what are the
other pc files for?
Could the pc files be for each thread and %p prints the thread pid omitting
the parent pid (11325)

Here's a part of my bash script:

VALGRIND_TARGET="$APACHE/bin/httpd"
INTERVAL_SIZE=100000

VALGRIND_CMD="$VALGRIND --tool=exp-bbv
--bb-out-file=$RESULTS/%q{BENCH}_bb.out.%p
--pc-out-file=$RESULTS/%q{BENCH}_pc.out.%p --interval-size=$INTERVAL_SIZE
--time-stamp=yes --num-callers=30 --track-fds=yes --trace-children=no
$VALGRIND_TARGET"

Could someone offer a few pointers please?

Thank you,
V
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to