[llvm-dev] Dynamic Fault Injection with LLVM

Andres Torres Garcia via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 9 21:06:58 PST 2015

I want to use LLVM to make a dynamic fault injection. My primary goal is to modify the value of a particular register in a particular instruction  and do, for example, bit flipping on that register.
I've studying some tutorials and codes about LLVM but I'm still not sure how to begin with. I know that I need to program a LLVM pass that iterates over blocks and check which instruction modify to later check which operand in that instruction modify. Is that the correct?
I've seen some examples but all of them seem very complicated (a lot of code) to understand for a beginner like me. I wonder if there is an easier example to understand or if you can provide me with one to start with.
Thank you very much for your help!
Examples that I haven't understood:https://github.com/aperson40/FlipIt/blob/master/src/pass/faults.cpphttps://github.com/uswick/sight/blob/bd07a3c8592cf073366c76961479f25be1f8d83d/widgets/kulfi/faultInj/faults.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151210/5396525f/attachment.html>

More information about the llvm-dev mailing list