<p dir="ltr">Thank you.<br>
Z.V</p>
<div class="gmail_quote">On Dec 3, 2015 9:21 AM, "Mathieu Desnoyers" <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">----- On Dec 3, 2015, at 4:20 AM, Zvi Vered <a href="mailto:veredz72@gmail.com">veredz72@gmail.com</a> wrote:<br>
<br>
> Hello,<br>
><br>
> I'm tried to compile lttng-modules:<br>
><br>
> more /proc/version:<br>
> Linux version 2.6.32-279.el6.x86_64<br>
> (<a href="mailto:mockbuild@c6b9.bsys.dev.centos.org">mockbuild@c6b9.bsys.dev.centos.org</a>) (gcc version 4.4.6 20120305 (Red<br>
> Hat 4.4.6-4) (GCC) )<br>
> #1 SMP Fri Jun 22 12:19:21 UTC 2012<br>
<br>
Hi,<br>
<br>
Kernel 2.6.32 is not supported by lttng-modules. You will need to<br>
upgrade your kernel. See README.md in lttng-modules.<br>
<br>
Thanks,<br>
<br>
Mathieu<br>
<br>
><br>
> yum install kernel-headers<br>
> cd lttng-modules-2.7.0<br>
> make<br>
><br>
> and got:<br>
><br>
> LTTNG_KERNELDIR=/lib/modules/2.6.32-279.el6.x86_64/build make -C<br>
> /lib/modules/2.6.32-279.el6.x86_64/build<br>
> M=/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0 modules<br>
> make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.x86_64'<br>
>  CC [M]<br>
>  /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o<br>
> In file included from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:1:<br>
> error: pasting "per_cpu__" and "*" does not give a valid preprocessing<br>
> token<br>
> In file included from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,<br>
>                 from<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:<br>
> In function ‘lib_ring_buffer_put_cpu’:<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> error: ‘per_cpu__’ undeclared (first use in this function)<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> error: (Each undeclared identifier is reported only once<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> error: for each function it appears in.)<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> error: ‘lib_ring_buffer_nesting’ undeclared (first use in this<br>
> function)<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> warning: type defaults to ‘int’ in declaration of ‘type name’<br>
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:<br>
> error: invalid type argument of ‘unary *’ (have ‘int’)<br>
> make[2]: ***<br>
> [/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o]<br>
> Error 1<br>
> make[1]: ***<br>
> [_module_/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0]<br>
> Error 2<br>
> make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'<br>
><br>
> I did not add yet the required components to the kernel.<br>
><br>
> Can you help ?<br>
><br>
> Best regards,<br>
> Z.V<br>
><br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" rel="noreferrer" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br>
--<br>
Mathieu Desnoyers<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" rel="noreferrer" target="_blank">http://www.efficios.com</a><br>
</blockquote></div>