Linux Perf
annotated_source Struct Reference

#include <annotate.h>

Collaboration diagram for annotated_source:
Collaboration graph

Public Attributes

struct list_head source
 
int nr_histograms
 
size_t sizeof_sym_hist
 
struct cyc_histcycles_hist
 
struct sym_histhistograms
 

Detailed Description

struct annotated_source - symbols with hits have this attached as in sannotation

: Array of addr hit histograms per event being monitored nr_histograms: This may not be the same as evsel->evlist->nr_entries if we have more than a group in a evlist, where we will want to see each group separately, that is why symbol__annotate2() sets src->nr_histograms to evsel->nr_members. : If 'print_lines' is specified, per source code line percentages : source parsed from a disassembler like objdump -dS : Average cycles per basic block

lines is allocated, percentages calculated and all sorted by percentage when the annotation is about to be presented, so the percentages are for one of the entries in the histogram array, i.e. for the event/counter being presented. It is deallocated right after symbol__{tui,tty,etc}_annotate returns.

Definition at line 228 of file annotate.h.

Member Data Documentation

◆ cycles_hist

struct cyc_hist* annotated_source::cycles_hist

Definition at line 232 of file annotate.h.

◆ histograms

struct sym_hist* annotated_source::histograms

Definition at line 233 of file annotate.h.

◆ nr_histograms

int annotated_source::nr_histograms

Definition at line 230 of file annotate.h.

◆ sizeof_sym_hist

size_t annotated_source::sizeof_sym_hist

Definition at line 231 of file annotate.h.

◆ source

struct list_head annotated_source::source

Definition at line 229 of file annotate.h.


The documentation for this struct was generated from the following file: