Lines Matching refs:src_line
126 struct source_line *src_line = notes->src->lines;
135 if (src_line) {
137 path = src_line[offset].path;
138 percent += src_line[offset].percent;
145 if (src_line == NULL && h->sum)
368 static void insert_source_line(struct rb_root *root, struct source_line *src_line)
378 if (src_line->percent > iter->percent)
384 rb_link_node(&src_line->node, parent, p);
385 rb_insert_color(&src_line->node, root);
391 struct source_line *src_line = notes->src->lines;
395 free(src_line[i].path);
397 free(src_line);
409 struct source_line *src_line;
416 src_line = notes->src->lines = calloc(len, sizeof(struct source_line));
435 src_line[i].percent = 100.0 * h->addr[i] / h->sum;
436 if (src_line[i].percent <= 0.5)
449 src_line[i].path = malloc(sizeof(char) * line_len + 1);
450 if (!src_line[i].path)
453 strcpy(src_line[i].path, path);
454 insert_source_line(root, &src_line[i]);
465 struct source_line *src_line;
482 src_line = rb_entry(node, struct source_line, node);
483 percent = src_line->percent;
485 path = src_line->path;