Home | History | Annotate | Download | only in tprof

Lines Matching refs:sym

46 static struct sym **syms = NULL;
52 const struct sym *s1 = *(const struct sym * const *)p1;
53 const struct sym *s2 = *(const struct sym * const *)p2;
72 struct sym **
115 struct sym *sym;
124 sym = emalloc(sizeof(*sym));
125 sym->name = estrdup(elf_strptr(e, sh->sh_link, st->st_name));
126 sym->value = (uint64_t)st->st_value;
127 sym->size = st->st_size;
130 syms[nsyms - 1] = sym;
158 const struct sym *sym = syms[mid];
160 assert(syms[lo]->value >= sym->value);
161 assert(sym->value >= syms[hi]->value);
162 if (sym->value <= value) {
171 const struct sym *sym = syms[i];
173 if (sym->value <= value &&
174 (sym->size == 0 || value - sym->value <= sym->size )) {
175 *offset = value - sym->value;
178 return sym->name;
180 if (sym->size != 0 && sym->value + sym->size < value) {