Skip to content

Instantly share code, notes, and snippets.

@wkz
Created November 19, 2015 21:08
Show Gist options
  • Select an option

  • Save wkz/078304ec66d6ebbda7eb to your computer and use it in GitHub Desktop.

Select an option

Save wkz/078304ec66d6ebbda7eb to your computer and use it in GitHub Desktop.
kprobe:test {
a = 1;
return 2 * (a - 1) + 7
}
--
mov r9, 0x1
mov r8, r9
sub r8, 0x1
mov r7, 0x2
mul r7, r8
mov r8, r7
add r8, 0x7
mov r0, r8
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment