Skip to content

Instantly share code, notes, and snippets.

@heatd
Created September 7, 2023 14:26
Show Gist options
  • Save heatd/eefdb4d59cedbda42e2e128a5284b6e8 to your computer and use it in GitHub Desktop.
Save heatd/eefdb4d59cedbda42e2e128a5284b6e8 to your computer and use it in GitHub Desktop.
false static_branch_likely:
0xffffffff81030bd7 <+7>: jmp 0xffffffff81030bfb <_Z11sys_getppidv+43>
0xffffffff81030bd9 <+9>: nopl (%rax)
0xffffffff81030bdc <+12>: call 0xffffffff812d38b0 <__asan_handle_no_return()>
0xffffffff81030be1 <+17>: mov $0xffffffff812f4c36,%rdi
0xffffffff81030be8 <+24>: xor %eax,%eax
0xffffffff81030bea <+26>: call 0xffffffff8102be50 <panic(char const*, ...)>
false static_branch_unlikely:
0xffffffff81030bd7 <+7>: nopl 0x0(%rax,%rax,1)
....
0xffffffff81030d01 <+305>: call 0xffffffff812d38b0 <__asan_handle_no_return()>
0xffffffff81030d06 <+310>: mov $0xffffffff812f4c36,%rdi
0xffffffff81030d0d <+317>: xor %eax,%eax
0xffffffff81030d0f <+319>: call 0xffffffff8102be50 <panic(char const*, ...)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment