Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
callchain.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <math.h>
#include "util.h"
#include "callchain.h"

Go to the source code of this file.

Macros

#define chain_for_each_child(child, parent)   list_for_each_entry(child, &parent->children, siblings)
 
#define chain_for_each_child_safe(child, next, parent)   list_for_each_entry_safe(child, next, &parent->children, siblings)
 

Functions

bool ip_callchain__valid (struct ip_callchain *chain, const union perf_event *event)
 
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)
 
int callchain_cursor_append (struct callchain_cursor *cursor, u64 ip, struct map *map, struct symbol *sym)
 

Variables

__thread struct callchain_cursor callchain_cursor
 

Macro Definition Documentation

#define chain_for_each_child (   child,
  parent 
)    list_for_each_entry(child, &parent->children, siblings)

Definition at line 31 of file callchain.c.

#define chain_for_each_child_safe (   child,
  next,
  parent 
)    list_for_each_entry_safe(child, next, &parent->children, siblings)

Definition at line 34 of file callchain.c.

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.