Lines Matching refs:s
114 static int read_symbol(FILE *in, struct sym_entry *s) in read_symbol() argument
120 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); in read_symbol()
140 _text = s->addr; in read_symbol()
141 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol()
169 s->len = strlen(str) + 1; in read_symbol()
170 s->sym = malloc(s->len + 1); in read_symbol()
171 if (!s->sym) { in read_symbol()
176 strcpy((char *)s->sym + 1, str); in read_symbol()
177 s->sym[0] = stype; in read_symbol()
179 s->percpu_absolute = 0; in read_symbol()
182 check_symbol_range(sym, s->addr, &percpu_range, 1); in read_symbol()
187 static int symbol_in_range(struct sym_entry *s, struct addr_range *ranges, in symbol_in_range() argument
196 if (s->addr >= ar->start && s->addr <= ar->end) in symbol_in_range()
203 static int symbol_valid(struct sym_entry *s) in symbol_valid() argument
237 char *sym_name = (char *)s->sym + 1; in symbol_valid()
247 if (symbol_in_range(s, text_ranges, in symbol_valid()
256 if ((s->addr == text_range_text->end && in symbol_valid()
259 (s->addr == text_range_inittext->end && in symbol_valid()
346 static int symbol_absolute(struct sym_entry *s) in symbol_absolute() argument
348 return s->percpu_absolute; in symbol_absolute()