Lines Matching refs:evlist
26 #include "util/evlist.h"
188 if (symbol__alloc_hist(sym, top.evlist->nr_entries) < 0) {
317 if (top.evlist->nr_entries == 1)
326 top.evlist->nr_entries == 1 ? " " : "______");
346 if (top.evlist->nr_entries == 1 || !top.display_weighted)
454 if (top.evlist->nr_entries > 1)
463 if (top.evlist->nr_entries > 1)
493 return top.evlist->nr_entries > 1 ? 1 : 0;
541 if (top.evlist->nr_entries > 1) {
547 list_for_each_entry(top.sym_evsel, &top.evlist->entries, node)
552 if (counter >= top.evlist->nr_entries) {
553 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node);
558 list_for_each_entry(top.sym_evsel, &top.evlist->entries, node)
562 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node);
834 evsel = perf_evlist__id2evsel(top.evlist, sample->id);
857 while ((event = perf_evlist__mmap_read(top.evlist, idx)) != NULL) {
875 for (i = 0; i < top.evlist->nr_mmaps; i++)
879 static void start_counters(struct perf_evlist *evlist)
883 list_for_each_entry(counter, &evlist->entries, node) {
894 if (evlist->nr_entries > 1) {
902 if (perf_evsel__open(counter, top.evlist->cpus,
903 top.evlist->threads, group) < 0) {
941 if (perf_evlist__mmap(evlist, mmap_pages, false) < 0) {
969 perf_event__synthesize_thread_map(top.evlist->threads,
974 start_counters(top.evlist);
975 session->evlist = top.evlist;
979 poll(top.evlist->pollfd, top.evlist->nr_fds, 100);
1005 ret = poll(top.evlist->pollfd, top.evlist->nr_fds, 100);
1021 OPT_CALLBACK('e', "event", &top.evlist, "event",
1073 top.evlist = perf_evlist__new(NULL, NULL);
1074 if (top.evlist == NULL)
1107 if (perf_evlist__create_maps(top.evlist, top.target_pid,
1111 if (!top.evlist->nr_entries &&
1112 perf_evlist__add_default(top.evlist) < 0) {
1132 list_for_each_entry(pos, &top.evlist->entries, node) {
1133 if (perf_evsel__alloc_fd(pos, top.evlist->cpus->nr,
1134 top.evlist->threads->nr) < 0)
1145 if (perf_evlist__alloc_pollfd(top.evlist) < 0 ||
1146 perf_evlist__alloc_mmap(top.evlist) < 0)
1149 top.sym_evsel = list_entry(top.evlist->entries.next, struct perf_evsel, node);
1152 (top.evlist->nr_entries + 1) * sizeof(unsigned long));
1166 perf_evlist__delete(top.evlist);