Lines Matching refs:al
44 struct annotation_line *al = list_entry(entry, struct annotation_line, node);
45 return annotation_line__filter(al, notes);
95 struct annotation_line *al = list_entry(entry, struct annotation_line, node);
117 annotation_line__write(al, notes, &ops, ab->opts);
120 ab->selection = al;
125 struct disasm_line *pos = list_prev_entry(cursor, al.node);
129 while (pos && pos->al.offset == -1) {
130 pos = list_prev_entry(pos, al.node);
199 from = cursor->al.idx_asm;
202 from = (u64)cursor->al.idx;
250 struct annotation_line *al)
261 if (disasm__cmp(al, l, browser->opts->percent_type) < 0)
266 rb_link_node(&al->rb_node, parent, p);
267 rb_insert_color(&al->rb_node, root);
321 list_for_each_entry(pos, ¬es->src->source, al.node) {
325 if (pos->al.offset == -1) {
326 RB_CLEAR_NODE(&pos->al.rb_node);
330 for (i = 0; i < pos->al.data_nr; i++) {
333 percent = annotation_data__percent(&pos->al.data[i],
340 if (max_percent < 0.01 && pos->al.ipc == 0) {
341 RB_CLEAR_NODE(&pos->al.rb_node);
344 disasm_rb_tree__insert(browser, &pos->al);
353 struct annotation_line *al)
355 struct annotation_line *it = al;
364 it = al;
377 struct annotation_line *al;
381 al = list_entry(browser->b.top, struct annotation_line, node);
384 if (al->idx_asm < offset)
385 offset = al->idx;
390 browser->b.top_idx = al->idx - offset;
391 browser->b.index = al->idx;
393 if (al->idx_asm < 0) {
395 al = annotate_browser__find_next_asm_line(browser, al);
396 if (!al) {
402 if (al->idx_asm < offset)
403 offset = al->idx_asm;
408 browser->b.top_idx = al->idx_asm - offset;
409 browser->b.index = al->idx_asm;
421 struct annotation_line *al = &cursor->al;
423 if (al->offset != -1)
425 else if (al->fileloc == NULL)
429 sprintf (help_line, "Source file location: %s", al->fileloc);
500 list_for_each_entry(pos, ¬es->src->source, al.node) {
501 if (pos->al.offset == offset)
503 if (!annotation_line__filter(&pos->al, notes))
533 annotate_browser__set_top(browser, &dl->al, idx);
543 struct annotation_line *al = browser->selection;
546 list_for_each_entry_continue(al, ¬es->src->source, node) {
547 if (annotation_line__filter(al, notes))
552 if (al->line && strstr(al->line, s) != NULL)
553 return al;
561 struct annotation_line *al;
564 al = annotate_browser__find_string(browser, browser->search_bf, &idx);
565 if (al == NULL) {
570 annotate_browser__set_top(browser, al, idx);
580 struct annotation_line *al = browser->selection;
583 list_for_each_entry_continue_reverse(al, ¬es->src->source, node) {
584 if (annotation_line__filter(al, notes))
589 if (al->line && strstr(al->line, s) != NULL)
590 return al;
598 struct annotation_line *al;
601 al = annotate_browser__find_string_reverse(browser, browser->search_bf, &idx);
602 if (al == NULL) {
607 annotate_browser__set_top(browser, al, idx);