Skip to content

Instantly share code, notes, and snippets.

@aditya7fb
aditya7fb / test.cpp
Created June 3, 2020 23:20
running function entry instrumentation on quicksort example from G4G
/**
./bin/clang++ test.cpp test1.cpp -arch arm64 -mllvm -enable-func-entry-instrumentation -O2 -mllvm -func-entry-instrumentation-writemethod=1
Contents of section __la_symbol_ptr:
10000c000 247f0000 01000000 307f0000 01000000 $.......0.......
10000c010 3c7f0000 01000000 <.......
Contents of section __llvm_funcentry:
10000c020 dcdfe5c6 5cf4ac04 1d030000 00acacac ....\...........
10000c030 dcdb78b3 cc9999ee dd040000 00acacac ..x.............
10000c040 ac .