<div dir="ltr">Hi Junho,<div><br></div><div>Can you reproduce this with the latest 2.7 stable branch of lttng-modules or master ?</div><div><br></div><div>Also there is a newer release for 2.6 which is v2.6.4 so you might want to try this also.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 30, 2016 at 9:38 PM, Junho Suh <span dir="ltr"><<a href="mailto:redrattus@gmail.com" target="_blank">redrattus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<br><br>I am currently building the LTTng 2.6.1 against the linux kernel 3.2.65.<br>When building lttng-modules, I get the below error:<br><br>It seems the proper definition of "page->index" can not be found in the right header file.<br>I also patch the Makefile by following the link (<a href="https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html" target="_blank">https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html</a>) which has similar problem, but it doesn’t work.<br><br>Anybody can help me?<br><br>Thanks~<div><br>===<br>Log data follows:<br>| DEBUG: Executing shell function do_compile<br>| 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>| 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>| make[1]: Entering directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'<br>| /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>|   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>| 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>|                  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>|                  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>| /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>| /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>|    tp_assign(index, page->index)<br>|                         ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(index, page->index)<br>|    ^<br>| /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>|    tp_assign(ino, page->mapping->host->i_ino)<br>|                       ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(ino, page->mapping->host->i_ino)<br>|    ^<br>| /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>|    tp_assign(dev, page->mapping->host->i_sb->s_dev)<br>|                       ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(dev, page->mapping->host->i_sb->s_dev)<br>|    ^<br>| /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>| /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>|    tp_assign(index, page->index)<br>|                         ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br>|   ^<br>| /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>|          PARAMS(assign),    \<br>|          ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br>|   ^<br>| /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>|     PARAMS(assign),     \<br>|     ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(index, page->index)<br>|    ^<br>| /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>|    tp_assign(ino, (unsigned long)page->mapping->host->i_ino)<br>|                                      ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br>|   ^<br>| /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>|          PARAMS(assign),    \<br>|          ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br>|   ^<br>| /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>|     PARAMS(assign),     \<br>|     ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(ino, (unsigned long)page->mapping->host->i_ino)<br>|    ^<br>| /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>|    tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)<br>|                                      ^<br>| /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>|   _assign              \<br>|   ^<br>| /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>|    PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))<br>|                      ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_CLASS(map,    \<br>|   ^<br>| /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>|          PARAMS(assign),    \<br>|          ^<br>| /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>|   LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br>|   ^<br>| /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>|     PARAMS(assign),     \<br>|     ^<br>| /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>|  LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,<br>|  ^<br>| /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>|   TP_fast_assign(<br>|   ^<br>| /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>|    tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)<br>|    ^<br>| 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>| make[3]: *** [/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes] Error 2<br>| make[2]: *** [_module_/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git] Error 2<br>| make[1]: *** [sub-make] Error 2<br>| make[1]: Leaving directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'<br>| make: *** [default] Error 2<br>| ERROR: oe_runmake failed<br>| WARNING: exit code 1 from a shell command.<br>| 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></div><br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" rel="noreferrer" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Jonathan Rajotte Julien<div><br></div></div></div></div></div>
</div>