Home
last modified time | relevance | path

Searched refs:perf_evsel (Results 1 – 25 of 34) sorted by relevance

12

/linux-2.6.39/tools/perf/util/
Devsel.h29 struct perf_evsel;
38 struct perf_evsel *evsel;
47 struct perf_evsel { struct
70 struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx); argument
71 void perf_evsel__init(struct perf_evsel *evsel,
73 void perf_evsel__exit(struct perf_evsel *evsel);
74 void perf_evsel__delete(struct perf_evsel *evsel);
76 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
77 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
78 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus);
[all …]
Devsel.c18 void perf_evsel__init(struct perf_evsel *evsel, in perf_evsel__init()
26 struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx) in perf_evsel__new()
28 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new()
36 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd()
42 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_id()
58 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus) in perf_evsel__alloc_counts()
65 void perf_evsel__free_fd(struct perf_evsel *evsel) in perf_evsel__free_fd()
71 void perf_evsel__free_id(struct perf_evsel *evsel) in perf_evsel__free_id()
79 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__close_fd()
90 void perf_evsel__exit(struct perf_evsel *evsel) in perf_evsel__exit()
[all …]
Devlist.c49 struct perf_evsel *pos, *n; in perf_evlist__purge()
74 void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry) in perf_evlist__add()
86 struct perf_evsel *evsel = perf_evsel__new(&attr, 0); in perf_evlist__add_default()
111 struct perf_evsel *evsel, in perf_evlist__id_hash()
123 void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, in perf_evlist__id_add()
131 struct perf_evsel *evsel, in perf_evlist__id_add_fd()
150 struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id) in perf_evlist__id2evsel()
158 return list_entry(evlist->entries.next, struct perf_evsel, node); in perf_evlist__id2evsel()
260 static int __perf_evlist__mmap(struct perf_evlist *evlist, struct perf_evsel *evsel, in __perf_evlist__mmap()
280 struct perf_evsel *evsel; in perf_evlist__mmap_per_cpu()
[all …]
Devlist.h30 struct perf_evsel;
39 void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry);
42 void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel,
48 struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id);
Dparse-events.h10 struct perf_evsel;
24 const char *event_name(struct perf_evsel *event);
Dtop.h12 struct perf_evsel;
47 struct perf_evsel *sym_evsel;
Dsession.h58 struct perf_evsel;
62 struct perf_evsel *evsel, struct perf_session *session);
Dtop.c72 struct perf_evsel *counter; in perf_top__header_snprintf()
108 struct perf_evsel *first; in perf_top__header_snprintf()
109 first = list_entry(top->evlist->entries.next, struct perf_evsel, node); in perf_top__header_snprintf()
Dpython.c382 struct perf_evsel evsel;
497 struct perf_evsel *evsel = &pevsel->evsel; in pyrf_evsel__open()
658 struct perf_evsel *evsel; in pyrf_evlist__add()
685 struct perf_evsel *first; in pyrf_evlist__read_on_cpu()
692 first = list_entry(evlist->entries.next, struct perf_evsel, node); in pyrf_evlist__read_on_cpu()
746 struct perf_evsel *pos; in pyrf_evlist__item()
Dheader.c448 struct perf_evsel *attr, *pair = NULL; in perf_session__write_header()
454 pair = list_entry(session->evlist->entries.next, struct perf_evsel, node); in perf_session__write_header()
469 pair = list_entry(pair->node.next, struct perf_evsel, node); in perf_session__write_header()
873 struct perf_evsel *evsel; in perf_session__read_header()
939 struct perf_evsel *pos; in perf_evlist__sample_type()
955 struct perf_evsel *pos; in perf_evlist__sample_id_all()
1002 struct perf_evsel *attr; in perf_session__synthesize_attrs()
1021 struct perf_evsel *evsel; in perf_event__process_attr()
Dtrace-event-scripting.c41 struct perf_evsel *evsel __unused, in process_event_unsupported()
Dbuild-id.c19 struct perf_evsel *evsel __used, in build_id__mark_dso_hit()
Dcgroup.c79 struct perf_evsel *counter; in add_cgroup()
Dparse-events.c288 const char *event_name(struct perf_evsel *evsel) in event_name()
823 struct perf_evsel *evsel; in parse_events()
850 struct perf_evsel *last = NULL; in parse_filter()
853 last = list_entry(evlist->entries.prev, struct perf_evsel, node); in parse_filter()
Dtrace-event-info.c477 struct perf_evsel *pos; in get_tracepoints_path()
495 struct perf_evsel *pos; in have_tracepoints()
Dtrace-event.h283 struct perf_evsel *evsel,
/linux-2.6.39/tools/perf/
Dbuiltin-stat.c106 static int perf_evsel__alloc_stat_priv(struct perf_evsel *evsel) in perf_evsel__alloc_stat_priv()
112 static void perf_evsel__free_stat_priv(struct perf_evsel *evsel) in perf_evsel__free_stat_priv()
162 static int create_perf_stat_counter(struct perf_evsel *evsel) in create_perf_stat_counter()
186 static inline int nsec_counter(struct perf_evsel *evsel) in nsec_counter()
199 static int read_counter_aggr(struct perf_evsel *counter) in read_counter_aggr()
234 static int read_counter(struct perf_evsel *counter) in read_counter()
259 struct perf_evsel *counter; in run_perf_stat()
375 static void print_noise(struct perf_evsel *evsel, double avg) in print_noise()
387 static void nsec_printout(int cpu, struct perf_evsel *evsel, double avg) in nsec_printout()
411 static void abs_printout(int cpu, struct perf_evsel *evsel, double avg) in abs_printout()
[all …]
Dbuiltin-report.c54 struct perf_evsel *evsel) in perf_session__add_hist_entry()
104 struct perf_evsel *evsel, in process_sample_event()
131 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, in process_read_event()
217 struct perf_evsel *pos; in perf_evlist__tty_browse_hists()
251 struct perf_evsel *pos; in __cmd_report()
Dbuiltin-record.c161 static void config_attr(struct perf_evsel *evsel, struct perf_evlist *evlist) in config_attr()
235 struct perf_evsel *pos, *pair; in perf_evlist__equal()
240 pair = list_entry(other->entries.next, struct perf_evsel, node); in perf_evlist__equal()
245 pair = list_entry(pair->node.next, struct perf_evsel, node); in perf_evlist__equal()
253 struct perf_evsel *pos; in open_counters()
698 struct perf_evsel *pos; in __cmd_record()
796 struct perf_evsel *pos; in cmd_record()
Dbuiltin-annotate.c45 struct perf_evsel *evsel, in perf_evlist__add_sample()
83 struct perf_evsel *evsel, in process_sample_event()
175 struct perf_evsel *pos; in __cmd_annotate()
Dbuiltin-evlist.c23 struct perf_evsel *pos; in __cmd_evlist()
Dbuiltin-inject.c48 struct perf_evsel *evsel __used, in perf_event__repipe_sample()
135 struct perf_evsel *evsel __used, in perf_event__inject_buildid()
Dbuiltin-top.c529 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node); in handle_keypress()
538 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node); in handle_keypress()
785 struct perf_evsel *evsel; in perf_event__process_sample()
829 struct perf_evsel *counter; in start_counters()
1012 struct perf_evsel *pos; in cmd_top()
1091 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node); in cmd_top()
Dbuiltin-test.c268 struct perf_evsel *evsel; in test__open_syscall_event()
333 struct perf_evsel *evsel; in test__open_syscall_event_on_all_cpus()
476 struct perf_evsel *evsels[nsyscalls], *evsel; in test__basic_mmap()
/linux-2.6.39/tools/perf/util/ui/browsers/
Dhists.c806 static int perf_evsel__hists_browse(struct perf_evsel *evsel, in perf_evsel__hists_browse()
1003 struct perf_evsel *selection;
1011 struct perf_evsel *evsel = list_entry(entry, struct perf_evsel, node); in perf_evsel_menu__write()
1033 struct perf_evsel *pos; in perf_evsel_menu__run()
1070 pos = list_entry(evlist->entries.next, struct perf_evsel, node); in perf_evsel_menu__run()
1072 pos = list_entry(pos->node.next, struct perf_evsel, node); in perf_evsel_menu__run()
1076 pos = list_entry(evlist->entries.prev, struct perf_evsel, node); in perf_evsel_menu__run()
1078 pos = list_entry(pos->node.prev, struct perf_evsel, node); in perf_evsel_menu__run()
1096 struct perf_evsel *pos; in __perf_evlist__tui_browse_hists()
1131 struct perf_evsel *first = list_entry(evlist->entries.next, in perf_evlist__tui_browse_hists()
[all …]

12