-
Notifications
You must be signed in to change notification settings - Fork 33
DSN 2017 Tutorial Activity
http://blogs.ubc.ca/karthik/files/2017/06/LLFI-part1.pdf http://blogs.ubc.ca/karthik/files/2017/06/LLFI-part2.pdf
For Windows, install Putty. For Mac and Linux, no installation is necessary.
Use Putty to connect to the LLFI Server.
Launch Putty and enter the host name, 45.79.106.97. The port number should remain at 22.
Login with the username "llfi".
For Mac and Linux, ssh to the LLFI server.
ssh llfi@45.79.106.97
You will be assigned a folder on the server for this tutorial. Please navigate to that folder and only make changes within that folder.
-
Navigate to the Hardware folder.
-
Compilation from C file to IR.
clang -S -emit-llvm binarytree.c -o binarytree.ll
-
Instrumentation
instrument --readable binarytree.ll -lm
-
Profiling
profile llfi/binarytree-profiling.exe 6
-
Fault Injection
injectfault llfi/binarytree-faultinjection.exe 6
-
Navigate to the Software folder.
-
Compilation from C file to IR.
clang -S -emit-llvm binarytree.c -o binarytree.ll
-
Instrumentation
instrument --readable binarytree.ll -lm
-
Profiling
profile llfi/binarytree-profiling.exe 6
-
Fault Injection
injectfault llfi/binarytree-faultinjection.exe 6
-
Trace Propagation
You will not be able to run zgrviewer on the server, as it requires a GUI interface.
tracediff llfi/baseline/llfi.stat.trace.prof.txt llfi/llfi_stat_output/llfi.stat.trace.0-5.txt > diffReport.txt
(Modify the 5 to the desired trace number.)
traceontograph diffReport.txt llfi.stat.graph.dot > tracedGraph.dot
zgrviewer tracedGraph.dot
- Count how many files contain the text of "128,4,-128 32,6,-32" in the current directory.
grep -r "128,4,-128 32,6,-32" ./ | wc -l
- Count how many files are there in the directory.
find . -type f | wc -l
Dependable Systems Lab - University of British Columbia (UBC)