|
From: Jelte W. <Jel...@cr...> - 2006-02-16 14:37:55
|
Not sure if valgrind can do that, but you could write a pretty simple shellscript which greps through the output of valgrind as it runs and matches the PID against the processes in /proc/[pid], then echo cmdline in that directory. Assuming you're running linux. And assuming valgrind can't do it already ... Jelte -----Oorspronkelijk bericht----- Van: Declan Conlon [mailto:dc...@ze...]=20 Verzonden: donderdag 16 februari 2006 15:29 Aan: val...@li... Onderwerp: [Valgrind-users] Getting the Process name Hello, Hopefully this will be a quick one. Is there any way of getting valgrind/memcheck to output the process name for each error; in addition or instead of the pid? The pid isn't much use to me since the processes have gone by the time I process the output, so I can't work back from the pid:-( If this isn't currently possible it would be a very useful additional feature. Declan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! = http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642 _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |