instruction_pointer.h 346 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_INSTRUCTION_POINTER_H
  3. #define _LINUX_INSTRUCTION_POINTER_H
  4. #include <asm/linkage.h>
  5. #define _RET_IP_ (unsigned long)__builtin_return_address(0)
  6. #ifndef _THIS_IP_
  7. #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
  8. #endif
  9. #endif /* _LINUX_INSTRUCTION_POINTER_H */