<div dir="ltr">Hi,<div><br></div><div>I have not patched the linux kernel provided with octeon sdk (kernel version 2.6.32.27). The Make has been modified with kernel directory path.</div><div><br></div><div><div>#</div><div>
# Makefile for the LTT objects.</div><div>#</div><div><br></div><div>ifneq ($(KERNELRELEASE),)</div><div>ifneq ($(CONFIG_TRACEPOINTS),)</div><div><br></div><div>obj-m += lttng-ring-buffer-client-discard.o</div><div>obj-m += lttng-ring-buffer-client-overwrite.o</div>
<div>obj-m += lttng-ring-buffer-metadata-client.o</div><div>obj-m += lttng-ring-buffer-client-mmap-discard.o</div><div>obj-m += lttng-ring-buffer-client-mmap-overwrite.o</div><div>obj-m += lttng-ring-buffer-metadata-mmap-client.o</div>
<div><br></div><div>obj-m += lttng-tracer.o</div><div>lttng-tracer-objs := lttng-events.o lttng-abi.o \</div><div><span class="" style="white-space:pre"> </span>lttng-probes.o lttng-context.o \</div><div><span class="" style="white-space:pre"> </span>lttng-context-pid.o lttng-context-procname.o \</div>
<div><span class="" style="white-space:pre"> </span>lttng-context-prio.o lttng-context-nice.o \</div><div><span class="" style="white-space:pre"> </span>lttng-context-vpid.o lttng-context-tid.o \</div><div><span class="" style="white-space:pre"> </span>lttng-context-vtid.o lttng-context-ppid.o \</div>
<div><span class="" style="white-space:pre"> </span>lttng-context-vppid.o lttng-calibrate.o \</div><div><span class="" style="white-space:pre"> </span>lttng-context-hostname.o wrapper/random.o</div><div><br></div><div>
obj-m += lttng-statedump.o</div><div>lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \</div><div><span class="" style="white-space:pre"> </span>wrapper/fdtable.o</div><div><br></div><div>ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)</div>
<div>lttng-tracer-objs += lttng-syscalls.o probes/lttng-probe-user.o</div><div>endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS</div><div><br></div><div>ifneq ($(CONFIG_PERF_EVENTS),)</div><div>lttng-tracer-objs += $(shell \</div>
<div><span class="" style="white-space:pre"> </span>if [ $(VERSION) -ge 3 \</div><div><span class="" style="white-space:pre"> </span>-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \</div>
<div><span class="" style="white-space:pre"> </span>echo "lttng-context-perf-counters.o" ; fi;)</div><div>endif # CONFIG_PERF_EVENTS</div><div><br></div><div>obj-m += probes/</div><div>obj-m += lib/</div><div><br>
</div><div>endif # CONFIG_TRACEPOINTS</div><div><br></div><div>else # KERNELRELEASE</div><div><span class="" style="white-space:pre"> </span>KERNELDIR ?=<b> /home/shkumar/Development_Merge/OCT_no_patch/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux/</b></div>
<div><span class="" style="white-space:pre"> </span>PWD := $(shell pwd)</div><div><span class="" style="white-space:pre"> </span>CFLAGS = $(EXTCFLAGS)</div><div><br></div><div>default:</div><div><span class="" style="white-space:pre"> </span>$(MAKE) -C $(KERNELDIR) M=$(PWD) modules ARCH=mips CROSS_COMPILE=mips64-octeon-linux-gnu-</div>
<div><br></div><div>modules_install:</div><div><span class="" style="white-space:pre"> </span>$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install</div><div><br></div><div>clean:</div><div><span class="" style="white-space:pre"> </span>$(MAKE) -C $(KERNELDIR) M=$(PWD) clean</div>
<div><br></div><div>%.i: %.c</div><div><span class="" style="white-space:pre"> </span>$(MAKE) -C $(KERNELDIR) M=$(PWD) $@</div><div>endif # KERNELRELEASE</div></div><div><br></div><div><br></div><div><br></div><div>when trying to build</div>
<div><br></div><div><div>make -C /home/shkumar/Development_Merge/OCT_no_patch/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux/ M=/home/shkumar/lttng-tools/lttngnew/lttng-modules-f49eb38 modules ARCH=mips CROSS_COMPILE=mips64-octeon-linux-gnu-</div>
<div>make[1]: Entering directory `/home/shkumar/Development_Merge/OCT_no_patch/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux'</div><div> Building modules, stage 2.</div><div> MODPOST 0 modules</div><div>make[1]: Leaving directory `/home/shkumar/Development_Merge/OCT_no_patch/OCTEON_SDK/octeon_sdk/OCTEON-SDK/linux/kernel_2.6/linux'</div>
</div><div><br></div><div>But lttng modules are not compiled. I cannot any modules(.ko or .o) being generated in lttng directory or in kernel path.</div><div><br></div><div><br></div><div>If Octeon sdk is required , it can be obtained from <a href="http://cnusers.org">cnusers.org</a>.</div>
<div><br></div><div>Only patches in linux_patch directory has been applied to the kernel.</div><div><br></div><div>any suggestions to fix this ?</div><div><br></div><div>Thank you</div><div>Skumar</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Dec 5, 2013 at 8:55 PM, Jérémie Galarneau <span dir="ltr"><<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Dec 5, 2013 at 2:40 AM, kumar s <<a href="mailto:skumar.m226@gmail.com">skumar.m226@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am using kernel version 2.6.32.27. When building lttng module, do i need<br>
> to build against kernel which is patched using lttng (v0.190) or should i<br>
> build lttng modules for kernel that is not patched.<br>
><br>
<br>
</div>You do not need to patch your kernel using the 0.x kernel patch set to<br>
use the 2.x tracer.<br>
<br>
To build lttng-modules on this kernel, you will need to apply the<br>
patches found under linux-patches in the lttng-modules tree.<br>
<br>
Regards,<br>
Jérémie<br>
<div class="im"><br>
> I am trying to build lttng module latest version taken from lttng-module.git<br>
><br>
> Thank you<br>
> Skumar<br>
><br>
</div>> _______________________________________________<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" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Jérémie Galarneau<br>
EfficiOS Inc.<br>
<a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br>
</font></span></blockquote></div><br></div>