Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions | Variables
callchain.h File Reference
#include "../perf.h"
#include <linux/list.h>
#include <linux/rbtree.h>
#include "event.h"
#include "symbol.h"

Go to the source code of this file.

Data Structures

struct  callchain_node
 
struct  callchain_root
 
struct  callchain_param
 
struct  callchain_list
 
struct  callchain_cursor_node
 
struct  callchain_cursor
 

Typedefs

typedef void(* sort_chain_func_t )(struct rb_root *, struct callchain_root *, u64, struct callchain_param *)
 

Enumerations

enum  chain_mode { CHAIN_NONE, CHAIN_FLAT, CHAIN_GRAPH_ABS, CHAIN_GRAPH_REL }
 
enum  chain_order { ORDER_CALLER, ORDER_CALLEE }
 

Functions

int callchain_register_param (struct callchain_param *param)
 
int callchain_append (struct callchain_root *root, struct callchain_cursor *cursor, u64 period)
 
int callchain_merge (struct callchain_cursor *cursor, struct callchain_root *dst, struct callchain_root *src)
 
bool ip_callchain__valid (struct ip_callchain *chain, const union perf_event *event)
 
int callchain_cursor_append (struct callchain_cursor *cursor, u64 ip, struct map *map, struct symbol *sym)
 

Variables

__thread struct callchain_cursor callchain_cursor
 

Typedef Documentation

typedef void(* sort_chain_func_t)(struct rb_root *, struct callchain_root *, u64, struct callchain_param *)

Definition at line 41 of file callchain.h.

Enumeration Type Documentation

enum chain_mode
Enumerator:
CHAIN_NONE 
CHAIN_FLAT 
CHAIN_GRAPH_ABS 
CHAIN_GRAPH_REL 

Definition at line 10 of file callchain.h.

Enumerator:
ORDER_CALLER 
ORDER_CALLEE 

Definition at line 17 of file callchain.h.

Function Documentation

int callchain_append ( struct callchain_root root,
struct callchain_cursor cursor,
u64  period 
)

Definition at line 381 of file callchain.c.

int callchain_cursor_append ( struct callchain_cursor cursor,
u64  ip,
struct map map,
struct symbol sym 
)

Definition at line 441 of file callchain.c.

int callchain_merge ( struct callchain_cursor cursor,
struct callchain_root dst,
struct callchain_root src 
)

Definition at line 435 of file callchain.c.

int callchain_register_param ( struct callchain_param param)

Definition at line 149 of file callchain.c.

bool ip_callchain__valid ( struct ip_callchain chain,
const union perf_event event 
)

Definition at line 23 of file callchain.c.

Variable Documentation

Definition at line 21 of file callchain.c.