<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">-valgrind-dev, it bounced for me</div><div class="gmail_quote">+timurrrr</div><div class="gmail_quote">+zhaoqin</div><div class="gmail_quote">+eugenis</div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Tue, Feb 25, 2014 at 7:50 AM, John Criswell <span dir="ltr"><<a href="mailto:criswell@illinois.edu" target="_blank">criswell@illinois.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 2/24/14 12:51 PM, Denis Steckelmacher wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi,<br>
<br>
I've seen on the LLVM's Open Projet Page [1] an idea about using LLVM to generate native code in Valgrind. For what I know, Valgrind uses libVEX to translate native instructions into a bitcode, used to add the instrumentation and then translated back to native code for execution.<br>


</blockquote>
<br></div>
I think a more interesting idea would be to use LLVM to perform instrumentation and then to use Valgrind to instrument third-party libraries linked into the program.<br></blockquote><div><br></div><div>We did this with DynamoRIO, ASan, and MSan, and published the results:</div>
<div><a href="http://research.google.com/pubs/pub41440.html">http://research.google.com/pubs/pub41440.html</a></div><div><br></div><div>It's a cool idea, but we haven't been able to productionize it enough to test Chromium yet.  The code for the msan side is actually in compiler-rt:</div>
<div><a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msandr/msandr.cc?view=markup">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msandr/msandr.cc?view=markup</a></div><div><br></div><div>Ultimately it may be easier (on Linux) to build new instrumented packages for every library that you care about testing with.</div>
</div></div></div>