|
From: Chris J. <ch...@at...> - 2004-03-09 22:52:44
|
> Where function_entry/exit_hook are simply increment or decrement counters. > > I expect that this will give me the number of instrumented > functions inside the > stack, but sometimes I get more exits than entrances. > > Can anyone explain why this happens? Just a guess, but the Valgrind simulated CPU starts off with a non-empty call stack - maybe that can account for the mismatch. For example: __strtold_internal + 6480: RETURN dis_Grp2 + 180 dis_Grp2 + 180: CALL vfscanf + 6096 vfscanf + 6145: RETURN dis_Grp2 + 185 dis_Grp2 + 186: RETURN _dl_init + 707 ... _dl_init + 230: RETURN _dl_start_user + 54 Chris |