|
From: Christoph B. <bar...@or...> - 2006-09-14 09:10:31
|
I've started the program with -v and see that both processes write to the same valgrind log file. I have process 3775 and 3776. Here is a part of the logfile vg.log.3775 with mixed messages where i play with instrumentation: --00:00:10:34.518 3775-- Reading syms from /dfs/data/bartosch/work/bonnfastopt-O.dll (0x31114000) ==00:00:10:34.519 3775== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --00:00:11:03.798 3775-- Code check found runtime_resolve: ld-2.3.4.so +0xA660=0x365860A660, length 110 --00:00:11:03.993 3776-- Code check found runtime_resolve: ld-2.3.4.so +0xA660=0x365860A660, length 110 --00:00:11:04.044 3776-- Command: instrumentation switched ON --00:00:11:04.047 3776-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275EB (???) --00:00:11:04.611 3775-- Command: instrumentation switched ON --00:00:11:04.698 3775-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275EB (???) --00:00:11:08.997 3890-- Symbol match: found runtime_resolve: ld-2.3.4.so +0x365860A660=0x365860A660 --00:00:11:19.333 3775-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380275F5 (???) --00:00:11:36.143 3775-- Command: instrumentation switched OFF --00:00:11:40.114 3775-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275EB (???) --00:00:11:40.652 3775-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380275F5 (???) --00:00:11:44.967 3775-- Command: instrumentation switched ON --00:00:11:48.041 3775-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380275F5 (???) --00:00:11:48.586 3775-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275EB (???) --00:00:14:22.513 3775-- Command: instrumentation switched OFF --00:00:14:24.158 3775-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x380275F5 (???) --00:00:14:24.226 3775-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x380275EB (???) We see that both process 3776 and 3775 start instrumenting after the first callgrind_control -i on 3775. Then after the callgrind_control -i off 3775 only process 3775 switches off. The following on and off commands are also only executed by process 3775. If one executes callgrind_control -s 3775 long enough one sees two subsequent calls that are answered by the different processes: -bash-3.00$ callgrind_control -s 3775 PID 3775: testprogram [requesting 'Status'...] Number of threads: 1 Events collected: Ir Dr Dw I1mr D1mr D1mw I2mr D2mr D2mw Functions: 2,674 (executed 1,589,518, contexts 2,674) Basic blocks: 5,822 (executed 28,850,193, call sites 3,594) -bash-3.00$ callgrind_control -s 3775 PID 3775: testprogram [requesting 'Status'...] No information available as instrumentation is switched off. Or when both have active instrumentation: PID 3775: testprogram [requesting 'Status'...] Number of threads: 1 Events collected: Ir Dr Dw I1mr D1mr D1mw I2mr D2mr D2mw Functions: 2,697 (executed 1,610,896, contexts 2,697) Basic blocks: 5,905 (executed 29,037,620, call sites 3,635) -bash-3.00$ callgrind_control -s 3775 PID 3775: testprogram [requesting 'Status'...] Number of threads: 0 Events collected: Ir Dr Dw I1mr D1mr D1mw I2mr D2mr D2mw Functions: 7,509 (executed 61,323,898, contexts 7,509) Basic blocks: 45,721 (executed 404,289,730, call sites 29,331) Greetings Christoph Bartoschek |