Lines Matching refs:al
240 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument
245 if (al->map) { in db_ids_from_al()
246 struct dso *dso = al->map->dso; in db_ids_from_al()
248 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
253 if (!al->sym) { in db_ids_from_al()
254 al->sym = symbol__new(al->addr, 0, 0, "unknown"); in db_ids_from_al()
255 if (al->sym) in db_ids_from_al()
256 symbols__insert(&dso->symbols[al->map->type], in db_ids_from_al()
257 al->sym); in db_ids_from_al()
260 if (al->sym) { in db_ids_from_al()
261 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al()
263 err = db_export__symbol(dbe, al->sym, dso); in db_ids_from_al()
267 *offset = al->addr - al->sym->start; in db_ids_from_al()
285 struct addr_location *al) in db_export__sample() argument
287 struct thread* thread = al->thread; in db_export__sample()
292 .al = al, in db_export__sample()
302 err = db_export__machine(dbe, al->machine); in db_export__sample()
306 main_thread = get_main_thread(al->machine, thread); in db_export__sample()
308 comm = machine__thread_exec_comm(al->machine, main_thread); in db_export__sample()
310 err = db_export__thread(dbe, thread, al->machine, comm); in db_export__sample()
323 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); in db_export__sample()
337 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()