Advertisement
Guest User

LTTng-modules addons kernel module with dynamic tracepoints

a guest
Feb 11th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.20 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 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:195:34: error: implicit declaration of function ‘ACCESS_ONCE’ [-Werror=implicit-function-declaration]
  8. 195 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
  9. | ^~~~~~~~~~~
  10. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:195:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  11. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:200:3: error: implicit declaration of function ‘read_barrier_depends’ [-Werror=implicit-function-declaration]
  12. 200 | read_barrier_depends(); /* load ltc before content */
  13. | ^~~~~~~~~~~~~~~~~~~~
  14. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_freq’:
  15. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:207:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  16. 207 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
  17. | ^~~~~~~~~~~
  18. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_uuid’:
  19. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:219:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  20. 219 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
  21. | ^~~~~~~~~~~
  22. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_name’:
  23. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:232:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  24. 232 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
  25. | ^~~~~~~~~~~
  26. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_description’:
  27. /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:244:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  28. 244 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
  29. | ^~~~~~~~~~~
  30. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend_internal.h:2,
  31. from /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:40,
  32. from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  33. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  34. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  35. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  36. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  37. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend_internal.h: In function ‘subbuffer_id_set_noref_offset’:
  38. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend_internal.h:174:20: error: lvalue required as left operand of assignment
  39. 174 | ACCESS_ONCE(*id) = tmp;
  40. | ^
  41. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  42. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  43. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  44. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  45. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  46. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_inatomic’:
  47. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:312:24: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  48. 312 | mm_segment_t old_fs = get_fs();
  49. | ^~~~~~
  50. | sget_fc
  51. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:312:24: error: invalid initializer
  52. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:2: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  53. 327 | set_fs(KERNEL_DS);
  54. | ^~~~~~
  55. | sget_fc
  56. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  57. 327 | set_fs(KERNEL_DS);
  58. | ^~~~~~~~~
  59. | KERNFS_NS
  60. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:9: note: each undeclared identifier is reported only once for each function it appears in
  61. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:329:48: error: macro "access_ok" passed 3 arguments, but takes just 2
  62. 329 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  63. | ^
  64. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  65. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  66. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  67. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  68. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  69. from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
  70. from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
  71. from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
  72. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
  73. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
  74. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  75. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  76. 69 | #define access_ok(addr, size) \
  77. |
  78. In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
  79. from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
  80. from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
  81. from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
  82. from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
  83. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
  84. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:329:16: error: ‘access_ok’ undeclared (first use in this function)
  85. 329 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  86. | ^~~~~~~~~
  87. /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
  88. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  89. | ^
  90. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  91. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  92. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  93. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  94. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  95. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_strcpy_from_user_inatomic’:
  96. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:388:24: error: invalid initializer
  97. 388 | mm_segment_t old_fs = get_fs();
  98. | ^~~~~~
  99. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:403:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  100. 403 | set_fs(KERNEL_DS);
  101. | ^~~~~~~~~
  102. | KERNFS_NS
  103. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:405:48: error: macro "access_ok" passed 3 arguments, but takes just 2
  104. 405 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  105. | ^
  106. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  107. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  108. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  109. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  110. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  111. from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
  112. from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
  113. from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
  114. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
  115. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
  116. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  117. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  118. 69 | #define access_ok(addr, size) \
  119. |
  120. In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
  121. from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
  122. from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
  123. from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
  124. from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
  125. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
  126. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:405:16: error: ‘access_ok’ undeclared (first use in this function)
  127. 405 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
  128. | ^~~~~~~~~
  129. /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
  130. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  131. | ^
  132. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  133. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  134. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  135. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  136. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  137. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_check_nofault’:
  138. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:495:38: error: macro "access_ok" passed 3 arguments, but takes just 2
  139. 495 | if (!access_ok(VERIFY_READ, src, len))
  140. | ^
  141. In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
  142. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
  143. from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
  144. from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
  145. from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
  146. from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
  147. from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
  148. from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
  149. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
  150. from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
  151. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
  152. /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
  153. 69 | #define access_ok(addr, size) \
  154. |
  155. In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
  156. from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
  157. from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  158. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  159. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  160. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:495:7: error: ‘access_ok’ undeclared (first use in this function)
  161. 495 | if (!access_ok(VERIFY_READ, src, len))
  162. | ^~~~~~~~~
  163. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:497:11: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
  164. 497 | old_fs = get_fs();
  165. | ^~~~~~
  166. /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:498:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  167. 498 | set_fs(KERNEL_DS);
  168. | ^~~~~~~~~
  169. | KERNFS_NS
  170. In file included from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
  171. from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
  172. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
  173. /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h: At top level:
  174. /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:142:6: error: conflicting types for ‘trace_sched_pi_setprio’
  175. 142 | void trace_##_name(_proto);
  176. | ^~~~~~
  177. /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:54:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
  178. 54 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
  179. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  180. /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:96:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
  181. 96 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
  182. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  183. /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:548:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’
  184. 548 | LTTNG_TRACEPOINT_EVENT(sched_pi_setprio,
  185. | ^~~~~~~~~~~~~~~~~~~~~~
  186. In file included from /usr/src/linux-5.10.12-1/include/trace/events/sched.h:9,
  187. from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:30:
  188. /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:238:21: note: previous definition of ‘trace_sched_pi_setprio’ was here
  189. 238 | static inline void trace_##name(proto) \
  190. | ^~~~~~
  191. /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:411:2: note: in expansion of macro ‘__DECLARE_TRACE’
  192. 411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
  193. | ^~~~~~~~~~~~~~~
  194. /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:547:2: note: in expansion of macro ‘DECLARE_TRACE’
  195. 547 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  196. | ^~~~~~~~~~~~~
  197. /usr/src/linux-5.10.12-1/include/trace/events/sched.h:443:1: note: in expansion of macro ‘TRACE_EVENT’
  198. 443 | TRACE_EVENT(sched_pi_setprio,
  199. | ^~~~~~~~~~~
  200. cc1: some warnings being treated as errors
  201. 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
  202. make[3]: *** [/usr/src/linux-5.10.12-1/scripts/Makefile.build:497: /home/emilio/old_lttng/lttng-modules/probes] Error 2
  203. make[2]: *** [/usr/src/linux-5.10.12-1/Makefile:1819: /home/emilio/old_lttng/lttng-modules] Error 2
  204. make[1]: *** [../../../linux-5.10.12-1/Makefile:185: __sub-make] Error 2
  205. make[1]: Leaving directory '/usr/src/linux-5.10.12-1-obj/x86_64/default'
  206. make: *** [Makefile:111: modules] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement