Linux Perf
builtin-annotate.c File Reference
#include "builtin.h"
#include "util/util.h"
#include "util/color.h"
#include <linux/list.h>
#include "util/cache.h"
#include <linux/rbtree.h>
#include "util/symbol.h"
#include "perf.h"
#include "util/debug.h"
#include "util/evlist.h"
#include "util/evsel.h"
#include "util/annotate.h"
#include "util/event.h"
#include <subcmd/parse-options.h>
#include "util/parse-events.h"
#include "util/thread.h"
#include "util/sort.h"
#include "util/hist.h"
#include "util/session.h"
#include "util/tool.h"
#include "util/data.h"
#include "arch/common.h"
#include "util/block-range.h"
#include <dlfcn.h>
#include <errno.h>
#include <linux/bitmap.h>
Include dependency graph for builtin-annotate.c:

Go to the source code of this file.

Classes

struct  perf_annotate
 

Functions

static void process_basic_block (struct addr_map_symbol *start, struct addr_map_symbol *end, struct branch_flags *flags)
 
static void process_branch_stack (struct branch_stack *bs, struct addr_location *al, struct perf_sample *sample)
 
static int hist_iter__branch_callback (struct hist_entry_iter *iter, struct addr_location *al __maybe_unused, bool single __maybe_unused, void *arg __maybe_unused)
 
static int process_branch_callback (struct perf_evsel *evsel, struct perf_sample *sample, struct addr_location *al __maybe_unused, struct perf_annotate *ann, struct machine *machine)
 
static bool has_annotation (struct perf_annotate *ann)
 
static int perf_evsel__add_sample (struct perf_evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct perf_annotate *ann, struct machine *machine)
 
static int process_sample_event (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine)
 
static int hist_entry__tty_annotate (struct hist_entry *he, struct perf_evsel *evsel, struct perf_annotate *ann)
 
static void hists__find_annotations (struct hists *hists, struct perf_evsel *evsel, struct perf_annotate *ann)
 
static int __cmd_annotate (struct perf_annotate *ann)
 
int cmd_annotate (int argc, const char **argv)
 

Variables

static const char *const annotate_usage []
 

Function Documentation

◆ __cmd_annotate()

static int __cmd_annotate ( struct perf_annotate ann)
static

Definition at line 377 of file builtin-annotate.c.

Here is the call graph for this function:

◆ cmd_annotate()

int cmd_annotate ( int  argc,
const char **  argv 
)

Definition at line 460 of file builtin-annotate.c.

Here is the call graph for this function:

◆ has_annotation()

static bool has_annotation ( struct perf_annotate ann)
static

Definition at line 205 of file builtin-annotate.c.

Here is the call graph for this function:

◆ hist_entry__tty_annotate()

static int hist_entry__tty_annotate ( struct hist_entry he,
struct perf_evsel evsel,
struct perf_annotate ann 
)
static

Definition at line 286 of file builtin-annotate.c.

Here is the call graph for this function:

◆ hist_iter__branch_callback()

static int hist_iter__branch_callback ( struct hist_entry_iter iter,
struct addr_location *al  __maybe_unused,
bool single  __maybe_unused,
void *arg  __maybe_unused 
)
static

Definition at line 150 of file builtin-annotate.c.

Here is the call graph for this function:

◆ hists__find_annotations()

static void hists__find_annotations ( struct hists hists,
struct perf_evsel evsel,
struct perf_annotate ann 
)
static

Definition at line 296 of file builtin-annotate.c.

Here is the call graph for this function:

◆ perf_evsel__add_sample()

static int perf_evsel__add_sample ( struct perf_evsel evsel,
struct perf_sample sample,
struct addr_location al,
struct perf_annotate ann,
struct machine machine 
)
static

Definition at line 210 of file builtin-annotate.c.

Here is the call graph for this function:

◆ process_basic_block()

static void process_basic_block ( struct addr_map_symbol start,
struct addr_map_symbol end,
struct branch_flags flags 
)
static

Definition at line 77 of file builtin-annotate.c.

Here is the call graph for this function:

◆ process_branch_callback()

static int process_branch_callback ( struct perf_evsel evsel,
struct perf_sample sample,
struct addr_location *al  __maybe_unused,
struct perf_annotate ann,
struct machine machine 
)
static

Definition at line 175 of file builtin-annotate.c.

Here is the call graph for this function:

◆ process_branch_stack()

static void process_branch_stack ( struct branch_stack bs,
struct addr_location al,
struct perf_sample sample 
)
static

Definition at line 124 of file builtin-annotate.c.

Here is the call graph for this function:

◆ process_sample_event()

static int process_sample_event ( struct perf_tool tool,
union perf_event event,
struct perf_sample sample,
struct perf_evsel evsel,
struct machine machine 
)
static

Definition at line 256 of file builtin-annotate.c.

Here is the call graph for this function:

Variable Documentation

◆ annotate_usage

const char* const annotate_usage[]
static
Initial value:
= {
"perf annotate [<options>]",
NULL
}

Definition at line 455 of file builtin-annotate.c.