Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hists.c File Reference
#include <stdio.h>
#include "../libslang.h"
#include <stdlib.h>
#include <string.h>
#include <newt.h>
#include <linux/rbtree.h>
#include "../../util/evsel.h"
#include "../../util/evlist.h"
#include "../../util/hist.h"
#include "../../util/pstack.h"
#include "../../util/sort.h"
#include "../../util/util.h"
#include "../browser.h"
#include "../helpline.h"
#include "../util.h"
#include "../ui.h"
#include "map.h"

Go to the source code of this file.

Data Structures

struct  hist_browser
 
struct  perf_evsel_menu
 

Macros

#define LEVEL_OFFSET_STEP   3
 
#define HPP__COLOR_FN(_name, _field)
 

Functions

void hist_browser__init_hpp (void)
 
int perf_evlist__tui_browse_hists (struct perf_evlist *evlist, const char *help, void(*timer)(void *arg), void *arg, int delay_secs)
 

Macro Definition Documentation

#define HPP__COLOR_FN (   _name,
  _field 
)
Value:
static int hist_browser__hpp_color_ ## _name(struct perf_hpp *hpp, \
struct hist_entry *he) \
{ \
struct hists *hists = he->hists; \
double percent = 100.0 * he->stat._field / hists->stats.total_period; \
*(double *)hpp->ptr = percent; \
return scnprintf(hpp->buf, hpp->size, "%6.2f%%", percent); \
}

Definition at line 568 of file hists.c.

#define LEVEL_OFFSET_STEP   3

Definition at line 398 of file hists.c.

Function Documentation

void hist_browser__init_hpp ( void  )

Definition at line 586 of file hists.c.

int perf_evlist__tui_browse_hists ( struct perf_evlist evlist,
const char help,
void(*)(void *arg timer,
void arg,
int  delay_secs 
)

Definition at line 1585 of file hists.c.