Lines Matching refs:al
245 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument
250 if (al->map) { in db_ids_from_al()
251 struct dso *dso = al->map->dso; in db_ids_from_al()
253 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
258 if (!al->sym) { in db_ids_from_al()
259 al->sym = symbol__new(al->addr, 0, 0, "unknown"); in db_ids_from_al()
260 if (al->sym) in db_ids_from_al()
261 symbols__insert(&dso->symbols[al->map->type], in db_ids_from_al()
262 al->sym); in db_ids_from_al()
265 if (al->sym) { in db_ids_from_al()
266 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al()
268 err = db_export__symbol(dbe, al->sym, dso); in db_ids_from_al()
272 *offset = al->addr - al->sym->start; in db_ids_from_al()
290 struct addr_location *al) in db_export__sample() argument
292 struct thread* thread = al->thread; in db_export__sample()
297 .al = al, in db_export__sample()
307 err = db_export__machine(dbe, al->machine); in db_export__sample()
311 main_thread = get_main_thread(al->machine, thread); in db_export__sample()
313 comm = machine__thread_exec_comm(al->machine, main_thread); in db_export__sample()
315 err = db_export__thread(dbe, thread, al->machine, comm); in db_export__sample()
328 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); in db_export__sample()
342 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()