All of lore.kernel.org
 help / color / mirror / Atom feed
* newbie and kernel trace
@ 2013-05-17 14:58 Stéphane ANCELOT
  0 siblings, 0 replies; 5+ messages in thread
From: Stéphane ANCELOT @ 2013-05-17 14:58 UTC (permalink / raw)
  To: lttng-dev

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <519645B2.5090709@free.fr>]

end of thread, other threads:[~2013-05-22 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 14:58 newbie and kernel trace Stéphane ANCELOT
     [not found] <519645B2.5090709@free.fr>
2013-05-17 15:13 ` 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

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.