Lines Matching refs:sym_ext
95 struct sym_ext *sym_ext = priv->ext;
102 if (sym_ext) {
104 path = sym_ext[offset].path;
105 percent += sym_ext[offset].percent;
112 if (sym_ext == NULL && h->sum)
146 static void insert_source_line(struct sym_ext *sym_ext)
148 struct sym_ext *iter;
154 iter = rb_entry(parent, struct sym_ext, node);
156 if (sym_ext->percent > iter->percent)
162 rb_link_node(&sym_ext->node, parent, p);
163 rb_insert_color(&sym_ext->node, &root_sym_ext);
169 struct sym_ext *sym_ext = priv->ext;
172 if (!sym_ext)
176 free(sym_ext[i].path);
177 free(sym_ext);
191 struct sym_ext *sym_ext;
198 sym_ext = priv->ext = calloc(len, sizeof(struct sym_ext));
210 sym_ext[i].percent = 100.0 * h->ip[i] / h->sum;
211 if (sym_ext[i].percent <= 0.5)
223 sym_ext[i].path = malloc(sizeof(char) * line_len + 1);
224 if (!sym_ext[i].path)
227 strcpy(sym_ext[i].path, path);
228 insert_source_line(&sym_ext[i]);
237 struct sym_ext *sym_ext;
254 sym_ext = rb_entry(node, struct sym_ext, node);
255 percent = sym_ext->percent;
257 path = sym_ext->path;