/external/linux-tools-perf/util/ |
evlist.h | 40 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 42 void perf_evlist__exit(struct perf_evlist *evlist); 43 void perf_evlist__delete(struct perf_evlist *evlist); 45 void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry); 46 int perf_evlist__add_default(struct perf_evlist *evlist); 48 void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, 51 int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); 52 void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd); 54 struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id); 58 int perf_evlist__alloc_mmap(struct perf_evlist *evlist); [all...] |
evlist.c | 12 #include "evlist.h" 31 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 37 INIT_HLIST_HEAD(&evlist->heads[i]); 38 INIT_LIST_HEAD(&evlist->entries); 39 perf_evlist__set_maps(evlist, cpus, threads); 45 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); local 47 if (evlist != NULL) 48 perf_evlist__init(evlist, cpus, threads); 50 return evlist; [all...] |
cgroup.c | 7 #include "evlist.h" 77 static int add_cgroup(struct perf_evlist *evlist, char *str) 85 list_for_each_entry(counter, &evlist->entries, node) { 114 list_for_each_entry(counter, &evlist->entries, node) { 145 struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; local 150 if (list_empty(&evlist->entries)) { 165 ret = add_cgroup(evlist, s);
|
parse-events.h | 27 extern bool have_tracepoints(struct list_head *evlist);
|
top.c | 11 #include "evlist.h" 29 for (counter = 1; counter < top->evlist->nr_entries - 1; counter++) 107 if (top->evlist->nr_entries == 1 || !top->display_weighted) { 109 first = list_entry(top->evlist->entries.next, struct perf_evsel, node); 125 list_for_each_entry(counter, &top->evlist->entries, node) { 150 top->evlist->cpus->nr > 1 ? "s" : "", top->cpu_list); 156 top->evlist->cpus->nr, 157 top->evlist->cpus->nr > 1 ? "s" : ""); 201 for (j = 0; j < top->evlist->nr_entries; j++)
|
python.c | 5 #include "evlist.h" 556 struct perf_evlist evlist; member in struct:pyrf_evlist 571 perf_evlist__init(&pevlist->evlist, cpus, threads); 577 perf_evlist__exit(&pevlist->evlist); 584 struct perf_evlist *evlist = &pevlist->evlist; local 593 if (perf_evlist__mmap(evlist, pages, overwrite) < 0) { 605 struct perf_evlist *evlist = &pevlist->evlist; local 612 n = poll(evlist->pollfd, evlist->nr_fds, timeout) 624 struct perf_evlist *evlist = &pevlist->evlist; local 656 struct perf_evlist *evlist = &pevlist->evlist; local 674 struct perf_evlist *evlist = &pevlist->evlist; local [all...] |
header.c | 18 #include "evlist.h" 386 struct perf_evlist *evlist, int fd) 421 read_tracing_data(fd, &evlist->entries); 472 struct perf_evlist *evlist, 483 if (session->evlist != evlist) 484 pair = list_entry(session->evlist->entries.next, struct perf_evsel, node); 486 list_for_each_entry(attr, &evlist->entries, node) { 494 if (session->evlist != evlist) { [all...] |
header.h | 72 struct perf_evlist *evlist, 107 int perf_event__synthesize_tracing_data(int fd, struct perf_evlist *evlist,
|
hist.h | 98 int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __used, 118 int perf_evlist__tui_browse_hists(struct perf_evlist *evlist, const char *help);
|
top.h | 36 struct perf_evlist *evlist; member in struct:perf_top
|
session.h | 44 struct perf_evlist *evlist; member in struct:perf_session
|
parse-events.c | 10 #include "evlist.h" 833 struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; local 850 evsel = perf_evsel__new(&attr, evlist->nr_entries); 853 perf_evlist__add(evlist, evsel); 875 struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; local 878 if (evlist->nr_entries > 0) 879 last = list_entry(evlist->entries.prev, struct perf_evsel, node);
|
session.c | 16 #include "evlist.h" 67 if (!perf_evlist__valid_sample_type(self->evlist)) { 72 if (!perf_evlist__valid_sample_id_all(self->evlist)) { 115 self->sample_type = perf_evlist__sample_type(self->evlist); 117 self->sample_id_all = perf_evlist__sample_id_all(self->evlist); 744 evsel = perf_evlist__id2evsel(session->evlist, sample->id); 1197 list_for_each_entry(pos, &session->evlist->entries, node) { 1210 list_for_each_entry(pos, &session->evlist->entries, node) { [all...] |
/external/linux-tools-perf/python/ |
twatch.py | 26 evlist = perf.evlist(cpus, threads) 27 evlist.add(evsel) 28 evlist.mmap() 30 evlist.poll(timeout = -1) 32 event = evlist.read_on_cpu(cpu)
|
/external/linux-tools-perf/ |
builtin-top.c | 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 [all...] |
builtin-evlist.c | 2 * Builtin evlist command: Show the list of event selectors present 18 #include "util/evlist.h" 35 list_for_each_entry(pos, &session->evlist->entries, node) 43 "perf evlist [<options>]",
|
builtin-record.c | 21 #include "util/evlist.h" 161 static void config_attr(struct perf_evsel *evsel, struct perf_evlist *evlist) 173 if (evlist->nr_entries > 1) 232 static bool perf_evlist__equal(struct perf_evlist *evlist, 237 if (evlist->nr_entries != other->nr_entries) 242 list_for_each_entry(pos, &evlist->entries, node) { 251 static void open_counters(struct perf_evlist *evlist) 255 if (evlist->cpus->map[0] < 0) 258 list_for_each_entry(pos, &evlist->entries, node) { 274 config_attr(pos, evlist); [all...] |
command-list.txt | 11 perf-evlist mainporcelain common
|
builtin-annotate.c | 28 #include "util/evlist.h" 49 static int perf_evlist__add_sample(struct perf_evlist *evlist, 76 symbol__alloc_hist(he->ms.sym, evlist->nr_entries) < 0) 102 perf_evlist__add_sample(session->evlist, sample, evsel, &al)) { 204 list_for_each_entry(pos, &session->evlist->entries, node) {
|
builtin-report.c | 32 #include "util/evlist.h" 97 symbol__alloc_hist(he->ms.sym, session->evlist->nr_entries) < 0) 142 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, 225 static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist, 230 list_for_each_entry(pos, &evlist->entries, node) { 314 list_for_each_entry(pos, &session->evlist->entries, node) { 328 perf_evlist__tui_browse_hists(session->evlist, help); 330 perf_evlist__tty_browse_hists(session->evlist, help);
|
builtin-test.c | 10 #include "util/evlist.h" 464 struct perf_evlist *evlist; 517 evlist = perf_evlist__new(cpus, threads); 518 if (evlist == NULL) { 535 perf_evlist__add(evlist, evsels[i]); 545 if (perf_evlist__mmap(evlist, 128, true) < 0) { 557 while ((event = perf_evlist__mmap_read(evlist, 0)) != NULL) { 573 evsel = perf_evlist__id2evsel(evlist, sample.id); 582 list_for_each_entry(evsel, &evlist->entries, node) { 593 perf_evlist__munmap(evlist); [all...] |
Android.mk | 50 util/evlist.c \ 170 builtin-evlist.c \
|
Makefile | 257 LIB_H += util/evlist.h 301 LIB_OBJS += $(OUTPUT)util/evlist.o 360 BUILTIN_OBJS += $(OUTPUT)builtin-evlist.o 388 PYRF_OBJS += $(OUTPUT)util/evlist.o
|
/external/linux-tools-perf/util/ui/browsers/ |
hists.c | 11 #include "../../evlist.h" 1032 struct perf_evlist *evlist = menu->b.priv; local 1069 if (pos->node.next == &evlist->entries) 1070 pos = list_entry(evlist->entries.next, struct perf_evsel, node); 1075 if (pos->node.prev == &evlist->entries) 1076 pos = list_entry(evlist->entries.prev, struct perf_evsel, node); 1093 static int __perf_evlist__tui_browse_hists(struct perf_evlist *evlist, 1099 .entries = &evlist->entries, 1103 .nr_entries = evlist->nr_entries, 1104 .priv = evlist, [all...] |
top.c | 14 #include "../../evlist.h" 44 if (top->evlist->nr_entries == 1 || !top->display_weighted) { 132 if (symbol__alloc_hist(sym, top->evlist->nr_entries) < 0) {
|