Lines Matching refs:al
176 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument
181 if (al->map) { in db_ids_from_al()
182 struct dso *dso = al->map->dso; in db_ids_from_al()
184 err = db_export__dso(dbe, dso, al->maps->machine); in db_ids_from_al()
189 if (!al->sym) { in db_ids_from_al()
190 al->sym = symbol__new(al->addr, 0, 0, 0, "unknown"); in db_ids_from_al()
191 if (al->sym) in db_ids_from_al()
192 dso__insert_symbol(dso, al->sym); in db_ids_from_al()
195 if (al->sym) { in db_ids_from_al()
196 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al()
198 err = db_export__symbol(dbe, al->sym, dso); in db_ids_from_al()
202 *offset = al->addr - al->sym->start; in db_ids_from_al()
239 struct addr_location al; in call_path_from_sample() local
242 memset(&al, 0, sizeof(al)); in call_path_from_sample()
252 al.sym = node->ms.sym; in call_path_from_sample()
253 al.map = node->ms.map; in call_path_from_sample()
254 al.maps = thread->maps; in call_path_from_sample()
255 al.addr = node->ip; in call_path_from_sample()
257 if (al.map && !al.sym) in call_path_from_sample()
258 al.sym = dso__find_symbol(al.map->dso, al.addr); in call_path_from_sample()
260 db_ids_from_al(dbe, &al, &dso_db_id, &sym_db_id, &offset); in call_path_from_sample()
264 al.sym, node->ip, in call_path_from_sample()
346 struct addr_location *al, struct addr_location *addr_al) in db_export__sample() argument
348 struct thread *thread = al->thread; in db_export__sample()
353 .al = al, in db_export__sample()
363 err = db_export__machine(dbe, al->maps->machine); in db_export__sample()
367 main_thread = thread__main_thread(al->maps->machine, thread); in db_export__sample()
369 err = db_export__threads(dbe, thread, main_thread, al->maps->machine, &comm); in db_export__sample()
378 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); in db_export__sample()
383 struct call_path *cp = call_path_from_sample(dbe, al->maps->machine, in db_export__sample()
398 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()