Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: edsiper@gmail.com (Eduardo Silva)
Subject: [lttng-dev] Undefined reference to __tracepoint_provider_mk_linuxtrace
Date: Sat, 23 Nov 2013 11:40:34 -0600	[thread overview]
Message-ID: <CAMAQheNFOJ4dk1VJBAW6eaV=C=fHH091SzBUJEfpn51Huuc6ng@mail.gmail.com> (raw)
In-Reply-To: <CAMAQheOmZZfXiQiKQXONfupwUR=YBFZuogsDxj-0aSmQQ_uJKw@mail.gmail.com>

as suggested on IRC, here is the code/instructions to reproduce the problem:

 $ git clone git://monkey-project.com/monkey
 $ cd monkey
 $ git checkout lttng
 $ ./configure --enable-plugins=liana --disable-plugins=* --linux-trace
 $ make

thanks



On Sat, Nov 23, 2013 at 11:24 AM, Eduardo Silva <edsiper at gmail.com> wrote:

> Hi,
>
> i am adding support of Lttng to monkey-project.com 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.
>
> My code structure is as follows:
>
> monkey.c (src/monkey.c)
> ====================
> #define TRACEPOINT_DEFINE
> #include "mk_linuxtrace_provider.h"
>
> int main()
> {
>   ...
> }
>
>
> mk_linuxtrace_provider.h (src/include/mk_linuxtrace_provider.h)
> ====================================================
> #undef  TRACEPOINT_PROVIDER
> #define TRACEPOINT_PROVIDER mk_linuxtrace
>
> #undef  TRACEPOINT_INCLUDE
> #define TRACEPOINT_INCLUDE "mk_linuxtrace_provider.h"
>
> #if !defined(_MK_LINUXTRACE_PROVIDER_H) ||
> defined(TRACEPOINT_HEADER_MULTI_READ)
> #define _MK_LINUXTRACE_PROVIDER_H
> #include <lttng/tracepoint.h>
>
> TRACEPOINT_EVENT(
>                  mk_linuxtrace,
>                  message,
>                  TP_ARGS(char *, text),
>                  TP_FIELDS(ctf_string(message, text))
>                  )
>
> TRACEPOINT_LOGLEVEL(
>                     mk_linuxtrace,
>                     message,
>                     TRACE_WARNING)
> #endif
>
> #include <lttng/tracepoint-event.h>
>
> ---EOF---
>
> any help is appreciated,
>
> thanks
>
> --
> Eduardo Silva
> http://edsiper.linuxchile.cl
> http://monkey-project.com
>



-- 
Eduardo Silva
http://edsiper.linuxchile.cl
http://monkey-project.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131123/1ccffe9f/attachment.html>


  reply	other threads:[~2013-11-23 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23 17:24 Eduardo Silva
2013-11-23 17:40 ` Eduardo Silva [this message]
2013-11-23 17:45 ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMAQheNFOJ4dk1VJBAW6eaV=C=fHH091SzBUJEfpn51Huuc6ng@mail.gmail.com' \
    --to=edsiper@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox