All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@free.fr>
To: lttng-dev@lists.lttng.org
Subject: newbie and kernel trace
Date: Fri, 17 May 2013 16:58:58 +0200	[thread overview]
Message-ID: <519645B2.5090709__33337.8066462048$1368802783$gmane$org@free.fr> (raw)

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>

             reply	other threads:[~2013-05-17 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17 14:58 Stéphane ANCELOT [this message]
     [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
     [not found]   ` <519B4462.2030103@free.fr>
2013-05-22 12:50     ` 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='519645B2.5090709__33337.8066462048$1368802783$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.