But similarly to the previous comment of Tom, your application 
code you would integrate and link in "valgrind tool code"
will need to ensure all "writes" are properly "recorded".

So, it looks the same kind of work to do it in your own
code, or do it inside valgrind.


So, if your often called function is relatively simple,
and you know which "write" operations it is doing,
you might just have a piece of code (in your application)
which  first tells what is being written by the function
(using the client request to make a piece of memory defined),
and then use the client request VALGRIND_NON_SIMD_CALLx
to call the code on the native cpu.
This can only (reasonably) be done if the function
is quite heavy in cpu, but does not do a (lot) of writes
which needs to be tracked.

Philippe
 

>-----Original Message-----
>From: Oliver Schneider [mailto:[email protected]] 
>Sent: Friday 7 January 2011 16:03
>To: [email protected]
>Subject: Re: [Valgrind-users] Run native code?
>
>Hi,
>
>thanks for your advice. I'll see whether I can manage to 
>implement that.
>Nice trick :)
>
>
>// Oliver
>
>

____
 
This message and any files transmitted with it are legally privileged and 
intended for the sole use of the individual(s) or entity to whom they are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 
copy.
 
Any views expressed in this message are those of the sender.

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to