Lines Matching defs:al

380 static unsigned long get_offset(struct symbol *sym, struct addr_location *al)
384 if (al->addr < sym->end)
385 offset = al->addr - sym->start;
387 offset = al->addr - map__start(al->map) - sym->start;
394 struct addr_location *al)
407 if (thread__resolve_callchain(al->thread, cursor, evsel,
501 struct addr_location al;
523 addr_location__init(&al);
525 entries[i].from, &al);
526 dsoname = get_dsoname(al.map);
531 entries[i].to, &al);
532 dsoname = get_dsoname(al.map);
536 addr_location__exit(&al);
545 static int get_symoff(struct symbol *sym, struct addr_location *al,
556 offset = get_offset(sym, al);
590 struct addr_location al;
592 addr_location__init(&al);
598 entries[i].from, &al);
599 get_symoff(al.sym, &al, true, bf, sizeof(bf));
604 entries[i].to, &al);
605 get_symoff(al.sym, &al, true, bf, sizeof(bf));
631 addr_location__exit(&al);
780 static void set_sym_in_dict(PyObject *dict, struct addr_location *al,
786 if (al->map) {
788 struct dso *dso = map__dso(al->map);
796 PyLong_FromUnsignedLong(map__start(al->map)));
798 PyLong_FromUnsignedLong(map__end(al->map)));
800 PyLong_FromUnsignedLongLong(map__pgoff(al->map)));
802 if (al->sym) {
804 _PyUnicode_FromString(al->sym->name));
806 PyLong_FromUnsignedLong(get_offset(al->sym, al)));
835 struct addr_location *al,
887 _PyUnicode_FromString(thread__comm_str(al->thread)));
888 set_sym_in_dict(dict, al, "dso", "dso_bid", "dso_map_start", "dso_map_end",
893 brstack = python_process_brstack(sample, al->thread);
896 brstacksym = python_process_brstacksym(sample, al->thread);
928 if (al->thread)
929 e_machine = thread__e_machine(al->thread, /*machine=*/NULL, &e_flags);
940 struct addr_location *al,
954 const char *comm = thread__comm_str(al->thread);
998 callchain = python_process_callchain(sample, evsel, al);
1054 all_entries_dict = get_perf_sample_dict(sample, evsel, al, addr_al,
1074 struct addr_location *al __maybe_unused,
1316 tuple_set_d64(t, 2, maps__machine(thread__maps(es->al->thread))->db_id);
1317 tuple_set_d64(t, 3, thread__db_id(es->al->thread));
1469 struct addr_location *al,
1491 callchain = python_process_callchain(sample, evsel, al);
1492 dict = get_perf_sample_dict(sample, evsel, al, addr_al, callchain);
1506 struct addr_location *al,
1511 scripting_context__update(scripting_context, event, sample, evsel, al, addr_al);
1515 python_process_tracepoint(sample, evsel, al, addr_al);
1520 db_export__sample(&tables->dbe, event, sample, evsel, al, addr_al);
1522 python_process_general_event(sample, evsel, al, addr_al);