Linux Perf
browser.c File Reference
#include "../util.h"
#include "../string2.h"
#include "../config.h"
#include "../../perf.h"
#include "libslang.h"
#include "ui.h"
#include "util.h"
#include <linux/compiler.h>
#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/string.h>
#include <stdlib.h>
#include <sys/ttydefaults.h>
#include "browser.h"
#include "helpline.h"
#include "keysyms.h"
#include "../color.h"
#include "sane_ctype.h"
Include dependency graph for browser.c:

Go to the source code of this file.

Classes

struct  ui_browser_colorset
 

Functions

static int ui_browser__percent_color (struct ui_browser *browser, double percent, bool current)
 
int ui_browser__set_color (struct ui_browser *browser, int color)
 
void ui_browser__set_percent_color (struct ui_browser *browser, double percent, bool current)
 
void ui_browser__gotorc_title (struct ui_browser *browser, int y, int x)
 
void ui_browser__gotorc (struct ui_browser *browser, int y, int x)
 
void ui_browser__write_nstring (struct ui_browser *browser __maybe_unused, const char *msg, unsigned int width)
 
void ui_browser__vprintf (struct ui_browser *browser __maybe_unused, const char *fmt, va_list args)
 
void ui_browser__printf (struct ui_browser *browser __maybe_unused, const char *fmt,...)
 
static struct list_head * ui_browser__list_head_filter_entries (struct ui_browser *browser, struct list_head *pos)
 
static struct list_head * ui_browser__list_head_filter_prev_entries (struct ui_browser *browser, struct list_head *pos)
 
void ui_browser__list_head_seek (struct ui_browser *browser, off_t offset, int whence)
 
void ui_browser__rb_tree_seek (struct ui_browser *browser, off_t offset, int whence)
 
unsigned int ui_browser__rb_tree_refresh (struct ui_browser *browser)
 
bool ui_browser__is_current_entry (struct ui_browser *browser, unsigned row)
 
void ui_browser__refresh_dimensions (struct ui_browser *browser)
 
void ui_browser__handle_resize (struct ui_browser *browser)
 
int ui_browser__warning (struct ui_browser *browser, int timeout, const char *format,...)
 
int ui_browser__help_window (struct ui_browser *browser, const char *text)
 
bool ui_browser__dialog_yesno (struct ui_browser *browser, const char *text)
 
void ui_browser__reset_index (struct ui_browser *browser)
 
void __ui_browser__show_title (struct ui_browser *browser, const char *title)
 
void ui_browser__show_title (struct ui_browser *browser, const char *title)
 
int ui_browser__show (struct ui_browser *browser, const char *title, const char *helpline,...)
 
void ui_browser__hide (struct ui_browser *browser)
 
static void ui_browser__scrollbar_set (struct ui_browser *browser)
 
static int __ui_browser__refresh (struct ui_browser *browser)
 
int ui_browser__refresh (struct ui_browser *browser)
 
void ui_browser__update_nr_entries (struct ui_browser *browser, u32 nr_entries)
 
int ui_browser__run (struct ui_browser *browser, int delay_secs)
 
unsigned int ui_browser__list_head_refresh (struct ui_browser *browser)
 
static int ui_browser__color_config (const char *var, const char *value, void *data __maybe_unused)
 
void ui_browser__argv_seek (struct ui_browser *browser, off_t offset, int whence)
 
unsigned int ui_browser__argv_refresh (struct ui_browser *browser)
 
void __ui_browser__vline (struct ui_browser *browser, unsigned int column, u16 start, u16 end)
 
void ui_browser__write_graph (struct ui_browser *browser __maybe_unused, int graph)
 
static void __ui_browser__line_arrow_up (struct ui_browser *browser, unsigned int column, u64 start, u64 end)
 
static void __ui_browser__line_arrow_down (struct ui_browser *browser, unsigned int column, u64 start, u64 end)
 
void __ui_browser__line_arrow (struct ui_browser *browser, unsigned int column, u64 start, u64 end)
 
void ui_browser__mark_fused (struct ui_browser *browser, unsigned int column, unsigned int row, bool arrow_down)
 
void ui_browser__init (void)
 

Variables

static struct ui_browser_colorset ui_browser__colorsets []
 

Function Documentation

◆ __ui_browser__line_arrow()

void __ui_browser__line_arrow ( struct ui_browser browser,
unsigned int  column,
u64  start,
u64  end 
)

Definition at line 745 of file browser.c.

Here is the call graph for this function:

◆ __ui_browser__line_arrow_down()

static void __ui_browser__line_arrow_down ( struct ui_browser browser,
unsigned int  column,
u64  start,
u64  end 
)
static

Definition at line 705 of file browser.c.

Here is the call graph for this function:

◆ __ui_browser__line_arrow_up()

static void __ui_browser__line_arrow_up ( struct ui_browser browser,
unsigned int  column,
u64  start,
u64  end 
)
static

Definition at line 665 of file browser.c.

Here is the call graph for this function:

◆ __ui_browser__refresh()

static int __ui_browser__refresh ( struct ui_browser browser)
static

Definition at line 333 of file browser.c.

Here is the call graph for this function:

◆ __ui_browser__show_title()

void __ui_browser__show_title ( struct ui_browser browser,
const char *  title 
)

Definition at line 263 of file browser.c.

Here is the call graph for this function:

◆ __ui_browser__vline()

void __ui_browser__vline ( struct ui_browser browser,
unsigned int  column,
u16  start,
u16  end 
)

Definition at line 648 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__argv_refresh()

unsigned int ui_browser__argv_refresh ( struct ui_browser browser)

Definition at line 624 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__argv_seek()

void ui_browser__argv_seek ( struct ui_browser browser,
off_t  offset,
int  whence 
)

Definition at line 607 of file browser.c.

◆ ui_browser__color_config()

static int ui_browser__color_config ( const char *  var,
const char *  value,
void *data  __maybe_unused 
)
static

Definition at line 572 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__dialog_yesno()

bool ui_browser__dialog_yesno ( struct ui_browser browser,
const char *  text 
)

Definition at line 247 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__gotorc()

void ui_browser__gotorc ( struct ui_browser browser,
int  y,
int  x 
)

Definition at line 53 of file browser.c.

◆ ui_browser__gotorc_title()

void ui_browser__gotorc_title ( struct ui_browser browser,
int  y,
int  x 
)

Definition at line 48 of file browser.c.

◆ ui_browser__handle_resize()

void ui_browser__handle_resize ( struct ui_browser browser)

Definition at line 204 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__help_window()

int ui_browser__help_window ( struct ui_browser browser,
const char *  text 
)

Definition at line 237 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__hide()

void ui_browser__hide ( struct ui_browser browser)

Definition at line 303 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__init()

void ui_browser__init ( void  )

Definition at line 783 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__is_current_entry()

bool ui_browser__is_current_entry ( struct ui_browser browser,
unsigned  row 
)

Definition at line 190 of file browser.c.

◆ ui_browser__list_head_filter_entries()

static struct list_head* ui_browser__list_head_filter_entries ( struct ui_browser browser,
struct list_head *  pos 
)
static

Definition at line 79 of file browser.c.

◆ ui_browser__list_head_filter_prev_entries()

static struct list_head* ui_browser__list_head_filter_prev_entries ( struct ui_browser browser,
struct list_head *  pos 
)
static

Definition at line 92 of file browser.c.

◆ ui_browser__list_head_refresh()

unsigned int ui_browser__list_head_refresh ( struct ui_browser browser)

Definition at line 497 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__list_head_seek()

void ui_browser__list_head_seek ( struct ui_browser browser,
off_t  offset,
int  whence 
)

Definition at line 104 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__mark_fused()

void ui_browser__mark_fused ( struct ui_browser browser,
unsigned int  column,
unsigned int  row,
bool  arrow_down 
)

Definition at line 754 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__percent_color()

static int ui_browser__percent_color ( struct ui_browser browser,
double  percent,
bool  current 
)
static

Definition at line 21 of file browser.c.

◆ ui_browser__printf()

void ui_browser__printf ( struct ui_browser *browser  __maybe_unused,
const char *  fmt,
  ... 
)

Definition at line 69 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__rb_tree_refresh()

unsigned int ui_browser__rb_tree_refresh ( struct ui_browser browser)

Definition at line 169 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__rb_tree_seek()

void ui_browser__rb_tree_seek ( struct ui_browser browser,
off_t  offset,
int  whence 
)

Definition at line 139 of file browser.c.

◆ ui_browser__refresh()

int ui_browser__refresh ( struct ui_browser browser)

Definition at line 352 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__refresh_dimensions()

void ui_browser__refresh_dimensions ( struct ui_browser browser)

Definition at line 195 of file browser.c.

◆ ui_browser__reset_index()

void ui_browser__reset_index ( struct ui_browser browser)

Definition at line 257 of file browser.c.

◆ ui_browser__run()

int ui_browser__run ( struct ui_browser browser,
int  delay_secs 
)

Definition at line 385 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__scrollbar_set()

static void ui_browser__scrollbar_set ( struct ui_browser browser)
static

Definition at line 311 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__set_color()

int ui_browser__set_color ( struct ui_browser browser,
int  color 
)

Definition at line 33 of file browser.c.

◆ ui_browser__set_percent_color()

void ui_browser__set_percent_color ( struct ui_browser browser,
double  percent,
bool  current 
)

Definition at line 41 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__show()

int ui_browser__show ( struct ui_browser browser,
const char *  title,
const char *  helpline,
  ... 
)

Definition at line 277 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__show_title()

void ui_browser__show_title ( struct ui_browser browser,
const char *  title 
)

Definition at line 270 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__update_nr_entries()

void ui_browser__update_nr_entries ( struct ui_browser browser,
u32  nr_entries 
)

Definition at line 367 of file browser.c.

◆ ui_browser__vprintf()

void ui_browser__vprintf ( struct ui_browser *browser  __maybe_unused,
const char *  fmt,
va_list  args 
)

Definition at line 64 of file browser.c.

◆ ui_browser__warning()

int ui_browser__warning ( struct ui_browser browser,
int  timeout,
const char *  format,
  ... 
)

Definition at line 211 of file browser.c.

Here is the call graph for this function:

◆ ui_browser__write_graph()

void ui_browser__write_graph ( struct ui_browser *browser  __maybe_unused,
int  graph 
)

Definition at line 657 of file browser.c.

◆ ui_browser__write_nstring()

void ui_browser__write_nstring ( struct ui_browser *browser  __maybe_unused,
const char *  msg,
unsigned int  width 
)

Definition at line 58 of file browser.c.

Variable Documentation

◆ ui_browser__colorsets

struct ui_browser_colorset ui_browser__colorsets[]
static