Lines Matching refs:evsel

29 #include "evsel.h"
867 /* symbol histogram: key = offset << 16 | evsel->core.idx */
1079 struct evsel *evsel, u64 addr,
1087 src = symbol__hists(sym, evsel->evlist->core.nr_entries);
1088 return src ? __symbol__inc_addr_samples(ms, src, evsel->core.idx, addr, sample) : 0;
1261 struct evsel *evsel)
1263 return symbol__inc_addr_samples(&ams->ms, evsel, ams->al_addr, sample);
1267 struct evsel *evsel, u64 ip)
1269 return symbol__inc_addr_samples(&he->ms, evsel, ip, sample);
1314 struct evsel *evsel;
1363 if (evsel__is_group_event(args->evsel))
1364 nr = args->evsel->core.nr_members;
1580 struct evsel *evsel, u64 len, int min_pcnt, int printed,
1616 annotation_line__print(queue, sym, start, evsel, len,
1666 if (evsel__is_group_event(evsel))
1667 width *= evsel->core.nr_members;
2346 struct evsel *evsel,
2350 struct hists *hists = evsel__hists(evsel);
2351 int evidx = evsel->core.idx;
2384 struct evsel *leader, s64 len)
2387 struct evsel *evsel;
2399 for_each_group_evsel(evsel, leader) {
2406 calc_percent(notes, evsel, data, al->offset, end);
2411 void symbol__calc_percent(struct symbol *sym, struct evsel *evsel)
2415 annotation__calc_percent(notes, evsel, symbol__size(sym));
2418 static int evsel__get_arch(struct evsel *evsel, struct arch **parch)
2420 struct perf_env *env = evsel__env(evsel);
2445 int symbol__annotate(struct map_symbol *ms, struct evsel *evsel,
2451 .evsel = evsel,
2457 err = evsel__get_arch(evsel, &arch);
2602 static void symbol__annotate_hits(struct symbol *sym, struct evsel *evsel)
2604 int evidx = evsel->core.idx;
2633 int symbol__annotate_printf(struct map_symbol *ms, struct evsel *evsel)
2640 const char *evsel_name = evsel__name(evsel);
2642 struct sym_hist *h = annotation__histogram(notes, evsel->core.idx);
2665 if (evsel__is_group_event(evsel)) {
2666 width *= evsel->core.nr_members;
2667 evsel__group_desc(evsel, buf, sizeof(buf));
2682 symbol__annotate_hits(sym, evsel);
2694 err = annotation_line__print(pos, sym, start, evsel, len,
2798 int map_symbol__annotation_dump(struct map_symbol *ms, struct evsel *evsel)
2800 const char *ev_name = evsel__name(evsel);
2813 if (evsel__is_group_event(evsel)) {
2814 evsel__group_desc(evsel, buf, sizeof(buf));
3066 int symbol__tty_annotate2(struct map_symbol *ms, struct evsel *evsel)
3071 struct hists *hists = evsel__hists(evsel);
3075 err = symbol__annotate2(ms, evsel, NULL);
3102 int symbol__tty_annotate(struct map_symbol *ms, struct evsel *evsel)
3109 err = symbol__annotate(ms, evsel, NULL);
3119 symbol__calc_percent(sym, evsel);
3127 symbol__annotate_printf(ms, evsel);
3381 int symbol__annotate2(struct map_symbol *ms, struct evsel *evsel,
3393 if (evsel__is_group_event(evsel))
3394 nr_pcnt = evsel->core.nr_members;
3396 err = symbol__annotate(ms, evsel, parch);
3400 symbol__calc_percent(sym, evsel);
3699 static void symbol__ensure_annotate(struct map_symbol *ms, struct evsel *evsel)
3708 if (symbol__annotate(ms, evsel, NULL) < 0)
3815 struct evsel *evsel = hists_to_evsel(he->hists);
3839 if (evsel__get_arch(evsel, &arch) < 0) {
3845 symbol__ensure_annotate(ms, evsel);
3916 annotated_data_type__update_samples(mem_type, evsel,