<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<br class=""><br class="">I am currently building the LTTng 2.6.1 against the linux kernel 3.2.65.<br class="">When building lttng-modules, I get the below error:<br class=""><br class="">It seems the proper definition of "page->index" can not be found in the right header file.<br class="">I also patch the Makefile by following the link (<a href="https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html" class="">https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html</a>) which has similar problem, but it doesn’t work.<br class=""><br class="">Anybody can help me?<br class=""><br class="">Thanks~<div class=""><br class="">===<br class="">Log data follows:<br class="">| DEBUG: Executing shell function do_compile<br class="">| NOTE: make -j 2 -e MAKEFLAGS= KERNEL_SRC=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source KERNEL_PATH=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source KERNEL_VERSION=3.2.65 CC=x86_64-openswitch-linux-gcc  LD=x86_64-openswitch-linux-ld.bfd  AR=x86_64-openswitch-linux-ar  O=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-build-artifacts<br class="">| LTTNG_KERNELDIR=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source make -C /home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source M=/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git modules<br class="">| make[1]: Entering directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/Makefile:250: CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.<br class="">|   CC [M]  /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.o<br class="">| In file included from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:136:0,<br class="">|                  from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/ext3.h:902,<br class="">|                  from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.c:49:<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h: In function '__event_probe__ext3__page_op':<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:253:24: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(index, page->index)<br class="">|                         ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:253:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(index, page->index)<br class="">|    ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:254:22: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(ino, page->mapping->host->i_ino)<br class="">|                       ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:254:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(ino, page->mapping->host->i_ino)<br class="">|    ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:255:22: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(dev, page->mapping->host->i_sb->s_dev)<br class="">|                       ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:255:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(dev, page->mapping->host->i_sb->s_dev)<br class="">|    ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h: In function '__event_probe__ext3_invalidatepage':<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:344:24: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(index, page->index)<br class="">|                         ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'<br class="">|          PARAMS(assign),    \<br class="">|          ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:107:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'<br class="">|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'<br class="">|     PARAMS(assign),     \<br class="">|     ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'<br class="">|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:344:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(index, page->index)<br class="">|    ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:346:37: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(ino, (unsigned long)page->mapping->host->i_ino)<br class="">|                                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'<br class="">|          PARAMS(assign),    \<br class="">|          ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:107:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'<br class="">|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'<br class="">|     PARAMS(assign),     \<br class="">|     ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'<br class="">|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:346:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(ino, (unsigned long)page->mapping->host->i_ino)<br class="">|    ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:347:37: error: dereferencing pointer to incomplete type<br class="">|    tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)<br class="">|                                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'<br class="">|   _assign              \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'<br class="">|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br class="">|                      ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'<br class="">|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'<br class="">|          PARAMS(assign),    \<br class="">|          ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:107:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'<br class="">|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'<br class="">|     PARAMS(assign),     \<br class="">|     ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'<br class="">|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br class="">|  ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'<br class="">|   TP_fast_assign(<br class="">|   ^<br class="">| /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:347:3: note: in expansion of macro 'tp_assign'<br class="">|    tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)<br class="">|    ^<br class="">| make[4]: *** [/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.o] Error 1<br class="">| make[3]: *** [/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes] Error 2<br class="">| make[2]: *** [_module_/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git] Error 2<br class="">| make[1]: *** [sub-make] Error 2<br class="">| make[1]: Leaving directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'<br class="">| make: *** [default] Error 2<br class="">| ERROR: oe_runmake failed<br class="">| WARNING: exit code 1 from a shell command.<br class="">| ERROR: Function failed: do_compile (log file is located at /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/temp/log.do_compile.22702)</div></body></html>