Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tracepoint.h File Reference
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/rcupdate.h>
#include <linux/static_key.h>

Go to the source code of this file.

Data Structures

struct  tracepoint_func
 
struct  tracepoint
 
struct  tracepoint_iter
 

Macros

#define PARAMS(args...)   args
 
#define TP_PROTO(args...)   args
 
#define TP_ARGS(args...)   args
 
#define TP_CONDITION(args...)   args
 
#define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args)
 
#define DEFINE_TRACE_FN(name, reg, unreg)
 
#define DEFINE_TRACE(name)
 
#define EXPORT_TRACEPOINT_SYMBOL_GPL(name)
 
#define EXPORT_TRACEPOINT_SYMBOL(name)
 
#define DECLARE_TRACE_NOARGS(name)   __DECLARE_TRACE(name, void, , 1, void *__data, __data)
 
#define DECLARE_TRACE(name, proto, args)
 
#define DECLARE_TRACE_CONDITION(name, proto, args, cond)
 
#define TRACE_EVENT_FLAGS(event, flag)
 
#define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print)
 
#define DEFINE_EVENT(template, name, proto, args)   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
 
#define DEFINE_EVENT_PRINT(template, name, proto, args, print)   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
 
#define DEFINE_EVENT_CONDITION(template, name, proto,args, cond)
 
#define TRACE_EVENT(name, proto, args, struct, assign, print)   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
 
#define TRACE_EVENT_FN(name, proto, args, struct,assign, print, reg, unreg)   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
 
#define TRACE_EVENT_CONDITION(name, proto, args, cond,struct, assign, print)
 
#define TRACE_EVENT_FLAGS(event, flag)
 

Functions

int tracepoint_probe_register (const char *name, void *probe, void *data)
 
int tracepoint_probe_unregister (const char *name, void *probe, void *data)
 
int tracepoint_probe_register_noupdate (const char *name, void *probe, void *data)
 
int tracepoint_probe_unregister_noupdate (const char *name, void *probe, void *data)
 
void tracepoint_probe_update_all (void)
 
void tracepoint_iter_start (struct tracepoint_iter *iter)
 
void tracepoint_iter_next (struct tracepoint_iter *iter)
 
void tracepoint_iter_stop (struct tracepoint_iter *iter)
 
void tracepoint_iter_reset (struct tracepoint_iter *iter)
 

Macro Definition Documentation

#define __DECLARE_TRACE (   name,
  proto,
  args,
  cond,
  data_proto,
  data_args 
)
Value:
static inline void trace_##name(proto) \
{ } \
static inline void trace_##name##_rcuidle(proto) \
{ } \
static inline int \
register_trace_##name(void (*probe)(data_proto), \
void *data) \
{ \
return -ENOSYS; \
} \
static inline int \
unregister_trace_##name(void (*probe)(data_proto), \
void *data) \
{ \
return -ENOSYS; \
} \
static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \
{ \
}

Definition at line 213 of file tracepoint.h.

#define DECLARE_EVENT_CLASS (   name,
  proto,
  args,
  tstruct,
  assign,
  print 
)

Definition at line 378 of file tracepoint.h.

#define DECLARE_TRACE (   name,
  proto,
  args 
)
Value:
PARAMS(void *__data, proto), \
PARAMS(__data, args))

Definition at line 258 of file tracepoint.h.

#define DECLARE_TRACE_CONDITION (   name,
  proto,
  args,
  cond 
)
Value:
PARAMS(void *__data, proto), \
PARAMS(__data, args))

Definition at line 263 of file tracepoint.h.

#define DECLARE_TRACE_NOARGS (   name)    __DECLARE_TRACE(name, void, , 1, void *__data, __data)

Definition at line 255 of file tracepoint.h.

#define DEFINE_EVENT (   template,
  name,
  proto,
  args 
)    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

Definition at line 379 of file tracepoint.h.

#define DEFINE_EVENT_CONDITION (   template,
  name,
  proto,
  args,
  cond 
)
Value:

Definition at line 383 of file tracepoint.h.

#define DEFINE_EVENT_PRINT (   template,
  name,
  proto,
  args,
  print 
)    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

Definition at line 381 of file tracepoint.h.

#define DEFINE_TRACE (   name)

Definition at line 235 of file tracepoint.h.

#define DEFINE_TRACE_FN (   name,
  reg,
  unreg 
)

Definition at line 234 of file tracepoint.h.

#define EXPORT_TRACEPOINT_SYMBOL (   name)

Definition at line 237 of file tracepoint.h.

#define EXPORT_TRACEPOINT_SYMBOL_GPL (   name)

Definition at line 236 of file tracepoint.h.

#define PARAMS (   args...)    args

Definition at line 87 of file tracepoint.h.

#define TP_ARGS (   args...)    args

Definition at line 102 of file tracepoint.h.

#define TP_CONDITION (   args...)    args

Definition at line 103 of file tracepoint.h.

#define TP_PROTO (   args...)    args

Definition at line 101 of file tracepoint.h.

#define TRACE_EVENT (   name,
  proto,
  args,
  struct,
  assign,
  print 
)    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

Definition at line 388 of file tracepoint.h.

#define TRACE_EVENT_CONDITION (   name,
  proto,
  args,
  cond,
  struct,
  assign,
  print 
)
Value:

Definition at line 393 of file tracepoint.h.

#define TRACE_EVENT_FLAGS (   event,
  flag 
)

Definition at line 398 of file tracepoint.h.

#define TRACE_EVENT_FLAGS (   event,
  flag 
)

Definition at line 398 of file tracepoint.h.

#define TRACE_EVENT_FN (   name,
  proto,
  args,
  struct,
  assign,
  print,
  reg,
  unreg 
)    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))

Definition at line 390 of file tracepoint.h.

Function Documentation

void tracepoint_iter_next ( struct tracepoint_iter iter)

Definition at line 604 of file tracepoint.c.

void tracepoint_iter_reset ( struct tracepoint_iter iter)

Definition at line 621 of file tracepoint.c.

void tracepoint_iter_start ( struct tracepoint_iter iter)

Definition at line 598 of file tracepoint.c.

void tracepoint_iter_stop ( struct tracepoint_iter iter)

Definition at line 616 of file tracepoint.c.

int tracepoint_probe_register ( const char name,
void probe,
void data 
)

Definition at line 377 of file tracepoint.c.

int tracepoint_probe_register_noupdate ( const char name,
void probe,
void data 
)

Definition at line 458 of file tracepoint.c.

int tracepoint_probe_unregister ( const char name,
void probe,
void data 
)

Definition at line 421 of file tracepoint.c.

int tracepoint_probe_unregister_noupdate ( const char name,
void probe,
void data 
)

Definition at line 482 of file tracepoint.c.

void tracepoint_probe_update_all ( void  )

tracepoint_probe_update_all - update tracepoints

Definition at line 502 of file tracepoint.c.