Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
trace_export.c File Reference
#include <linux/stringify.h>
#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include "trace_output.h"
#include "trace_entries.h"

Go to the source code of this file.

Macros

#define TRACE_SYSTEM   ftrace
 
#define FTRACE_ENTRY_REG(name, struct_name, id, tstruct, print, filter, regfn)
 
#define __field_struct(type, item)
 
#define __field(type, item)   type item;
 
#define __field_desc(type, container, item)   type item;
 
#define __array(type, item, size)   type item[size];
 
#define __array_desc(type, container, item, size)   type item[size];
 
#define __dynamic_array(type, item)   type item[];
 
#define F_STRUCT(args...)   args
 
#define F_printk(fmt, args...)   fmt, args
 
#define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter)
 
#define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print, filter)
 
#define __field(type, item)
 
#define __field_desc(type, container, item)
 
#define __array(type, item, len)
 
#define __array_desc(type, container, item, len)
 
#define __dynamic_array(type, item)
 
#define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter)
 
#define __entry   REC
 
#define __field(type, item)
 
#define __field_desc(type, container, item)
 
#define __array(type, item, len)
 
#define __array_desc(type, container, item, len)
 
#define __dynamic_array(type, item)
 
#define F_printk(fmt, args...)   __stringify(fmt) ", " __stringify(args)
 
#define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter, regfn)
 
#define FTRACE_ENTRY(call, struct_name, etype, tstruct, print, filter)
 

Functions

int ftrace_event_is_function (struct ftrace_event_call *call)
 

Macro Definition Documentation

#define __array (   type,
  item,
  size 
)    type item[size];

Definition at line 156 of file trace_export.c.

#define __array (   type,
  item,
  len 
)
Value:
do { \
BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \
mutex_lock(&event_storage_mutex); \
snprintf(event_storage, sizeof(event_storage), \
"%s[%d]", #type, len); \
ret = trace_define_field(event_call, event_storage, #item, \
sizeof(field.item), \
mutex_unlock(&event_storage_mutex); \
if (ret) \
return ret; \
} while (0);

Definition at line 156 of file trace_export.c.

#define __array (   type,
  item,
  len 
)

Definition at line 156 of file trace_export.c.

#define __array_desc (   type,
  container,
  item,
  size 
)    type item[size];

Definition at line 159 of file trace_export.c.

#define __array_desc (   type,
  container,
  item,
  len 
)
Value:
ret = trace_define_field(event_call, #type "[" #len "]", #item, \
container.item), \
sizeof(field.container.item), \
if (ret) \
return ret;

Definition at line 159 of file trace_export.c.

#define __array_desc (   type,
  container,
  item,
  len 
)

Definition at line 159 of file trace_export.c.

#define __dynamic_array (   type,
  item 
)    type item[];

Definition at line 162 of file trace_export.c.

#define __dynamic_array (   type,
  item 
)
Value:
ret = trace_define_field(event_call, #type, #item, \
if (ret) \
return ret;

Definition at line 162 of file trace_export.c.

#define __dynamic_array (   type,
  item 
)

Definition at line 162 of file trace_export.c.

#define __entry   REC

Definition at line 147 of file trace_export.c.

#define __field (   type,
  item 
)    type item;

Definition at line 150 of file trace_export.c.

#define __field (   type,
  item 
)
Value:
ret = trace_define_field(event_call, #type, #item, \
sizeof(field.item), \
if (ret) \
return ret;

Definition at line 150 of file trace_export.c.

#define __field (   type,
  item 
)

Definition at line 150 of file trace_export.c.

#define __field_desc (   type,
  container,
  item 
)    type item;

Definition at line 153 of file trace_export.c.

#define __field_desc (   type,
  container,
  item 
)
Value:
ret = trace_define_field(event_call, #type, #item, \
container.item), \
sizeof(field.container.item), \
if (ret) \
return ret;

Definition at line 153 of file trace_export.c.

#define __field_desc (   type,
  container,
  item 
)

Definition at line 153 of file trace_export.c.

#define __field_struct (   type,
  item 
)

Definition at line 33 of file trace_export.c.

#define F_printk (   fmt,
  args... 
)    fmt, args

Definition at line 165 of file trace_export.c.

#define F_printk (   fmt,
  args... 
)    __stringify(fmt) ", " __stringify(args)

Definition at line 165 of file trace_export.c.

#define F_STRUCT (   args...)    args

Definition at line 51 of file trace_export.c.

#define FTRACE_ENTRY (   name,
  struct_name,
  id,
  tstruct,
  print,
  filter 
)
Value:
struct ____ftrace_##name { \
tstruct \
}; \
static void __always_unused ____ftrace_check_##name(void) \
{ \
struct ____ftrace_##name *__entry = NULL; \
\
/* force compile-time check on F_printk() */ \
printk(print); \
}

Definition at line 189 of file trace_export.c.

#define FTRACE_ENTRY (   name,
  struct_name,
  id,
  tstruct,
  print,
  filter 
)
Value:
int \
ftrace_define_fields_##name(struct ftrace_event_call *event_call) \
{ \
struct struct_name field; \
int ret; \
\
tstruct; \
\
return ret; \
}

Definition at line 189 of file trace_export.c.

#define FTRACE_ENTRY (   call,
  struct_name,
  etype,
  tstruct,
  print,
  filter 
)
Value:
FTRACE_ENTRY_REG(call, struct_name, etype, \
PARAMS(tstruct), PARAMS(print), filter, NULL)

Definition at line 189 of file trace_export.c.

#define FTRACE_ENTRY_DUP (   name,
  struct_name,
  id,
  tstruct,
  print,
  filter 
)
Value:
FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print), \

Definition at line 70 of file trace_export.c.

#define FTRACE_ENTRY_REG (   name,
  struct_name,
  id,
  tstruct,
  print,
  filter,
  regfn 
)
Value:
FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print), \

Definition at line 168 of file trace_export.c.

#define FTRACE_ENTRY_REG (   call,
  struct_name,
  etype,
  tstruct,
  print,
  filter,
  regfn 
)
Value:
struct ftrace_event_class event_class_ftrace_##call = { \
.define_fields = ftrace_define_fields_##call, \
.fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\
.reg = regfn, \
}; \
\
struct ftrace_event_call __used event_##call = { \
.name = #call, \
.event.type = etype, \
.class = &event_class_ftrace_##call, \
.print_fmt = print, \
}; \
__attribute__((section("_ftrace_events"))) *__event_##call = &event_##call;

Definition at line 168 of file trace_export.c.

#define TRACE_SYSTEM   ftrace

Definition at line 19 of file trace_export.c.

Function Documentation

int ftrace_event_is_function ( struct ftrace_event_call call)

Definition at line 193 of file trace_export.c.