|
From: Shujunjun <shu...@hu...> - 2015-03-30 03:30:16
|
Hi, Sorry for my first time send email to valgrind, if wrong, can you transmit this email to right people ? Thanks a lot. I have a problem when developing a valgrind tool(function_trace) for my business code. I want to trace a special function used in the guest program. For example, a function defined like this: msg_type * alloc_msg(char type, int num) When the guest program call this special function "alloc_msg", my valgrind tool can know the input args:"type" and "num", and when "alloc_msg" return, my valgrind tool can know the return value. Is there any way to implement it ? Or, which Valgrind tools(such as memcheck, callgrind) implement such functions ? I can learn from them. Or, do valgrind had interfaces to get such information? ps, I develop my valgrind tool base on "valgrind-3.10.1" download form "http://valgrind.org/" . Thank you for your help. shu...@hu...<mailto:shu...@hu...> Best Regards. |