Lines Matching refs:symp
58 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp)
61 ftp->ftps_pc = (uintptr_t)symp->st_value;
62 ftp->ftps_size = (size_t)symp->st_size;
77 uint8_t *text, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp)
90 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i,
121 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret)
133 if ((text = calloc(1, symp->st_size + 4)) == NULL) {
138 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) {
145 ftp->ftps_pc = (uintptr_t)symp->st_value;
146 ftp->ftps_size = (size_t)symp->st_size;
162 if (dt_pid_has_jump_table(P, dtp, text, ftp, symp)) {
165 symp->st_value + i, dmodel);
198 symp->st_value + i, dmodel);
223 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <=
228 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <=
234 symp->st_size <=
239 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <=
265 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, ulong_t off)
268 ftp->ftps_pc = (uintptr_t)symp->st_value;
269 ftp->ftps_size = (size_t)symp->st_size;
281 if ((text = malloc(symp->st_size)) == NULL) {
286 if (Pread(P, text, symp->st_size, symp->st_value) !=
287 symp->st_size) {
298 if (dt_pid_has_jump_table(P, dtp, text, ftp, symp)) {
303 for (i = 0; i < symp->st_size; i += size) {
320 symp->st_value + i, dmodel);
347 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern)
351 ulong_t i, end = symp->st_size;
356 ftp->ftps_pc = (uintptr_t)symp->st_value;
357 ftp->ftps_size = (size_t)symp->st_size;
360 if ((text = malloc(symp->st_size)) == NULL) {
365 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) {
375 if (dt_pid_has_jump_table(P, dtp, text, ftp, symp)) {
385 symp->st_value + i, dmodel);
400 symp->st_value + i, dmodel);