Lines Matching refs:al
49 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in disasm_line__filter() local
50 return annotation_line__filter(al, notes); in disasm_line__filter()
100 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in annotate_browser__write() local
122 annotation_line__write(al, notes, &ops, ab->opts); in annotate_browser__write()
125 ab->selection = al; in annotate_browser__write()
130 struct disasm_line *pos = list_prev_entry(cursor, al.node); in is_fused()
134 while (pos && pos->al.offset == -1) { in is_fused()
135 pos = list_prev_entry(pos, al.node); in is_fused()
204 from = cursor->al.idx_asm; in annotate_browser__draw_current_jump()
207 from = (u64)cursor->al.idx; in annotate_browser__draw_current_jump()
255 struct annotation_line *al) in disasm_rb_tree__insert() argument
266 if (disasm__cmp(al, l, browser->opts->percent_type) < 0) in disasm_rb_tree__insert()
271 rb_link_node(&al->rb_node, parent, p); in disasm_rb_tree__insert()
272 rb_insert_color(&al->rb_node, root); in disasm_rb_tree__insert()
326 list_for_each_entry(pos, ¬es->src->source, al.node) { in annotate_browser__calc_percent()
330 if (pos->al.offset == -1) { in annotate_browser__calc_percent()
331 RB_CLEAR_NODE(&pos->al.rb_node); in annotate_browser__calc_percent()
335 for (i = 0; i < pos->al.data_nr; i++) { in annotate_browser__calc_percent()
338 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent()
345 if (max_percent < 0.01 && pos->al.ipc == 0) { in annotate_browser__calc_percent()
346 RB_CLEAR_NODE(&pos->al.rb_node); in annotate_browser__calc_percent()
349 disasm_rb_tree__insert(browser, &pos->al); in annotate_browser__calc_percent()
358 struct annotation_line *al) in annotate_browser__find_next_asm_line() argument
360 struct annotation_line *it = al; in annotate_browser__find_next_asm_line()
369 it = al; in annotate_browser__find_next_asm_line()
382 struct annotation_line *al; in annotate_browser__toggle_source() local
386 al = list_entry(browser->b.top, struct annotation_line, node); in annotate_browser__toggle_source()
389 if (al->idx_asm < offset) in annotate_browser__toggle_source()
390 offset = al->idx; in annotate_browser__toggle_source()
395 browser->b.top_idx = al->idx - offset; in annotate_browser__toggle_source()
396 browser->b.index = al->idx; in annotate_browser__toggle_source()
398 if (al->idx_asm < 0) { in annotate_browser__toggle_source()
400 al = annotate_browser__find_next_asm_line(browser, al); in annotate_browser__toggle_source()
401 if (!al) { in annotate_browser__toggle_source()
407 if (al->idx_asm < offset) in annotate_browser__toggle_source()
408 offset = al->idx_asm; in annotate_browser__toggle_source()
413 browser->b.top_idx = al->idx_asm - offset; in annotate_browser__toggle_source()
414 browser->b.index = al->idx_asm; in annotate_browser__toggle_source()
426 struct annotation_line *al = &cursor->al; in annotate_browser__show_full_location() local
428 if (al->offset != -1) in annotate_browser__show_full_location()
430 else if (al->fileloc == NULL) in annotate_browser__show_full_location()
434 sprintf (help_line, "Source file location: %s", al->fileloc); in annotate_browser__show_full_location()
504 list_for_each_entry(pos, ¬es->src->source, al.node) { in annotate_browser__find_offset()
505 if (pos->al.offset == offset) in annotate_browser__find_offset()
507 if (!annotation_line__filter(&pos->al, notes)) in annotate_browser__find_offset()
537 annotate_browser__set_top(browser, &dl->al, idx); in annotate_browser__jump()
547 struct annotation_line *al = browser->selection; in annotate_browser__find_string() local
550 list_for_each_entry_continue(al, ¬es->src->source, node) { in annotate_browser__find_string()
551 if (annotation_line__filter(al, notes)) in annotate_browser__find_string()
556 if (al->line && strstr(al->line, s) != NULL) in annotate_browser__find_string()
557 return al; in annotate_browser__find_string()
565 struct annotation_line *al; in __annotate_browser__search() local
568 al = annotate_browser__find_string(browser, browser->search_bf, &idx); in __annotate_browser__search()
569 if (al == NULL) { in __annotate_browser__search()
574 annotate_browser__set_top(browser, al, idx); in __annotate_browser__search()
584 struct annotation_line *al = browser->selection; in annotate_browser__find_string_reverse() local
587 list_for_each_entry_continue_reverse(al, ¬es->src->source, node) { in annotate_browser__find_string_reverse()
588 if (annotation_line__filter(al, notes)) in annotate_browser__find_string_reverse()
593 if (al->line && strstr(al->line, s) != NULL) in annotate_browser__find_string_reverse()
594 return al; in annotate_browser__find_string_reverse()
602 struct annotation_line *al; in __annotate_browser__search_reverse() local
605 al = annotate_browser__find_string_reverse(browser, browser->search_bf, &idx); in __annotate_browser__search_reverse()
606 if (al == NULL) { in __annotate_browser__search_reverse()
611 annotate_browser__set_top(browser, al, idx); in __annotate_browser__search_reverse()