• Home
  • Raw
  • Download

Lines Matching refs:al

236 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al,  in db_ids_from_al()  argument
241 if (al->map) { in db_ids_from_al()
242 struct dso *dso = al->map->dso; in db_ids_from_al()
244 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
249 if (!al->sym) { in db_ids_from_al()
250 al->sym = symbol__new(al->addr, 0, 0, "unknown"); in db_ids_from_al()
251 if (al->sym) in db_ids_from_al()
252 dso__insert_symbol(dso, al->map->type, al->sym); in db_ids_from_al()
255 if (al->sym) { in db_ids_from_al()
256 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al()
258 err = db_export__symbol(dbe, al->sym, dso); in db_ids_from_al()
262 *offset = al->addr - al->sym->start; in db_ids_from_al()
299 struct addr_location al; in call_path_from_sample() local
302 memset(&al, 0, sizeof(al)); in call_path_from_sample()
312 al.sym = node->sym; in call_path_from_sample()
313 al.map = node->map; in call_path_from_sample()
314 al.machine = machine; in call_path_from_sample()
315 al.addr = node->ip; in call_path_from_sample()
317 if (al.map && !al.sym) in call_path_from_sample()
318 al.sym = dso__find_symbol(al.map->dso, MAP__FUNCTION, in call_path_from_sample()
319 al.addr); in call_path_from_sample()
321 db_ids_from_al(dbe, &al, &dso_db_id, &sym_db_id, &offset); in call_path_from_sample()
325 al.sym, node->ip, in call_path_from_sample()
353 struct addr_location *al) in db_export__sample() argument
355 struct thread* thread = al->thread; in db_export__sample()
360 .al = al, in db_export__sample()
370 err = db_export__machine(dbe, al->machine); in db_export__sample()
374 main_thread = thread__main_thread(al->machine, thread); in db_export__sample()
376 comm = machine__thread_exec_comm(al->machine, main_thread); in db_export__sample()
378 err = db_export__thread(dbe, thread, al->machine, comm); in db_export__sample()
391 err = db_ids_from_al(dbe, al, &es.dso_db_id, &es.sym_db_id, &es.offset); in db_export__sample()
396 struct call_path *cp = call_path_from_sample(dbe, al->machine, in db_export__sample()
415 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()