Skip to content

Instantly share code, notes, and snippets.

View deanberris's full-sized avatar

Dean Michael Berris deanberris

View GitHub Profile
.section __TEXT,__text,regular,pure_instructions
.globl _callee
.p2align 4, 0x90
_callee: ## @callee
.cfi_startproc
## BB#0:
.p2align 1, 0x90
Lxray_sled_0:
.ascii "\353\t"
nopw 512(%rax,%rax)
@deanberris
deanberris / sample.sh
Created December 14, 2017 03:36
Building an XRay instrumented clang binary
set -x
# Step 1: Build a clang using the system compiler that can build with XRay instrumentation.
mkdir llvm-build
cd llvm-build
cmake -GNinja \
-DLLVM_ENABLE_PROJECTS="clang:compiler-rt" \
-DCMAKE_BUILD_TYPE=Release ../llvm-project/llvm
ninja clang # Probably get a beverage and/or watch some videos

Keybase proof

I hereby claim:

  • I am deanberris on github.
  • I am deanberris (https://keybase.io/deanberris) on keybase.
  • I have a public key ASAW8eOglcfmUwWL0JJPWyoGe1FOKcizaN-ymZGltEcO8Ao

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am deanberris on github.
  • I am deanberris (https://keybase.io/deanberris) on keybase.
  • I have a public key ASApb4DM6eaITms9gQZGD-RZ0o-LGkvW-u0dpPgYXYBvngo

To claim this, I am signing this object: