Linux Perf
annotate.c File Reference
#include "gtk.h"
#include "util/debug.h"
#include "util/annotate.h"
#include "util/evsel.h"
#include "ui/helpline.h"
#include <inttypes.h>
#include <signal.h>
Include dependency graph for annotate.c:

Go to the source code of this file.

Enumerations

enum  { ANN_COL__PERCENT, ANN_COL__OFFSET, ANN_COL__LINE, MAX_ANN_COLS }
 

Functions

static int perf_gtk__get_percent (char *buf, size_t size, struct symbol *sym, struct disasm_line *dl, int evidx)
 
static int perf_gtk__get_offset (char *buf, size_t size, struct symbol *sym, struct map *map, struct disasm_line *dl)
 
static int perf_gtk__get_line (char *buf, size_t size, struct disasm_line *dl)
 
static int perf_gtk__annotate_symbol (GtkWidget *window, struct symbol *sym, struct map *map, struct perf_evsel *evsel, struct hist_browser_timer *hbt __maybe_unused)
 
static int symbol__gtk_annotate (struct symbol *sym, struct map *map, struct perf_evsel *evsel, struct hist_browser_timer *hbt)
 
int hist_entry__gtk_annotate (struct hist_entry *he, struct perf_evsel *evsel, struct hist_browser_timer *hbt)
 
void perf_gtk__show_annotations (void)
 

Variables

static const char *const col_names []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ANN_COL__PERCENT 
ANN_COL__OFFSET 
ANN_COL__LINE 
MAX_ANN_COLS 

Definition at line 10 of file annotate.c.

Function Documentation

◆ hist_entry__gtk_annotate()

int hist_entry__gtk_annotate ( struct hist_entry he,
struct perf_evsel evsel,
struct hist_browser_timer hbt 
)

Definition at line 237 of file annotate.c.

Here is the call graph for this function:

◆ perf_gtk__annotate_symbol()

static int perf_gtk__annotate_symbol ( GtkWidget *  window,
struct symbol sym,
struct map map,
struct perf_evsel evsel,
struct hist_browser_timer *hbt  __maybe_unused 
)
static

Definition at line 90 of file annotate.c.

Here is the call graph for this function:

◆ perf_gtk__get_line()

static int perf_gtk__get_line ( char *  buf,
size_t  size,
struct disasm_line dl 
)
static

Definition at line 66 of file annotate.c.

◆ perf_gtk__get_offset()

static int perf_gtk__get_offset ( char *  buf,
size_t  size,
struct symbol sym,
struct map map,
struct disasm_line dl 
)
static

Definition at line 53 of file annotate.c.

Here is the call graph for this function:

◆ perf_gtk__get_percent()

static int perf_gtk__get_percent ( char *  buf,
size_t  size,
struct symbol sym,
struct disasm_line dl,
int  evidx 
)
static

Definition at line 24 of file annotate.c.

Here is the call graph for this function:

◆ perf_gtk__show_annotations()

void perf_gtk__show_annotations ( void  )

Definition at line 244 of file annotate.c.

Here is the call graph for this function:

◆ symbol__gtk_annotate()

static int symbol__gtk_annotate ( struct symbol sym,
struct map map,
struct perf_evsel evsel,
struct hist_browser_timer hbt 
)
static

Definition at line 159 of file annotate.c.

Here is the call graph for this function:

Variable Documentation

◆ col_names

const char* const col_names[]
static
Initial value:
= {
"Overhead",
"Offset",
"Line"
}

Definition at line 18 of file annotate.c.