Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
trace_output.h File Reference
#include <linux/trace_seq.h>
#include "trace.h"

Go to the source code of this file.

Macros

#define MAX_MEMHEX_BYTES   8
 
#define HEX_CHARS   (MAX_MEMHEX_BYTES*2 + 1)
 
#define SEQ_PUT_FIELD_RET(s, x)
 
#define SEQ_PUT_HEX_FIELD_RET(s, x)
 

Functions

enum print_line_t trace_print_bprintk_msg_only (struct trace_iterator *iter)
 
enum print_line_t trace_print_printk_msg_only (struct trace_iterator *iter)
 
int seq_print_ip_sym (struct trace_seq *s, unsigned long ip, unsigned long sym_flags)
 
int seq_print_userip_objs (const struct userstack_entry *entry, struct trace_seq *s, unsigned long sym_flags)
 
int seq_print_user_ip (struct trace_seq *s, struct mm_struct *mm, unsigned long ip, unsigned long sym_flags)
 
int trace_print_context (struct trace_iterator *iter)
 
int trace_print_lat_context (struct trace_iterator *iter)
 
void trace_event_read_lock (void)
 
void trace_event_read_unlock (void)
 
struct trace_eventftrace_find_event (int type)
 
enum print_line_t trace_nop_print (struct trace_iterator *iter, int flags, struct trace_event *event)
 
int trace_print_lat_fmt (struct trace_seq *s, struct trace_entry *entry)
 
int __unregister_ftrace_event (struct trace_event *event)
 

Variables

struct rw_semaphore trace_event_mutex
 

Macro Definition Documentation

#define HEX_CHARS   (MAX_MEMHEX_BYTES*2 + 1)

Definition at line 37 of file trace_output.h.

#define MAX_MEMHEX_BYTES   8

Definition at line 36 of file trace_output.h.

#define SEQ_PUT_FIELD_RET (   s,
  x 
)
Value:
do { \
if (!trace_seq_putmem(s, &(x), sizeof(x))) \
} while (0)

Definition at line 39 of file trace_output.h.

#define SEQ_PUT_HEX_FIELD_RET (   s,
  x 
)
Value:
do { \
BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
} while (0)

Definition at line 45 of file trace_output.h.

Function Documentation

int __unregister_ftrace_event ( struct trace_event event)

Definition at line 851 of file trace_output.c.

struct trace_event* ftrace_find_event ( int  type)
read

ftrace_find_event - find a registered event : the type of event to look for

Returns an event of type otherwise NULL Called with trace_event_read_lock() held.

Definition at line 711 of file trace_output.c.

int seq_print_ip_sym ( struct trace_seq s,
unsigned long  ip,
unsigned long  sym_flags 
)

Definition at line 535 of file trace_output.c.

int seq_print_user_ip ( struct trace_seq s,
struct mm_struct mm,
unsigned long  ip,
unsigned long  sym_flags 
)

Definition at line 455 of file trace_output.c.

int seq_print_userip_objs ( const struct userstack_entry *  entry,
struct trace_seq s,
unsigned long  sym_flags 
)

Definition at line 488 of file trace_output.c.

void trace_event_read_lock ( void  )

Definition at line 757 of file trace_output.c.

void trace_event_read_unlock ( void  )

Definition at line 762 of file trace_output.c.

enum print_line_t trace_nop_print ( struct trace_iterator iter,
int  flags,
struct trace_event event 
)

Definition at line 876 of file trace_output.c.

enum print_line_t trace_print_bprintk_msg_only ( struct trace_iterator iter)

Definition at line 40 of file trace_output.c.

int trace_print_context ( struct trace_iterator iter)

Definition at line 624 of file trace_output.c.

int trace_print_lat_context ( struct trace_iterator iter)

Definition at line 651 of file trace_output.c.

int trace_print_lat_fmt ( struct trace_seq s,
struct trace_entry entry 
)

trace_print_lat_fmt - print the irq, preempt and lockdep fields : trace seq struct to write to : The trace entry field from the ring buffer

Prints the generic fields of irqs off, in hard or softirq, preempt count.

Definition at line 563 of file trace_output.c.

enum print_line_t trace_print_printk_msg_only ( struct trace_iterator iter)

Definition at line 56 of file trace_output.c.

Variable Documentation

struct rw_semaphore trace_event_mutex