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

Go to the source code of this file.

Data Structures

struct  events_stats
 
struct  hists
 
struct  perf_hpp
 
struct  perf_hpp_fmt
 

Macros

#define K_LEFT   -1
 
#define K_RIGHT   -2
 

Enumerations

enum  hist_column {
  HISTC_SYMBOL, HISTC_DSO, HISTC_THREAD, HISTC_COMM,
  HISTC_PARENT, HISTC_CPU, HISTC_MISPREDICT, HISTC_SYMBOL_FROM,
  HISTC_SYMBOL_TO, HISTC_DSO_FROM, HISTC_DSO_TO, HISTC_SRCLINE,
  HISTC_NR_COLS
}
 
enum  {
  PERF_HPP__BASELINE, PERF_HPP__OVERHEAD, PERF_HPP__OVERHEAD_SYS, PERF_HPP__OVERHEAD_US,
  PERF_HPP__OVERHEAD_GUEST_SYS, PERF_HPP__OVERHEAD_GUEST_US, PERF_HPP__SAMPLES, PERF_HPP__PERIOD,
  PERF_HPP__DELTA, PERF_HPP__DISPL, PERF_HPP__MAX_INDEX
}
 

Functions

struct hist_entry__hists__add_entry (struct hists *self, struct addr_location *al, struct symbol *parent, u64 period)
 
int64_t hist_entry__cmp (struct hist_entry *left, struct hist_entry *right)
 
int64_t hist_entry__collapse (struct hist_entry *left, struct hist_entry *right)
 
int hist_entry__sort_snprintf (struct hist_entry *self, char *bf, size_t size, struct hists *hists)
 
void hist_entry__free (struct hist_entry *)
 
struct hist_entry__hists__add_branch_entry (struct hists *self, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, u64 period)
 
void hists__output_resort (struct hists *self)
 
void hists__output_resort_threaded (struct hists *hists)
 
void hists__collapse_resort (struct hists *self)
 
void hists__collapse_resort_threaded (struct hists *hists)
 
void hists__decay_entries (struct hists *hists, bool zap_user, bool zap_kernel)
 
void hists__decay_entries_threaded (struct hists *hists, bool zap_user, bool zap_kernel)
 
void hists__output_recalc_col_len (struct hists *hists, int max_rows)
 
void hists__inc_nr_events (struct hists *self, u32 type)
 
size_t hists__fprintf_nr_events (struct hists *self, FILE *fp)
 
size_t hists__fprintf (struct hists *self, bool show_header, int max_rows, int max_cols, FILE *fp)
 
int hist_entry__inc_addr_samples (struct hist_entry *self, int evidx, u64 addr)
 
int hist_entry__annotate (struct hist_entry *self, size_t privsize)
 
void hists__filter_by_dso (struct hists *hists)
 
void hists__filter_by_thread (struct hists *hists)
 
void hists__filter_by_symbol (struct hists *hists)
 
u16 hists__col_len (struct hists *self, enum hist_column col)
 
void hists__set_col_len (struct hists *self, enum hist_column col, u16 len)
 
bool hists__new_col_len (struct hists *self, enum hist_column col, u16 len)
 
void hists__reset_col_len (struct hists *hists)
 
void hists__calc_col_len (struct hists *hists, struct hist_entry *he)
 
void perf_hpp__init (void)
 
void perf_hpp__column_enable (unsigned col, bool enable)
 
int hist_entry__period_snprintf (struct perf_hpp *hpp, struct hist_entry *he, bool color)
 
unsigned int hists__sort_list_width (struct hists *self)
 

Variables

struct callchain_param callchain_param
 
struct perf_hpp_fmt perf_hpp__format []
 

Macro Definition Documentation

#define K_LEFT   -1

Definition at line 185 of file hist.h.

#define K_RIGHT   -2

Definition at line 186 of file hist.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
PERF_HPP__BASELINE 
PERF_HPP__OVERHEAD 
PERF_HPP__OVERHEAD_SYS 
PERF_HPP__OVERHEAD_US 
PERF_HPP__OVERHEAD_GUEST_SYS 
PERF_HPP__OVERHEAD_GUEST_US 
PERF_HPP__SAMPLES 
PERF_HPP__PERIOD 
PERF_HPP__DELTA 
PERF_HPP__DISPL 
PERF_HPP__MAX_INDEX 

Definition at line 134 of file hist.h.

Enumerator:
HISTC_SYMBOL 
HISTC_DSO 
HISTC_THREAD 
HISTC_COMM 
HISTC_PARENT 
HISTC_CPU 
HISTC_MISPREDICT 
HISTC_SYMBOL_FROM 
HISTC_SYMBOL_TO 
HISTC_DSO_FROM 
HISTC_DSO_TO 
HISTC_SRCLINE 
HISTC_NR_COLS 

Definition at line 38 of file hist.h.

Function Documentation

struct hist_entry* __hists__add_branch_entry ( struct hists self,
struct addr_location al,
struct symbol sym_parent,
struct branch_info bi,
u64  period 
)
read

Definition at line 324 of file hist.c.

struct hist_entry* __hists__add_entry ( struct hists self,
struct addr_location al,
struct symbol parent,
u64  period 
)
read

Definition at line 352 of file hist.c.

int hist_entry__annotate ( struct hist_entry self,
size_t  privsize 
)

Definition at line 706 of file hist.c.

int64_t hist_entry__cmp ( struct hist_entry left,
struct hist_entry right 
)

Definition at line 378 of file hist.c.

int64_t hist_entry__collapse ( struct hist_entry left,
struct hist_entry right 
)

Definition at line 393 of file hist.c.

void hist_entry__free ( struct hist_entry )

Definition at line 411 of file hist.c.

int hist_entry__inc_addr_samples ( struct hist_entry self,
int  evidx,
u64  addr 
)

Definition at line 701 of file hist.c.

int hist_entry__period_snprintf ( struct perf_hpp hpp,
struct hist_entry he,
bool  color 
)

Definition at line 351 of file hist.c.

int hist_entry__sort_snprintf ( struct hist_entry self,
char bf,
size_t  size,
struct hists hists 
)

Definition at line 383 of file hist.c.

void hists__calc_col_len ( struct hists hists,
struct hist_entry he 
)

Definition at line 66 of file hist.c.

u16 hists__col_len ( struct hists self,
enum hist_column  col 
)

Definition at line 29 of file hist.c.

void hists__collapse_resort ( struct hists self)

Definition at line 509 of file hist.c.

void hists__collapse_resort_threaded ( struct hists hists)

Definition at line 514 of file hist.c.

void hists__decay_entries ( struct hists hists,
bool  zap_user,
bool  zap_kernel 
)

Definition at line 220 of file hist.c.

void hists__decay_entries_threaded ( struct hists hists,
bool  zap_user,
bool  zap_kernel 
)

Definition at line 225 of file hist.c.

void hists__filter_by_dso ( struct hists hists)

Definition at line 619 of file hist.c.

void hists__filter_by_symbol ( struct hists hists)

Definition at line 683 of file hist.c.

void hists__filter_by_thread ( struct hists hists)

Definition at line 652 of file hist.c.

size_t hists__fprintf ( struct hists self,
bool  show_header,
int  max_rows,
int  max_cols,
FILE *  fp 
)

Definition at line 335 of file hist.c.

size_t hists__fprintf_nr_events ( struct hists self,
FILE *  fp 
)

Definition at line 465 of file hist.c.

void hists__inc_nr_events ( struct hists self,
u32  type 
)

Definition at line 711 of file hist.c.

bool hists__new_col_len ( struct hists self,
enum hist_column  col,
u16  len 
)

Definition at line 39 of file hist.c.

void hists__output_recalc_col_len ( struct hists hists,
int  max_rows 
)

Definition at line 117 of file hist.c.

void hists__output_resort ( struct hists self)

Definition at line 579 of file hist.c.

void hists__output_resort_threaded ( struct hists hists)

Definition at line 584 of file hist.c.

void hists__reset_col_len ( struct hists hists)

Definition at line 48 of file hist.c.

void hists__set_col_len ( struct hists self,
enum hist_column  col,
u16  len 
)

Definition at line 34 of file hist.c.

unsigned int hists__sort_list_width ( struct hists self)

Definition at line 405 of file hist.c.

void perf_hpp__column_enable ( unsigned  col,
bool  enable 
)

Definition at line 339 of file hist.c.

void perf_hpp__init ( void  )

Definition at line 320 of file hist.c.

Variable Documentation

Definition at line 23 of file hist.c.

struct perf_hpp_fmt perf_hpp__format[]

Definition at line 304 of file hist.c.