[lttng-dev] Problem with Kernel Module

Tim Tannert tim.tannert at tu-dortmund.de
Mon Oct 17 09:30:29 UTC 2016


Hello,

I hope this is the right place for my question.

I want to trace a linux kernel Module with lttng. So I created a header file in "<module path>/tracing/tracepoint.h". I filled this header with information from http://lttng.org/docs/#doc-instrumenting-linux-kernel-itself (here the file is called hello,h). Then I included

#define CREATE_TRACE_POINTS
#include <../../tracing/tracepoint.h>

...
trace_hello_world(23, "initialized module");
...

in my modules source code.
But when I try to compile my module again, I got these message: http://pastebin.com/hXnZhJBS


I hope its not a simple failor caused by reading the wrong part of the documentation, but I'm a little bit confused, which part I need to read.
I read http://lttng.org/docs/#doc-instrumenting-out-of-tree-linux-kernel and there was a link to the above tutorial, which i used finaly.

I'm looking forward to a answer ;)

Tim



Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20161017/1e9ff22a/attachment.html>


More information about the lttng-dev mailing list