All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@free.fr>
Cc: lttng-dev@lists.lttng.org
Subject: Re: newbie and kernel trace
Date: Tue, 21 May 2013 11:54:42 +0200	[thread overview]
Message-ID: <519B4462.2030103__40441.1218748011$1369130446$gmane$org@free.fr> (raw)
In-Reply-To: <CA+jJMxt8jUGiVTBy-1tm0oSAzcvSKv8VuCTsvHnmEthUCO9ctQ@mail.gmail.com>

Hi,
I have read the Documentation/trace/tracepoints.txt file.

I modified my code to acknowledge it.

I am again unable to list my tracepoints using lttng list . (I also 
tried lttng enable-channel before...).

So , only one step I have not made :
Is it mandatory to register the probe functions ???


Regards,
S.Ancelot




On 17/05/2013 17:13, Jérémie Galarneau wrote:
> Hi Stéphane,
>
> We're going to need more details than that. Which kernel version are you using?
> Can you see the other kernel events in your trace? If not, can you
> show us how you are setting up your session?
>
> Thanks,
> Jérémie
>
> On Fri, May 17, 2013 at 10:58 AM, Stéphane ANCELOT <sancelot@free.fr> wrote:
>> Hi,
>>
>> I am trying to reimplement LTTNG 2. in xenomai api.
>>
>> the main problem is that I do not sea any of my new events available in
>> lttng 2.
>>
>>
>> my kernel compiles fine and  here is what I done to set it up :
>>
>> file include/trace/events/pod.h :
>>
>> #undef TRACE_SYSTEM
>> #define TRACE_SYSTEM xenotrace
>>
>> #if !defined(_XENOTRACE_H) || defined(TRACE_HEADER_MULTI_READ)
>>
>> #define _XENOTRACE_H
>>
>> #include <linux/tracepoint.h>
>>
>>
>> TRACE_EVENT(    xn_nucleus_thread_init,
>>                  TP_PROTO(struct xnthread *thread,char *thread_name,xnflags_t
>> flags,const char *class,int prio),
>>                  TP_ARGS(thread,thread_name,flags,class,prio),
>>
>>                  TP_STRUCT__entry(
>>                   __field(struct xnthread *,thread)
>>                   __array(char ,thread_name,      XNOBJECT_NAME_LEN   )
>>                   __field(xnflags_t,flags)
>>                   __array(char,class,      XNOBJECT_NAME_LEN  )
>>                   __field(int,    prio                       )
>>                  ),
>>
>>                TP_fast_assign(
>>                 __entry->thread   = thread;
>>                 memcpy(__entry->thread_name,thread_name, XNOBJECT_NAME_LEN);
>>                 __entry->flags   = flags;
>>                 memcpy(__entry->class,class, XNOBJECT_NAME_LEN);
>>                 __entry->prio   = prio;
>>                  ),
>>
>>                 TP_printk("thread %p thread_name %s flags %lu class %s prio
>> %d",
>>                 __entry->thread, __entry->thread_name,
>> __entry->flags,__entry->class,
>>                 __entry->prio)
>> );
>>
>> #endif
>>
>> /* This part must be outside protection */
>> #include <trace/define_trace.h>
>>
>>
>>
>> in pod.h :
>> #define CREATE_TRACE_POINTS
>> #include <trace/events/pod.h>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>

  parent reply	other threads:[~2013-05-21  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <519645B2.5090709@free.fr>
2013-05-17 15:13 ` newbie and kernel trace Jérémie Galarneau
     [not found] ` <CA+jJMxt8jUGiVTBy-1tm0oSAzcvSKv8VuCTsvHnmEthUCO9ctQ@mail.gmail.com>
2013-05-21  6:34   ` Stéphane ANCELOT
2013-05-21  9:54   ` Stéphane ANCELOT [this message]
     [not found]   ` <519B4462.2030103@free.fr>
2013-05-22 12:50     ` Mathieu Desnoyers
2013-05-17 14:58 Stéphane ANCELOT

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='519B4462.2030103__40441.1218748011$1369130446$gmane$org@free.fr' \
    --to=sancelot@free.fr \
    --cc=lttng-dev@lists.lttng.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.