Advertisement
Guest User

Qemu/KVM

a guest
Feb 11th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. make -C /lib/modules/5.10.12-1-default/build M=/home/emilio/old_lttng/lttng-modules CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
  2. make[1]: Entering directory '/usr/src/linux-5.10.12-1-obj/x86_64/default'
  3. CC [M] /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.o
  4. In file included from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:37,
  5. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  6. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_read64’:
  7. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:185:3: error: implicit declaration of function ‘read_barrier_depends’ [-Werror=implicit-function-declaration]
  8. 185 | read_barrier_depends(); /* load ltc before content */
  9. | ^~~~~~~~~~~~~~~~~~~~
  10. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  11. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  12. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  13. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:598,
  14. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  15. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_inatomic’:
  16. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:293:24: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  17. 293 | mm_segment_t old_fs = get_fs();
  18. | ^~~~~~
  19. | sget_fc
  20. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:293:24: error: invalid initializer
  21. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303:2: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  22. 303 | set_fs(KERNEL_DS);
  23. | ^~~~~~
  24. | sget_fc
  25. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  26. 303 | set_fs(KERNEL_DS);
  27. | ^~~~~~~~~
  28. | KERNFS_NS
  29. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303:9: note: each undeclared identifier is reported only once for each function it appears in
  30. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:305:48: error: macro "access_ok" passed 3 arguments, but takes just 2
  31. 305 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  32. | ^
  33. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  34. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  35. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  36. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  37. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  38. from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
  39. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
  40. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  41. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  42. 69 | #define access_ok(addr, size) \
  43. |
  44. In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
  45. from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
  46. from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
  47. from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
  48. from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
  49. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
  50. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:305:16: error: ‘access_ok’ undeclared (first use in this function)
  51. 305 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  52. | ^~~~~~~~~
  53. /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
  54. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  55. | ^
  56. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  57. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  58. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  59. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:598,
  60. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  61. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_strcpy_from_user_inatomic’:
  62. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:363:24: error: invalid initializer
  63. 363 | mm_segment_t old_fs = get_fs();
  64. | ^~~~~~
  65. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:373:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  66. 373 | set_fs(KERNEL_DS);
  67. | ^~~~~~~~~
  68. | KERNFS_NS
  69. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:375:48: error: macro "access_ok" passed 3 arguments, but takes just 2
  70. 375 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  71. | ^
  72. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  73. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  74. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  75. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  76. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  77. from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
  78. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
  79. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  80. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  81. 69 | #define access_ok(addr, size) \
  82. |
  83. In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
  84. from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
  85. from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
  86. from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
  87. from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
  88. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
  89. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:375:16: error: ‘access_ok’ undeclared (first use in this function)
  90. 375 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  91. | ^~~~~~~~~
  92. /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
  93. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  94. | ^
  95. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  96. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  97. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  98. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:598,
  99. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  100. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_check_nofault’:
  101. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:465:38: error: macro "access_ok" passed 3 arguments, but takes just 2
  102. 465 | if (!access_ok(VERIFY_READ, src, len))
  103. | ^
  104. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  105. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  106. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  107. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  108. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  109. from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
  110. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
  111. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  112. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  113. 69 | #define access_ok(addr, size) \
  114. |
  115. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  116. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  117. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  118. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:598,
  119. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  120. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:465:7: error: ‘access_ok’ undeclared (first use in this function)
  121. 465 | if (!access_ok(VERIFY_READ, src, len))
  122. | ^~~~~~~~~
  123. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:467:11: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
  124. 467 | old_fs = get_fs();
  125. | ^~~~~~
  126. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:468:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  127. 468 | set_fs(KERNEL_DS);
  128. | ^~~~~~~~~
  129. | KERNFS_NS
  130. cc1: some warnings being treated as errors
  131. make[4]: *** [/usr/src/linux-5.10.12-1/scripts/Makefile.build:280: /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.o] Error 1
  132. make[3]: *** [/usr/src/linux-5.10.12-1/scripts/Makefile.build:497: /home/emilio/old_lttng/lttng-modules/probes] Error 2
  133. make[2]: *** [/usr/src/linux-5.10.12-1/Makefile:1819: /home/emilio/old_lttng/lttng-modules] Error 2
  134. make[1]: *** [../../../linux-5.10.12-1/Makefile:185: __sub-make] Error 2
  135. make[1]: Leaving directory '/usr/src/linux-5.10.12-1-obj/x86_64/default'
  136. make: *** [Makefile:111: modules] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement