<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Am 09.11.2013 09:33, schrieb Klaus
Dannecker:<br>
</div>
<blockquote cite="mid:527DF369.4020704@gmx.de" type="cite">Hi,
<br>
I want to write a driver with trace events.
<br>
In the first step i compile the example trace-events-sample.c
with the makefile:
<br>
<br>
ifneq ($(KERNELRELEASE),)
<br>
obj-m := modul_trace-events-sample.o
<br>
modul_trace-events-sample-y := trace-events-sample.o
<br>
ccflags-y := -I$(src)
<br>
else
<br>
KDIR ?= /lib/modules/`uname -r`/build
<br>
default:
<br>
$(MAKE) -C $(KDIR) M=$$PWD
<br>
endif
<br>
<br>
now i get the modul_trace-events-sample.ko File.
<br>
now:
<br>
insmod modul_trace-events-sample.ko
<br>
lttng create
<br>
lttng enable-event -k -a
<br>
lttng start
<br>
...wait...
<br>
lttng stop
<br>
lttng destroy
<br>
<br>
now i look the result in the eclise viewer, but i found event
"trace_foo_bar" not in the session!
<br>
what am I doing wrong?
<br>
<br>
I use ubuntu 13.04 in a vmware
<br>
<br>
Thanks
<br>
<br>
_______________________________________________
<br>
</blockquote>
Hi,<br>
<br>
now i found a answer:<br>
<a class="moz-txt-link-freetext" href="http://lists.lttng.org/pipermail/lttng-dev/2013-October/021540.html">http://lists.lttng.org/pipermail/lttng-dev/2013-October/021540.html</a><br>
now i download the lttng-module and compiled it.<br>
<pre><code>$ git clone git:<wbr>//gi<wbr>t.lt<wbr>tng.<wbr>org/<wbr>lttn<wbr>g-mo<wbr>dule<wbr>s.gi<wbr>t
</code><code>$ cd lttng-tools</code>
<code>$ make</code>
<code>$ sudo make modules_install
</code><span id="result_box" class="short_text" lang="en"><span class="hps">here I get</span> <span class="hps">error
INSTALL /mnt/hgfs/shared_Folder/lttng-modules/lib/lttng-lib-ring-buffer.ko
Can't read private key
...
</span></span><span id="result_box" class="short_text" lang="en"><span class="hps">what does that mean?
</span></span><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps">what</span> <span class="hps">should I do?</span></span></span></span></span></span>
please help me!
</span></span><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps">another question:
when i create a </span></span></span></span><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps">trace events in module_a,
can i use it in module_b?
if yes, </span></span></span></span><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps"><span id="result_box" class="short_text" lang="en"><span class="hps">what</span> <span class="hps">should I do?</span></span></span></span></span></span></pre>
thanks Klaus<br>
</body>
</html>