Linux Perf
evlist.c File Reference
#include "util.h"
#include <api/fs/fs.h>
#include <errno.h>
#include <inttypes.h>
#include <poll.h>
#include "cpumap.h"
#include "thread_map.h"
#include "target.h"
#include "evlist.h"
#include "evsel.h"
#include "debug.h"
#include "units.h"
#include "asm/bug.h"
#include <signal.h>
#include <unistd.h>
#include "parse-events.h"
#include <subcmd/parse-options.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/bitops.h>
#include <linux/hash.h>
#include <linux/log2.h>
#include <linux/err.h>
Include dependency graph for evlist.c:

Go to the source code of this file.

Macros

#define FD(e, x, y)   (*(int *)xyarray__entry(e->fd, x, y))
 
#define SID(e, x, y)   xyarray__entry(e->sample_id, x, y)
 

Functions

void perf_evlist__init (struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads)
 
struct perf_evlistperf_evlist__new (void)
 
struct perf_evlistperf_evlist__new_default (void)
 
struct perf_evlistperf_evlist__new_dummy (void)
 
void perf_evlist__set_id_pos (struct perf_evlist *evlist)
 
static void perf_evlist__update_id_pos (struct perf_evlist *evlist)
 
static void perf_evlist__purge (struct perf_evlist *evlist)
 
void perf_evlist__exit (struct perf_evlist *evlist)
 
void perf_evlist__delete (struct perf_evlist *evlist)
 
static void __perf_evlist__propagate_maps (struct perf_evlist *evlist, struct perf_evsel *evsel)
 
static void perf_evlist__propagate_maps (struct perf_evlist *evlist)
 
void perf_evlist__add (struct perf_evlist *evlist, struct perf_evsel *entry)
 
void perf_evlist__remove (struct perf_evlist *evlist, struct perf_evsel *evsel)
 
void perf_evlist__splice_list_tail (struct perf_evlist *evlist, struct list_head *list)
 
void __perf_evlist__set_leader (struct list_head *list)
 
void perf_evlist__set_leader (struct perf_evlist *evlist)
 
void perf_event_attr__set_max_precise_ip (struct perf_event_attr *attr)
 
int __perf_evlist__add_default (struct perf_evlist *evlist, bool precise)
 
int perf_evlist__add_dummy (struct perf_evlist *evlist)
 
static int perf_evlist__add_attrs (struct perf_evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs)
 
int __perf_evlist__add_default_attrs (struct perf_evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs)
 
struct perf_evselperf_evlist__find_tracepoint_by_id (struct perf_evlist *evlist, int id)
 
struct perf_evselperf_evlist__find_tracepoint_by_name (struct perf_evlist *evlist, const char *name)
 
int perf_evlist__add_newtp (struct perf_evlist *evlist, const char *sys, const char *name, void *handler)
 
static int perf_evlist__nr_threads (struct perf_evlist *evlist, struct perf_evsel *evsel)
 
void perf_evlist__disable (struct perf_evlist *evlist)
 
void perf_evlist__enable (struct perf_evlist *evlist)
 
void perf_evlist__toggle_enable (struct perf_evlist *evlist)
 
static int perf_evlist__enable_event_cpu (struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu)
 
static int perf_evlist__enable_event_thread (struct perf_evlist *evlist, struct perf_evsel *evsel, int thread)
 
int perf_evlist__enable_event_idx (struct perf_evlist *evlist, struct perf_evsel *evsel, int idx)
 
int perf_evlist__alloc_pollfd (struct perf_evlist *evlist)
 
static int __perf_evlist__add_pollfd (struct perf_evlist *evlist, int fd, struct perf_mmap *map, short revent)
 
int perf_evlist__add_pollfd (struct perf_evlist *evlist, int fd)
 
static void perf_evlist__munmap_filtered (struct fdarray *fda, int fd, void *arg __maybe_unused)
 
int perf_evlist__filter_pollfd (struct perf_evlist *evlist, short revents_and_mask)
 
int perf_evlist__poll (struct perf_evlist *evlist, int timeout)
 
static void perf_evlist__id_hash (struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, u64 id)
 
void perf_evlist__id_add (struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, u64 id)
 
int perf_evlist__id_add_fd (struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, int fd)
 
static void perf_evlist__set_sid_idx (struct perf_evlist *evlist, struct perf_evsel *evsel, int idx, int cpu, int thread)
 
struct perf_sample_idperf_evlist__id2sid (struct perf_evlist *evlist, u64 id)
 
struct perf_evselperf_evlist__id2evsel (struct perf_evlist *evlist, u64 id)
 
struct perf_evselperf_evlist__id2evsel_strict (struct perf_evlist *evlist, u64 id)
 
static int perf_evlist__event2id (struct perf_evlist *evlist, union perf_event *event, u64 *id)
 
struct perf_evselperf_evlist__event2evsel (struct perf_evlist *evlist, union perf_event *event)
 
static int perf_evlist__set_paused (struct perf_evlist *evlist, bool value)
 
static int perf_evlist__pause (struct perf_evlist *evlist)
 
static int perf_evlist__resume (struct perf_evlist *evlist)
 
static void perf_evlist__munmap_nofree (struct perf_evlist *evlist)
 
void perf_evlist__munmap (struct perf_evlist *evlist)
 
static struct perf_mmapperf_evlist__alloc_mmap (struct perf_evlist *evlist, bool overwrite)
 
static bool perf_evlist__should_poll (struct perf_evlist *evlist __maybe_unused, struct perf_evsel *evsel)
 
static int perf_evlist__mmap_per_evsel (struct perf_evlist *evlist, int idx, struct mmap_params *mp, int cpu_idx, int thread, int *_output, int *_output_overwrite)
 
static int perf_evlist__mmap_per_cpu (struct perf_evlist *evlist, struct mmap_params *mp)
 
static int perf_evlist__mmap_per_thread (struct perf_evlist *evlist, struct mmap_params *mp)
 
unsigned long perf_event_mlock_kb_in_pages (void)
 
size_t perf_evlist__mmap_size (unsigned long pages)
 
static long parse_pages_arg (const char *str, unsigned long min, unsigned long max)
 
int __perf_evlist__parse_mmap_pages (unsigned int *mmap_pages, const char *str)
 
int perf_evlist__parse_mmap_pages (const struct option *opt, const char *str, int unset __maybe_unused)
 
int perf_evlist__mmap_ex (struct perf_evlist *evlist, unsigned int pages, unsigned int auxtrace_pages, bool auxtrace_overwrite)
 
int perf_evlist__mmap (struct perf_evlist *evlist, unsigned int pages)
 
int perf_evlist__create_maps (struct perf_evlist *evlist, struct target *target)
 
void perf_evlist__set_maps (struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads)
 
void __perf_evlist__set_sample_bit (struct perf_evlist *evlist, enum perf_event_sample_format bit)
 
void __perf_evlist__reset_sample_bit (struct perf_evlist *evlist, enum perf_event_sample_format bit)
 
int perf_evlist__apply_filters (struct perf_evlist *evlist, struct perf_evsel **err_evsel)
 
int perf_evlist__set_filter (struct perf_evlist *evlist, const char *filter)
 
int perf_evlist__set_filter_pids (struct perf_evlist *evlist, size_t npids, pid_t *pids)
 
int perf_evlist__set_filter_pid (struct perf_evlist *evlist, pid_t pid)
 
bool perf_evlist__valid_sample_type (struct perf_evlist *evlist)
 
u64 __perf_evlist__combined_sample_type (struct perf_evlist *evlist)
 
u64 perf_evlist__combined_sample_type (struct perf_evlist *evlist)
 
u64 perf_evlist__combined_branch_type (struct perf_evlist *evlist)
 
bool perf_evlist__valid_read_format (struct perf_evlist *evlist)
 
u64 perf_evlist__read_format (struct perf_evlist *evlist)
 
u16 perf_evlist__id_hdr_size (struct perf_evlist *evlist)
 
bool perf_evlist__valid_sample_id_all (struct perf_evlist *evlist)
 
bool perf_evlist__sample_id_all (struct perf_evlist *evlist)
 
void perf_evlist__set_selected (struct perf_evlist *evlist, struct perf_evsel *evsel)
 
void perf_evlist__close (struct perf_evlist *evlist)
 
static int perf_evlist__create_syswide_maps (struct perf_evlist *evlist)
 
int perf_evlist__open (struct perf_evlist *evlist)
 
int perf_evlist__prepare_workload (struct perf_evlist *evlist, struct target *target, const char *argv[], bool pipe_output, void(*exec_error)(int signo, siginfo_t *info, void *ucontext))
 
int perf_evlist__start_workload (struct perf_evlist *evlist)
 
int perf_evlist__parse_sample (struct perf_evlist *evlist, union perf_event *event, struct perf_sample *sample)
 
int perf_evlist__parse_sample_timestamp (struct perf_evlist *evlist, union perf_event *event, u64 *timestamp)
 
size_t perf_evlist__fprintf (struct perf_evlist *evlist, FILE *fp)
 
int perf_evlist__strerror_open (struct perf_evlist *evlist, int err, char *buf, size_t size)
 
int perf_evlist__strerror_mmap (struct perf_evlist *evlist, int err, char *buf, size_t size)
 
void perf_evlist__to_front (struct perf_evlist *evlist, struct perf_evsel *move_evsel)
 
void perf_evlist__set_tracking_event (struct perf_evlist *evlist, struct perf_evsel *tracking_evsel)
 
struct perf_evselperf_evlist__find_evsel_by_str (struct perf_evlist *evlist, const char *str)
 
void perf_evlist__toggle_bkw_mmap (struct perf_evlist *evlist, enum bkw_mmap_state state)
 
bool perf_evlist__exclude_kernel (struct perf_evlist *evlist)
 
void perf_evlist__force_leader (struct perf_evlist *evlist)
 

Macro Definition Documentation

◆ FD

#define FD (   e,
  x,
 
)    (*(int *)xyarray__entry(e->fd, x, y))

Definition at line 37 of file evlist.c.

◆ SID

#define SID (   e,
  x,
 
)    xyarray__entry(e->sample_id, x, y)

Definition at line 38 of file evlist.c.

Function Documentation

◆ __perf_evlist__add_default()

int __perf_evlist__add_default ( struct perf_evlist evlist,
bool  precise 
)

Definition at line 243 of file evlist.c.

Here is the call graph for this function:

◆ __perf_evlist__add_default_attrs()

int __perf_evlist__add_default_attrs ( struct perf_evlist evlist,
struct perf_event_attr *  attrs,
size_t  nr_attrs 
)

Definition at line 294 of file evlist.c.

Here is the call graph for this function:

◆ __perf_evlist__add_pollfd()

static int __perf_evlist__add_pollfd ( struct perf_evlist evlist,
int  fd,
struct perf_mmap map,
short  revent 
)
static

Definition at line 454 of file evlist.c.

◆ __perf_evlist__combined_sample_type()

u64 __perf_evlist__combined_sample_type ( struct perf_evlist evlist)

Definition at line 1247 of file evlist.c.

◆ __perf_evlist__parse_mmap_pages()

int __perf_evlist__parse_mmap_pages ( unsigned int *  mmap_pages,
const char *  str 
)

Definition at line 978 of file evlist.c.

Here is the call graph for this function:

◆ __perf_evlist__propagate_maps()

static void __perf_evlist__propagate_maps ( struct perf_evlist evlist,
struct perf_evsel evsel 
)
static

Definition at line 149 of file evlist.c.

Here is the call graph for this function:

◆ __perf_evlist__reset_sample_bit()

void __perf_evlist__reset_sample_bit ( struct perf_evlist evlist,
enum perf_event_sample_format  bit 
)

Definition at line 1147 of file evlist.c.

Here is the call graph for this function:

◆ __perf_evlist__set_leader()

void __perf_evlist__set_leader ( struct list_head *  list)

Definition at line 207 of file evlist.c.

◆ __perf_evlist__set_sample_bit()

void __perf_evlist__set_sample_bit ( struct perf_evlist evlist,
enum perf_event_sample_format  bit 
)

Definition at line 1138 of file evlist.c.

Here is the call graph for this function:

◆ parse_pages_arg()

static long parse_pages_arg ( const char *  str,
unsigned long  min,
unsigned long  max 
)
static

Definition at line 930 of file evlist.c.

Here is the call graph for this function:

◆ perf_event_attr__set_max_precise_ip()

void perf_event_attr__set_max_precise_ip ( struct perf_event_attr *  attr)

Definition at line 229 of file evlist.c.

Here is the call graph for this function:

◆ perf_event_mlock_kb_in_pages()

unsigned long perf_event_mlock_kb_in_pages ( void  )

Definition at line 897 of file evlist.c.

◆ perf_evlist__add()

void perf_evlist__add ( struct perf_evlist evlist,
struct perf_evsel entry 
)

Definition at line 176 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__add_attrs()

static int perf_evlist__add_attrs ( struct perf_evlist evlist,
struct perf_event_attr *  attrs,
size_t  nr_attrs 
)
static

Definition at line 270 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__add_dummy()

int perf_evlist__add_dummy ( struct perf_evlist evlist)

Definition at line 254 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__add_newtp()

int perf_evlist__add_newtp ( struct perf_evlist evlist,
const char *  sys,
const char *  name,
void *  handler 
)

Definition at line 334 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__add_pollfd()

int perf_evlist__add_pollfd ( struct perf_evlist evlist,
int  fd 
)

Definition at line 471 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__alloc_mmap()

static struct perf_mmap* perf_evlist__alloc_mmap ( struct perf_evlist evlist,
bool  overwrite 
)
static

Definition at line 725 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__alloc_pollfd()

int perf_evlist__alloc_pollfd ( struct perf_evlist evlist)

Definition at line 433 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__apply_filters()

int perf_evlist__apply_filters ( struct perf_evlist evlist,
struct perf_evsel **  err_evsel 
)

Definition at line 1156 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__close()

void perf_evlist__close ( struct perf_evlist evlist)

Definition at line 1359 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__combined_branch_type()

u64 perf_evlist__combined_branch_type ( struct perf_evlist evlist)

Definition at line 1266 of file evlist.c.

◆ perf_evlist__combined_sample_type()

u64 perf_evlist__combined_sample_type ( struct perf_evlist evlist)

Definition at line 1260 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__create_maps()

int perf_evlist__create_maps ( struct perf_evlist evlist,
struct target target 
)

Definition at line 1066 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__create_syswide_maps()

static int perf_evlist__create_syswide_maps ( struct perf_evlist evlist)
static

Definition at line 1367 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__delete()

void perf_evlist__delete ( struct perf_evlist evlist)

Definition at line 133 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__disable()

void perf_evlist__disable ( struct perf_evlist evlist)

Definition at line 356 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__enable()

void perf_evlist__enable ( struct perf_evlist evlist)

Definition at line 369 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__enable_event_cpu()

static int perf_evlist__enable_event_cpu ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  cpu 
)
static

Definition at line 387 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__enable_event_idx()

int perf_evlist__enable_event_idx ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  idx 
)

Definition at line 422 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__enable_event_thread()

static int perf_evlist__enable_event_thread ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  thread 
)
static

Definition at line 404 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__event2evsel()

struct perf_evsel* perf_evlist__event2evsel ( struct perf_evlist evlist,
union perf_event event 
)

Definition at line 642 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__event2id()

static int perf_evlist__event2id ( struct perf_evlist evlist,
union perf_event event,
u64 *  id 
)
static

Definition at line 621 of file evlist.c.

◆ perf_evlist__exclude_kernel()

bool perf_evlist__exclude_kernel ( struct perf_evlist evlist)

Definition at line 1787 of file evlist.c.

◆ perf_evlist__exit()

void perf_evlist__exit ( struct perf_evlist evlist)

Definition at line 126 of file evlist.c.

◆ perf_evlist__filter_pollfd()

int perf_evlist__filter_pollfd ( struct perf_evlist evlist,
short  revents_and_mask 
)

Definition at line 485 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__find_evsel_by_str()

struct perf_evsel* perf_evlist__find_evsel_by_str ( struct perf_evlist evlist,
const char *  str 
)

Definition at line 1714 of file evlist.c.

◆ perf_evlist__find_tracepoint_by_id()

struct perf_evsel* perf_evlist__find_tracepoint_by_id ( struct perf_evlist evlist,
int  id 
)

Definition at line 306 of file evlist.c.

◆ perf_evlist__find_tracepoint_by_name()

struct perf_evsel* perf_evlist__find_tracepoint_by_name ( struct perf_evlist evlist,
const char *  name 
)

Definition at line 320 of file evlist.c.

◆ perf_evlist__force_leader()

void perf_evlist__force_leader ( struct perf_evlist evlist)

Definition at line 1804 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__fprintf()

size_t perf_evlist__fprintf ( struct perf_evlist evlist,
FILE *  fp 
)

Definition at line 1582 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__id2evsel()

struct perf_evsel* perf_evlist__id2evsel ( struct perf_evlist evlist,
u64  id 
)

Definition at line 589 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__id2evsel_strict()

struct perf_evsel* perf_evlist__id2evsel_strict ( struct perf_evlist evlist,
u64  id 
)

Definition at line 606 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__id2sid()

struct perf_sample_id* perf_evlist__id2sid ( struct perf_evlist evlist,
u64  id 
)

Definition at line 573 of file evlist.c.

◆ perf_evlist__id_add()

void perf_evlist__id_add ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  cpu,
int  thread,
u64  id 
)

Definition at line 509 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__id_add_fd()

int perf_evlist__id_add_fd ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  cpu,
int  thread,
int  fd 
)

Definition at line 516 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__id_hash()

static void perf_evlist__id_hash ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  cpu,
int  thread,
u64  id 
)
static

Definition at line 496 of file evlist.c.

◆ perf_evlist__id_hdr_size()

u16 perf_evlist__id_hdr_size ( struct perf_evlist evlist)

Definition at line 1302 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__init()

void perf_evlist__init ( struct perf_evlist evlist,
struct cpu_map cpus,
struct thread_map threads 
)

Definition at line 40 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap()

int perf_evlist__mmap ( struct perf_evlist evlist,
unsigned int  pages 
)

Definition at line 1061 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap_ex()

int perf_evlist__mmap_ex ( struct perf_evlist evlist,
unsigned int  pages,
unsigned int  auxtrace_pages,
bool  auxtrace_overwrite 
)

perf_evlist__mmap_ex - Create mmaps to receive events. : list of events : map length in pages : overwrite older events? - auxtrace map length in pages - overwrite older auxtrace data?

If is false the user needs to signal event consumption using perf_mmap__write_tail(). Using perf_evlist__mmap_read() does this automatically.

Similarly, if is false the user needs to signal data consumption using auxtrace_mmap__write_tail().

Return: %0 on success, negative error code otherwise.

Definition at line 1019 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap_per_cpu()

static int perf_evlist__mmap_per_cpu ( struct perf_evlist evlist,
struct mmap_params mp 
)
static

Definition at line 842 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap_per_evsel()

static int perf_evlist__mmap_per_evsel ( struct perf_evlist evlist,
int  idx,
struct mmap_params mp,
int  cpu_idx,
int  thread,
int *  _output,
int *  _output_overwrite 
)
static

Definition at line 764 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap_per_thread()

static int perf_evlist__mmap_per_thread ( struct perf_evlist evlist,
struct mmap_params mp 
)
static

Definition at line 871 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__mmap_size()

size_t perf_evlist__mmap_size ( unsigned long  pages)

Definition at line 920 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__munmap()

void perf_evlist__munmap ( struct perf_evlist evlist)

Definition at line 718 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__munmap_filtered()

static void perf_evlist__munmap_filtered ( struct fdarray *  fda,
int  fd,
void *arg  __maybe_unused 
)
static

Definition at line 476 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__munmap_nofree()

static void perf_evlist__munmap_nofree ( struct perf_evlist evlist)
static

Definition at line 705 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__new()

struct perf_evlist* perf_evlist__new ( void  )

Definition at line 54 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__new_default()

struct perf_evlist* perf_evlist__new_default ( void  )

Definition at line 64 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__new_dummy()

struct perf_evlist* perf_evlist__new_dummy ( void  )

Definition at line 76 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__nr_threads()

static int perf_evlist__nr_threads ( struct perf_evlist evlist,
struct perf_evsel evsel 
)
static

Definition at line 347 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__open()

int perf_evlist__open ( struct perf_evlist evlist)

Definition at line 1398 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__parse_mmap_pages()

int perf_evlist__parse_mmap_pages ( const struct option *  opt,
const char *  str,
int unset  __maybe_unused 
)

Definition at line 996 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__parse_sample()

int perf_evlist__parse_sample ( struct perf_evlist evlist,
union perf_event event,
struct perf_sample sample 
)

Definition at line 1561 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__parse_sample_timestamp()

int perf_evlist__parse_sample_timestamp ( struct perf_evlist evlist,
union perf_event event,
u64 *  timestamp 
)

Definition at line 1571 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__pause()

static int perf_evlist__pause ( struct perf_evlist evlist)
static

Definition at line 695 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__poll()

int perf_evlist__poll ( struct perf_evlist evlist,
int  timeout 
)

Definition at line 491 of file evlist.c.

◆ perf_evlist__prepare_workload()

int perf_evlist__prepare_workload ( struct perf_evlist evlist,
struct target target,
const char *  argv[],
bool  pipe_output,
void(*)(int signo, siginfo_t *info, void *ucontext)  exec_error 
)

Definition at line 1428 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__propagate_maps()

static void perf_evlist__propagate_maps ( struct perf_evlist evlist)
static

Definition at line 168 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__purge()

static void perf_evlist__purge ( struct perf_evlist evlist)
static

Definition at line 113 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__read_format()

u64 perf_evlist__read_format ( struct perf_evlist evlist)

Definition at line 1296 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__remove()

void perf_evlist__remove ( struct perf_evlist evlist,
struct perf_evsel evsel 
)

Definition at line 189 of file evlist.c.

◆ perf_evlist__resume()

static int perf_evlist__resume ( struct perf_evlist evlist)
static

Definition at line 700 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__sample_id_all()

bool perf_evlist__sample_id_all ( struct perf_evlist evlist)

Definition at line 1347 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_filter()

int perf_evlist__set_filter ( struct perf_evlist evlist,
const char *  filter 
)

Definition at line 1179 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_filter_pid()

int perf_evlist__set_filter_pid ( struct perf_evlist evlist,
pid_t  pid 
)

Definition at line 1223 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_filter_pids()

int perf_evlist__set_filter_pids ( struct perf_evlist evlist,
size_t  npids,
pid_t *  pids 
)

Definition at line 1196 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_id_pos()

void perf_evlist__set_id_pos ( struct perf_evlist evlist)

perf_evlist__set_id_pos - set the positions of event ids. : selected event list

Events with compatible sample types all have the same id_pos and is_pos. For convenience, put a copy on evlist.

Definition at line 95 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_leader()

void perf_evlist__set_leader ( struct perf_evlist evlist)

Definition at line 221 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_maps()

void perf_evlist__set_maps ( struct perf_evlist evlist,
struct cpu_map cpus,
struct thread_map threads 
)

Definition at line 1115 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_paused()

static int perf_evlist__set_paused ( struct perf_evlist evlist,
bool  value 
)
static

Definition at line 675 of file evlist.c.

◆ perf_evlist__set_selected()

void perf_evlist__set_selected ( struct perf_evlist evlist,
struct perf_evsel evsel 
)

Definition at line 1353 of file evlist.c.

◆ perf_evlist__set_sid_idx()

static void perf_evlist__set_sid_idx ( struct perf_evlist evlist,
struct perf_evsel evsel,
int  idx,
int  cpu,
int  thread 
)
static

Definition at line 557 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__set_tracking_event()

void perf_evlist__set_tracking_event ( struct perf_evlist evlist,
struct perf_evsel tracking_evsel 
)

Definition at line 1697 of file evlist.c.

◆ perf_evlist__should_poll()

static bool perf_evlist__should_poll ( struct perf_evlist *evlist  __maybe_unused,
struct perf_evsel evsel 
)
static

Definition at line 756 of file evlist.c.

◆ perf_evlist__splice_list_tail()

void perf_evlist__splice_list_tail ( struct perf_evlist evlist,
struct list_head *  list 
)

Definition at line 196 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__start_workload()

int perf_evlist__start_workload ( struct perf_evlist evlist)

Definition at line 1542 of file evlist.c.

◆ perf_evlist__strerror_mmap()

int perf_evlist__strerror_mmap ( struct perf_evlist evlist,
int  err,
char *  buf,
size_t  size 
)

Definition at line 1649 of file evlist.c.

◆ perf_evlist__strerror_open()

int perf_evlist__strerror_open ( struct perf_evlist evlist,
int  err,
char *  buf,
size_t  size 
)

Definition at line 1595 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__to_front()

void perf_evlist__to_front ( struct perf_evlist evlist,
struct perf_evsel move_evsel 
)

Definition at line 1680 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__toggle_bkw_mmap()

void perf_evlist__toggle_bkw_mmap ( struct perf_evlist evlist,
enum bkw_mmap_state  state 
)

Definition at line 1729 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__toggle_enable()

void perf_evlist__toggle_enable ( struct perf_evlist evlist)

Definition at line 382 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__update_id_pos()

static void perf_evlist__update_id_pos ( struct perf_evlist evlist)
static

Definition at line 103 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__valid_read_format()

bool perf_evlist__valid_read_format ( struct perf_evlist evlist)

Definition at line 1276 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__valid_sample_id_all()

bool perf_evlist__valid_sample_id_all ( struct perf_evlist evlist)

Definition at line 1335 of file evlist.c.

Here is the call graph for this function:

◆ perf_evlist__valid_sample_type()

bool perf_evlist__valid_sample_type ( struct perf_evlist evlist)

Definition at line 1228 of file evlist.c.