Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
trace_functions_graph.c File Reference
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include "trace.h"
#include "trace_output.h"

Go to the source code of this file.

Data Structures

struct  fgraph_cpu_data
 
struct  fgraph_data
 

Macros

#define TRACE_GRAPH_INDENT   2
 
#define TRACE_GRAPH_PRINT_OVERRUN   0x1
 
#define TRACE_GRAPH_PRINT_CPU   0x2
 
#define TRACE_GRAPH_PRINT_OVERHEAD   0x4
 
#define TRACE_GRAPH_PRINT_PROC   0x8
 
#define TRACE_GRAPH_PRINT_DURATION   0x10
 
#define TRACE_GRAPH_PRINT_ABS_TIME   0x20
 
#define TRACE_GRAPH_PRINT_IRQS   0x40
 
#define TRACE_GRAPH_PROCINFO_LENGTH   14
 

Enumerations

enum  { DURATION_FILL_FULL = -1, DURATION_FILL_START = -2, DURATION_FILL_END = -3 }
 

Functions

int ftrace_push_return_trace (unsigned long ret, unsigned long func, int *depth, unsigned long frame_pointer)
 
unsigned long ftrace_return_to_handler (unsigned long frame_pointer)
 
int __trace_graph_entry (struct trace_array *tr, struct ftrace_graph_ent *trace, unsigned long flags, int pc)
 
int trace_graph_entry (struct ftrace_graph_ent *trace)
 
int trace_graph_thresh_entry (struct ftrace_graph_ent *trace)
 
void trace_graph_function (struct trace_array *tr, unsigned long ip, unsigned long parent_ip, unsigned long flags, int pc)
 
void __trace_graph_return (struct trace_array *tr, struct ftrace_graph_ret *trace, unsigned long flags, int pc)
 
void trace_graph_return (struct ftrace_graph_ret *trace)
 
void set_graph_array (struct trace_array *tr)
 
void trace_graph_thresh_return (struct ftrace_graph_ret *trace)
 
enum print_line_t trace_print_graph_duration (unsigned long long duration, struct trace_seq *s)
 
enum print_line_t print_graph_function_flags (struct trace_iterator *iter, u32 flags)
 
void print_graph_headers (struct seq_file *s)
 
void print_graph_headers_flags (struct seq_file *s, u32 flags)
 
void graph_trace_open (struct trace_iterator *iter)
 
void graph_trace_close (struct trace_iterator *iter)
 
 device_initcall (init_graph_trace)
 

Macro Definition Documentation

#define TRACE_GRAPH_INDENT   2

Definition at line 39 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_ABS_TIME   0x20

Definition at line 47 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_CPU   0x2

Definition at line 43 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_DURATION   0x10

Definition at line 46 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_IRQS   0x40

Definition at line 48 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_OVERHEAD   0x4

Definition at line 44 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_OVERRUN   0x1

Definition at line 42 of file trace_functions_graph.c.

#define TRACE_GRAPH_PRINT_PROC   0x8

Definition at line 45 of file trace_functions_graph.c.

#define TRACE_GRAPH_PROCINFO_LENGTH   14

Definition at line 415 of file trace_functions_graph.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DURATION_FILL_FULL 
DURATION_FILL_START 
DURATION_FILL_END 

Definition at line 82 of file trace_functions_graph.c.

Function Documentation

int __trace_graph_entry ( struct trace_array tr,
struct ftrace_graph_ent trace,
unsigned long  flags,
int  pc 
)

Definition at line 206 of file trace_functions_graph.c.

void __trace_graph_return ( struct trace_array tr,
struct ftrace_graph_ret trace,
unsigned long  flags,
int  pc 
)

Definition at line 310 of file trace_functions_graph.c.

device_initcall ( init_graph_trace  )
int ftrace_push_return_trace ( unsigned long  ret,
unsigned long  func,
int depth,
unsigned long  frame_pointer 
)

Definition at line 94 of file trace_functions_graph.c.

unsigned long ftrace_return_to_handler ( unsigned long  frame_pointer)

Definition at line 185 of file trace_functions_graph.c.

void graph_trace_close ( struct trace_iterator iter)

Definition at line 1410 of file trace_functions_graph.c.

void graph_trace_open ( struct trace_iterator iter)

Definition at line 1372 of file trace_functions_graph.c.

enum print_line_t print_graph_function_flags ( struct trace_iterator iter,
u32  flags 
)

Definition at line 1219 of file trace_functions_graph.c.

void print_graph_headers ( struct seq_file s)

Definition at line 1349 of file trace_functions_graph.c.

void print_graph_headers_flags ( struct seq_file s,
u32  flags 
)

Definition at line 1354 of file trace_functions_graph.c.

void set_graph_array ( struct trace_array tr)

Definition at line 354 of file trace_functions_graph.c.

int trace_graph_entry ( struct ftrace_graph_ent trace)

Definition at line 239 of file trace_functions_graph.c.

void trace_graph_function ( struct trace_array tr,
unsigned long  ip,
unsigned long  parent_ip,
unsigned long  flags,
int  pc 
)

Definition at line 303 of file trace_functions_graph.c.

void trace_graph_return ( struct ftrace_graph_ret trace)

Definition at line 333 of file trace_functions_graph.c.

int trace_graph_thresh_entry ( struct ftrace_graph_ent trace)

Definition at line 274 of file trace_functions_graph.c.

void trace_graph_thresh_return ( struct ftrace_graph_ret trace)

Definition at line 363 of file trace_functions_graph.c.

enum print_line_t trace_print_graph_duration ( unsigned long long  duration,
struct trace_seq s 
)

Definition at line 670 of file trace_functions_graph.c.