<div dir="ltr">as suggested on IRC, here is the code/instructions to reproduce the problem:<div><br></div><div> $ git clone git://<a href="http://monkey-project.com/monkey">monkey-project.com/monkey</a><br></div><div style>
$ cd monkey</div><div style> $ git checkout lttng</div><div style> $ ./configure --enable-plugins=liana --disable-plugins=* --linux-trace</div><div style> $ make</div><div style><br></div><div style>thanks </div><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 23, 2013 at 11:24 AM, Eduardo Silva <span dir="ltr"><<a href="mailto:edsiper@gmail.com" target="_blank">edsiper@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 dir="ltr">Hi, <div><br></div><div>i am adding support of Lttng to <a href="http://monkey-project.com" target="_blank">monkey-project.com</a> but the compiler is claiming an undefined reference, of course there is something wrong in my provider header but i am not able to catch the error. </div>
<div><br></div><div>My code structure is as follows:</div><div><br></div><div><div>monkey.c (src/monkey.c) </div><div>====================</div><div>#define TRACEPOINT_DEFINE</div><div>#include "mk_linuxtrace_provider.h"</div>
<div><br></div><div>int main()</div><div>{</div><div> ...</div><div>}</div><div><br></div><div><br></div><div>mk_linuxtrace_provider.h (src/include/mk_linuxtrace_provider.h)</div><div>====================================================</div>
<div>#undef TRACEPOINT_PROVIDER</div><div>#define TRACEPOINT_PROVIDER mk_linuxtrace</div><div><br></div><div>#undef TRACEPOINT_INCLUDE</div><div>#define TRACEPOINT_INCLUDE "mk_linuxtrace_provider.h"</div><div>
<br></div><div>#if !defined(_MK_LINUXTRACE_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)</div><div>#define _MK_LINUXTRACE_PROVIDER_H</div><div>#include <lttng/tracepoint.h></div><div><br></div><div>TRACEPOINT_EVENT(</div>
<div> mk_linuxtrace,</div><div> message,</div><div> TP_ARGS(char *, text),</div><div> TP_FIELDS(ctf_string(message, text))</div><div> )</div>
<div><br></div><div>TRACEPOINT_LOGLEVEL(</div><div> mk_linuxtrace,</div><div> message,</div><div> TRACE_WARNING)</div><div>#endif</div><div><br></div><div>#include <lttng/tracepoint-event.h></div>
<div><br></div><div>---EOF---</div><div><br></div><div>any help is appreciated, </div><div><br></div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div>
<div dir="ltr">Eduardo Silva<br>
<a href="http://edsiper.linuxchile.cl" target="_blank">http://edsiper.linuxchile.cl</a><br><a href="http://monkey-project.com" target="_blank">http://monkey-project.com</a></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo Silva<br><a href="http://edsiper.linuxchile.cl" target="_blank">http://edsiper.linuxchile.cl</a><br><a href="http://monkey-project.com" target="_blank">http://monkey-project.com</a></div>
</div>