Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hist.c File Reference
#include <math.h>
#include "../util/hist.h"
#include "../util/util.h"
#include "../util/sort.h"

Go to the source code of this file.

Macros

#define HPP__COLOR_PRINT_FNS(_name)
 
#define HPP__PRINT_FNS(_name)
 

Functions

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)
 
int hist_entry__sort_snprintf (struct hist_entry *he, char *s, size_t size, struct hists *hists)
 
unsigned int hists__sort_list_width (struct hists *hists)
 

Variables

struct perf_hpp_fmt perf_hpp__format []
 

Macro Definition Documentation

#define HPP__COLOR_PRINT_FNS (   _name)
Value:
.header = hpp__header_ ## _name, \
.width = hpp__width_ ## _name, \
.color = hpp__color_ ## _name, \
.entry = hpp__entry_ ## _name

Definition at line 293 of file hist.c.

#define HPP__PRINT_FNS (   _name)
Value:
.header = hpp__header_ ## _name, \
.width = hpp__width_ ## _name, \
.entry = hpp__entry_ ## _name

Definition at line 299 of file hist.c.

Function Documentation

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 he,
char s,
size_t  size,
struct hists hists 
)

Definition at line 383 of file hist.c.

unsigned int hists__sort_list_width ( struct hists hists)

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

struct perf_hpp_fmt perf_hpp__format[]
Initial value:
= {
{ .cond = false, HPP__COLOR_PRINT_FNS(baseline) },
{ .cond = true, HPP__COLOR_PRINT_FNS(overhead) },
{ .cond = false, HPP__COLOR_PRINT_FNS(overhead_sys) },
{ .cond = false, HPP__COLOR_PRINT_FNS(overhead_us) },
{ .cond = false, HPP__COLOR_PRINT_FNS(overhead_guest_sys) },
{ .cond = false, HPP__COLOR_PRINT_FNS(overhead_guest_us) },
{ .cond = false, HPP__PRINT_FNS(samples) },
{ .cond = false, HPP__PRINT_FNS(period) },
{ .cond = false, HPP__PRINT_FNS(delta) },
{ .cond = false, HPP__PRINT_FNS(displ) }
}

Definition at line 304 of file hist.c.