Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
trace-events-sample.h File Reference
#include <linux/tracepoint.h>
#include <trace/define_trace.h>

Go to the source code of this file.

Macros

#define TRACE_SYSTEM   sample
 
#define _TRACE_EVENT_SAMPLE_H
 
#define TRACE_INCLUDE_PATH   .
 
#define TRACE_INCLUDE_FILE   trace-events-sample
 

Functions

 TRACE_EVENT (foo_bar, TP_PROTO(char *foo, int bar), TP_ARGS(foo, bar), TP_STRUCT__entry(__array(char, foo, 10) __field(int, bar)), TP_fast_assign(strncpy(__entry->foo, foo, 10);__entry->bar=bar;), TP_printk("foo %s %d", __entry->foo, __entry->bar))
 

Macro Definition Documentation

#define _TRACE_EVENT_SAMPLE_H

Definition at line 36 of file trace-events-sample.h.

#define TRACE_INCLUDE_FILE   trace-events-sample

Definition at line 136 of file trace-events-sample.h.

#define TRACE_INCLUDE_PATH   .

Definition at line 132 of file trace-events-sample.h.

#define TRACE_SYSTEM   sample

Definition at line 25 of file trace-events-sample.h.

Function Documentation

TRACE_EVENT ( foo_bar  ,
TP_PROTO(char *foo, int bar)  ,
TP_ARGS(foo, bar)  ,
TP_STRUCT__entry(__array(char, foo, 10) __field(int, bar))  ,
TP_fast_assign(strncpy(__entry->foo, foo, 10);__entry->bar=bar;)  ,
TP_printk("foo %s %d", __entry->foo, __entry->bar)   
)