|
Linux Kernel
3.7.1
|
#include "util.h"#include "debugfs.h"#include <poll.h>#include "cpumap.h"#include "thread_map.h"#include "target.h"#include "evlist.h"#include "evsel.h"#include <unistd.h>#include "parse-events.h"#include <sys/mman.h>#include <linux/bitops.h>#include <linux/hash.h>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) |
| int __perf_evlist__add_default_attrs | ( | struct perf_evlist * | evlist, |
| struct perf_event_attr * | attrs, | ||
| size_t | nr_attrs | ||
| ) |
| void perf_evlist__add | ( | struct perf_evlist * | evlist, |
| struct perf_evsel * | entry | ||
| ) |
| int perf_evlist__add_default | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__add_pollfd | ( | struct perf_evlist * | evlist, |
| int | fd | ||
| ) |
| int perf_evlist__apply_filters | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__config_attrs | ( | struct perf_evlist * | evlist, |
| struct perf_record_opts * | opts | ||
| ) |
| int perf_evlist__create_maps | ( | struct perf_evlist * | evlist, |
| struct perf_target * | target | ||
| ) |
| void perf_evlist__delete | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__delete_maps | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__disable | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__enable | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__exit | ( | struct perf_evlist * | evlist | ) |
|
read |
| size_t perf_evlist__fprintf | ( | struct perf_evlist * | evlist, |
| FILE * | fp | ||
| ) |
|
read |
| void perf_evlist__id_add | ( | struct perf_evlist * | evlist, |
| struct perf_evsel * | evsel, | ||
| int | cpu, | ||
| int | thread, | ||
| u64 | id | ||
| ) |
| u16 perf_evlist__id_hdr_size | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__init | ( | struct perf_evlist * | evlist, |
| struct cpu_map * | cpus, | ||
| struct thread_map * | threads | ||
| ) |
| int perf_evlist__mmap | ( | struct perf_evlist * | evlist, |
| unsigned int | pages, | ||
| bool | overwrite | ||
| ) |
perf_evlist__mmap - Create per cpu maps to receive events
- list of events - map length in pages - overwrite older events?
If overwrite is false the user needs to signal event consuption using:
struct perf_mmap *m = &evlist->mmap[cpu]; unsigned int head = perf_mmap__read_head(m);
perf_mmap__write_tail(m, head)
Using perf_evlist__read_on_cpu does this automatically.
|
write |
| void perf_evlist__munmap | ( | struct perf_evlist * | evlist | ) |
|
read |
| int perf_evlist__open | ( | struct perf_evlist * | evlist | ) |
| int perf_evlist__parse_sample | ( | struct perf_evlist * | evlist, |
| union perf_event * | event, | ||
| struct perf_sample * | sample | ||
| ) |
| int perf_evlist__prepare_workload | ( | struct perf_evlist * | evlist, |
| struct perf_record_opts * | opts, | ||
| const char * | argv[] | ||
| ) |
| bool perf_evlist__sample_id_all | ( | struct perf_evlist * | evlist | ) |
| u64 perf_evlist__sample_type | ( | struct perf_evlist * | evlist | ) |
| int perf_evlist__set_filter | ( | struct perf_evlist * | evlist, |
| const char * | filter | ||
| ) |
| void perf_evlist__set_leader | ( | struct perf_evlist * | evlist | ) |
| void perf_evlist__set_selected | ( | struct perf_evlist * | evlist, |
| struct perf_evsel * | evsel | ||
| ) |
| int perf_evlist__start_workload | ( | struct perf_evlist * | evlist | ) |
| bool perf_evlist__valid_sample_id_all | ( | struct perf_evlist * | evlist | ) |
| bool perf_evlist__valid_sample_type | ( | struct perf_evlist * | evlist | ) |
1.8.2