nareshkamboju

selftests: breakpoint compile failed

Mar 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. $ make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu-
  2. aarch64-linux-gnu-gcc breakpoint_test_arm64.c -o /home/naresh.kamboju/kernel/linux-kselftest/tools/testing/selftests/breakpoints/breakpoint_test_arm64
  3. breakpoint_test_arm64.c: In function 'set_watchpoint':
  4. breakpoint_test_arm64.c:91:28: error: storage size of 'dreg_state' isn't known
  5. struct user_hwdebug_state dreg_state;
  6. ^
  7. In file included from /home/naresh.kamboju/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/alloca.h:24:0,
  8. from /home/naresh.kamboju/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/stdlib.h:492,
  9. from ../kselftest.h:13,
  10. from breakpoint_test_arm64.c:37:
  11. breakpoint_test_arm64.c:98:32: error: invalid use of undefined type 'struct user_hwdebug_state'
  12. iov.iov_len = offsetof(struct user_hwdebug_state, dbg_regs) +
  13. ^
  14. breakpoint_test_arm64.c: In function 'run_test':
  15. breakpoint_test_arm64.c:171:25: error: 'TRAP_HWBKPT' undeclared (first use in this function)
  16. if (siginfo.si_code != TRAP_HWBKPT) {
  17. ^
  18. breakpoint_test_arm64.c:171:25: note: each undeclared identifier is reported only once for each function it appears in
  19. make: *** [/home/naresh.kamboju/kernel/linux-kselftest/tools/testing/selftests/breakpoints/breakpoint_test_arm64] Error 1
Add Comment
Please, Sign In to add comment