/titanic_44/usr/src/cmd/sgs/librtld_db/sparcv9/ |
H A D | plt64_resolution.c | 56 instr_t instr[8]; in plt64_resolution() local 96 if (ps_pread(rap->rd_psp, pltaddr, (char *)instr, in plt64_resolution() 104 if (instr[0] != M_MOVO7TOG5) { in plt64_resolution() 106 EC_ADDR(pltaddr), EC_ADDR(instr[0]))); in plt64_resolution() 115 pltptr = instr[3] & S_MASK(12); in plt64_resolution() 152 if (ps_pread(rap->rd_psp, pltaddr, (char *)instr, in plt64_resolution() 162 if ((instr[0] != M_NOP) && in plt64_resolution() 163 ((instr[1] & (~(S_MASK(19)))) == M_BA_A_XCC)) { in plt64_resolution() 174 } else if ((instr[0] == M_NOP) && in plt64_resolution() 175 ((instr[1] & (~(S_MASK(22)))) == M_BA_A)) { in plt64_resolution() [all …]
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | dt_cg.c | 50 dt_cg_node_alloc(uint_t label, dif_instr_t instr) in dt_cg_node_alloc() argument 58 dip->di_instr = instr; in dt_cg_node_alloc() 97 dif_instr_t instr = DIF_INSTR_SETX((uint_t)intoff, reg); in dt_cg_xsetx() local 105 dt_irlist_append(dlp, dt_cg_node_alloc(lbl, instr)); in dt_cg_xsetx() 193 dif_instr_t instr; in dt_cg_ptrsize() local 217 instr = DIF_INSTR_FMT(op, dreg, sreg, dreg); in dt_cg_ptrsize() 218 dt_irlist_append(dlp, dt_cg_node_alloc(DT_LBL_NONE, instr)); in dt_cg_ptrsize() 244 dif_instr_t instr; in dt_cg_field_get() local 276 instr = DIF_INSTR_FMT(DIF_OP_SLL, r1, r2, r1); in dt_cg_field_get() 277 dt_irlist_append(dlp, dt_cg_node_alloc(DT_LBL_NONE, instr)); in dt_cg_field_get() [all …]
|
/titanic_44/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetzcent.c | 155 tsol_sgetzcent(const char *instr, int *errp, char **errstrp) in tsol_sgetzcent() argument 176 *errstrp = (char *)instr; in tsol_sgetzcent() 184 instr = parse_entry(zc->zc_name, sizeof (zc->zc_name), instr, "#;:\n"); in tsol_sgetzcent() 186 *errstrp = (char *)instr; in tsol_sgetzcent() 187 if (*instr == '\0' || *instr == '#' || *instr == '\n') in tsol_sgetzcent() 189 else if (*instr == ':') in tsol_sgetzcent() 195 if (*instr != ':') { in tsol_sgetzcent() 196 *errstrp = (char *)instr; in tsol_sgetzcent() 197 if (*instr == '=' || *instr == ';') in tsol_sgetzcent() 203 instr++; in tsol_sgetzcent() [all …]
|
/titanic_44/usr/src/uts/sparc/dtrace/ |
H A D | fbt.c | 265 #define FBT_BDEST(va, instr) ((uintptr_t)(va) + \ argument 266 (((int32_t)(((instr) & FBT_DISP22_MASK) << 10)) >> 8)) 267 #define FBT_BPCCDEST(va, instr) ((uintptr_t)(va) + \ argument 268 (((int32_t)(((instr) & FBT_DISP19_MASK) << 13)) >> 11)) 269 #define FBT_BPRDEST(va, instr) ((uintptr_t)(va) + \ argument 270 (((int32_t)((FBT_DISP16(instr)) << 16)) >> 14)) 276 #define FBT_IS_SAVE(instr) \ argument 277 (FBT_FMT3_OP(instr) == FBT_OP_SAVE && \ 278 FBT_FMT3_RD(instr) == FBT_REG_O6 && \ 279 FBT_FMT3_RS1(instr) == FBT_REG_O6 && \ [all …]
|
H A D | fasttrap_isa.c | 1055 fasttrap_instr_t instr = FASTTRAP_INSTR; in fasttrap_tracepoint_install() local 1057 if (uwrite(p, &instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_install() 1066 fasttrap_instr_t instr; in fasttrap_tracepoint_remove() local 1072 if (uread(p, &instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_remove() 1074 if (instr != FASTTRAP_INSTR && instr != BREAKPOINT_INSTR) in fasttrap_tracepoint_remove() 1086 uint32_t instr; in fasttrap_tracepoint_init() local 1095 if (uread(p, &instr, 4, pc) != 0) in fasttrap_tracepoint_init() 1111 if (OP(instr) == 1) { in fasttrap_tracepoint_init() 1116 disp = DISP30(instr) << 2; in fasttrap_tracepoint_init() 1119 } else if (OP(instr) == 0) { in fasttrap_tracepoint_init() [all …]
|
H A D | sdt.c | 101 uint32_t *instr = *trampoline; in sdt_initialize() local 103 *instr++ = SDT_SAVE; in sdt_initialize() 106 *instr++ = SDT_SETHI(sdp->sdp_id, SDT_REG_O0); in sdt_initialize() 107 *instr++ = SDT_ORLO(SDT_REG_O0, sdp->sdp_id, SDT_REG_O0); in sdt_initialize() 109 *instr++ = SDT_ORSIMM13(SDT_REG_G0, sdp->sdp_id, SDT_REG_O0); in sdt_initialize() 112 *instr++ = SDT_MOV(SDT_REG_I0, SDT_REG_O1); in sdt_initialize() 113 *instr++ = SDT_MOV(SDT_REG_I1, SDT_REG_O2); in sdt_initialize() 114 *instr++ = SDT_MOV(SDT_REG_I2, SDT_REG_O3); in sdt_initialize() 115 *instr++ = SDT_MOV(SDT_REG_I3, SDT_REG_O4); in sdt_initialize() 116 *instr = SDT_CALL(instr, dtrace_probe); in sdt_initialize() [all …]
|
/titanic_44/usr/src/uts/i86pc/os/ |
H A D | instr_size.c | 71 uchar_t **instr = p; in dtrace_dis_get_byte() local 73 ret = **instr; in dtrace_dis_get_byte() 74 *instr += 1; in dtrace_dis_get_byte() 89 dtrace_dis_isize(uchar_t *instr, dis_isize_t which, model_t model, int *rmindex) in dtrace_dis_isize() argument 97 x.d86_data = (void **)&instr; in dtrace_dis_isize() 115 dtrace_instr_size_isa(uchar_t *instr, model_t model, int *rmindex) in dtrace_instr_size_isa() argument 117 return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, model, rmindex)); in dtrace_instr_size_isa() 121 dtrace_instr_size(uchar_t *instr) in dtrace_instr_size() argument 123 return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, DATAMODEL_NATIVE, in dtrace_instr_size() 131 uchar_t instr[16]; /* maximum size instruction */ in instr_size() local [all …]
|
/titanic_44/usr/src/cmd/sgs/librtld_db/sparc/ |
H A D | plt32_resolution.c | 53 unsigned int instr[4]; in plt32_resolution() local 63 if (ps_pread(rap->rd_psp, pltaddr, (char *)instr, in plt32_resolution() 74 if ((instr[0] != M_NOP) && in plt32_resolution() 75 ((instr[1] & (~(S_MASK(22)))) == M_BA_A)) { in plt32_resolution() 85 } else if ((instr[2] & (~(S_MASK(13)))) == M_JMPL) { in plt32_resolution() 101 hi_bits = instr[1] & S_MASK(22); /* 31..10 */ in plt32_resolution() 102 lo_bits = instr[2] & S_MASK(10); /* 09..00 */ in plt32_resolution() 106 } else if ((instr[0] == M_NOP) && in plt32_resolution() 107 ((instr[1] & (~(S_MASK(22)))) == M_BA_A)) { in plt32_resolution() 121 d22 = instr[1] & S_MASK(22); in plt32_resolution() [all …]
|
/titanic_44/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 205 uint8_t *instr, *limit; in fbt_provide_module() local 284 instr = (uint8_t *)sym->st_value; in fbt_provide_module() 288 while (instr < limit) { in fbt_provide_module() 289 if (*instr == FBT_PUSHL_EBP) in fbt_provide_module() 292 if ((size = dtrace_instr_size(instr)) <= 0) in fbt_provide_module() 295 instr += size; in fbt_provide_module() 298 if (instr >= limit || *instr != FBT_PUSHL_EBP) { in fbt_provide_module() 307 if (instr[0] != FBT_PUSHL_EBP) in fbt_provide_module() 310 if (!(instr[1] == FBT_MOVL_ESP_EBP0_V0 && in fbt_provide_module() 311 instr[2] == FBT_MOVL_ESP_EBP1_V0) && in fbt_provide_module() [all …]
|
H A D | fasttrap_isa.c | 232 uint8_t instr[FASTTRAP_MAX_INSTR_SIZE + 10]; in fasttrap_tracepoint_init() local 247 if (uread(p, &instr[0], first, pc) != 0) in fasttrap_tracepoint_init() 250 uread(p, &instr[first], len - first, pc + first) != 0) { in fasttrap_tracepoint_init() 251 bzero(&instr[first], len - first); in fasttrap_tracepoint_init() 258 if ((size = dtrace_instr_size_isa(instr, p->p_model, &rmindex)) <= 0) in fasttrap_tracepoint_init() 284 switch (instr[start]) { in fasttrap_tracepoint_init() 329 if (p->p_model == DATAMODEL_LP64 && (instr[start] & 0xf0) == 0x40) in fasttrap_tracepoint_init() 330 rex = instr[start++]; in fasttrap_tracepoint_init() 337 bcopy(instr, tp->ftt_instr, FASTTRAP_MAX_INSTR_SIZE); in fasttrap_tracepoint_init() 340 if (instr[start] == FASTTRAP_2_BYTE_OP) { in fasttrap_tracepoint_init() [all …]
|
/titanic_44/usr/src/lib/nsswitch/compat/common/ |
H A D | compat_common.c | 51 extern int str2passwd(const char *instr, int lenstr, void *ent, 53 extern int str2spwd(const char *instr, int lenstr, void *ent, 55 extern int str2group(const char *instr, int lenstr, void *ent, 70 const char *instr, in str2auuser_s() argument 82 (void) strncpy(buffer, instr, buflen); in str2auuser_s() 89 const char *instr, in str2userattr_s() argument 101 (void) strncpy(buffer, instr, buflen); in str2userattr_s() 276 do_merge(be, args, instr, linelen) in do_merge() argument 279 const char *instr; 286 const char *end = instr + linelen; [all …]
|
/titanic_44/usr/src/cmd/expr/ |
H A D | compile.c | 75 static char * dhl_compile(const char *instr, char *ep, char *endbuf); 103 compile(const char *instr, char *expbuf, char *endbuf) in compile() argument 105 return (dhl_compile(instr, expbuf, endbuf)); in compile() 109 step(const char *instr, const char *expbuf) in step() argument 111 return (dhl_step(instr, expbuf)); in step() 115 advance(const char *instr, const char *expbuf) in advance() argument 117 return (dhl_advance(instr, expbuf)); in advance() 141 dhl_compile(instr, expbuf, endbuf) in dhl_compile() argument 142 const char *instr; /* the regular expression */ in dhl_compile() 151 if (*instr == (char) NULL) { [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/dtrace/ |
H A D | dof.c | 40 dis_log(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_log() argument 43 DIF_INSTR_R1(instr), DIF_INSTR_R2(instr), DIF_INSTR_RD(instr)); in dis_log() 48 dis_branch(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_branch() argument 50 mdb_printf("%-4s %u", name, DIF_INSTR_LABEL(instr)); in dis_branch() 55 dis_load(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_load() argument 58 DIF_INSTR_R1(instr), DIF_INSTR_RD(instr)); in dis_load() 63 dis_store(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_store() argument 66 DIF_INSTR_R1(instr), DIF_INSTR_RD(instr)); in dis_store() 71 dis_str(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_str() argument 78 dis_r1rd(const dtrace_difo_t *dp, const char *name, dif_instr_t instr) in dis_r1rd() argument [all …]
|
/titanic_44/usr/src/cmd/refer/ |
H A D | glue5.c | 42 char *instr; variable 65 instr = 0; in fgrep() 86 instr = xargv[1]; in fgrep() 109 fprintf(stderr, "before execute instr %.20s\n", instr? instr: ""); in fgrep() 111 instr ? instr[inct-3] : '\0', in fgrep() 112 instr ? instr[inct-2] : '\0', in fgrep() 113 instr ? instr[inct-1] : '\0'); in fgrep() 133 ccount = instr ? inct : 0; in execute() 135 p = instr ? instr : buf; in execute() 148 fprintf(stderr, "ex loop ccount %d instr %o\n", ccount, instr); in execute() [all …]
|
/titanic_44/usr/src/lib/libdisasm/common/ |
H A D | dis_sparc.c | 233 uint32_t instr; in dis_sparc_disassemble() local 236 if (dhp->dh_read(dhp->dh_data, addr, &instr, sizeof (instr)) != in dis_sparc_disassemble() 237 sizeof (instr)) in dis_sparc_disassemble() 248 instr = BE_32(instr); in dis_sparc_disassemble() 253 do_binary(instr); in dis_sparc_disassemble() 258 idx = dis_get_bits(instr, tp->tbl_field, tp->tbl_len); in dis_sparc_disassemble() 275 if (tp->tbl_fmt(dhp, instr, inp, idx) == 0) in dis_sparc_disassemble() 282 instr); in dis_sparc_disassemble() 288 dis_get_bits(uint32_t instr, int offset, int length) in dis_get_bits() argument 298 val = instr & mask; in dis_get_bits() [all …]
|
/titanic_44/usr/src/lib/libsocket/inet/ |
H A D | bootparams_getbyname.c | 75 const char *instr, in str2bootent() argument 84 if ((instr >= buffer && (buffer + buflen) > instr) || in str2bootent() 85 (buffer >= instr && (instr + lenstr) > buffer)) { in str2bootent() 88 p = instr; in str2bootent() 99 lenstr -= (p - instr); in str2bootent()
|
/titanic_44/usr/src/lib/nsswitch/files/common/ |
H A D | getprinter.c | 99 char *instr = be->buf; local 102 if ((linelen = _nss_files_read_line(be->f, instr, 111 while (isspace(*instr)) { 112 instr++; 117 if (*instr == '#') 121 if ((*instr == '\n') || (*instr == '\0')) 124 if (filter != 0 && strstr(instr, filter) == 0) { 136 if (check != NULL && (*check)(args, instr, linelen) == 0) 140 parsestat = (*func)(instr, linelen, args->buf.result,
|
H A D | getexecattr.c | 191 char *instr = be->buf; in _exec_files_XY_all() local 193 linelen = _readbufline(f_buf, f_size, instr, be->minbuf, in _exec_files_XY_all() 207 if (strstr(instr, _priv_exec->name) == NULL) in _exec_files_XY_all() 211 if (strstr(instr, _priv_exec->id) == NULL) in _exec_files_XY_all() 215 if ((strstr(instr, _priv_exec->name) == NULL) || in _exec_files_XY_all() 216 (strstr(instr, _priv_exec->id) == NULL)) in _exec_files_XY_all() 223 (strstr(instr, _priv_exec->policy) == NULL)) || in _exec_files_XY_all() 225 (strstr(instr, _priv_exec->type) == NULL))) in _exec_files_XY_all() 231 if ((last = strchr(instr, '#')) == NULL) in _exec_files_XY_all() 232 last = instr + linelen; in _exec_files_XY_all() [all …]
|
/titanic_44/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 49 nis_str2spent(instr, lenstr, ent, buffer, buflen) in nis_str2spent() argument 50 const char *instr; in nis_str2spent() 62 if ((p = memchr(instr, ':', lenstr)) == 0) { 65 if ((q = memchr(p + 1, ':', lenstr - (p + 1 - instr))) == 0) { 70 if (q + 1 - instr > buflen) { 76 (void) memcpy(buffer, instr, q - instr); 78 buffer[p - instr] = '\0'; 79 buffer[q - instr] = '\0'; 82 spwd->sp_pwdp = buffer + (p + 1 - instr); 96 r = buffer + (q - instr);
|
/titanic_44/usr/src/lib/libproc/i386/ |
H A D | Pisadep.c | 80 uchar_t instr[16]; in Pissyscall() local 82 if (Pread(P, instr, sizeof (int_syscall_instr), addr) != in Pissyscall() 86 if (memcmp(instr, int_syscall_instr, sizeof (int_syscall_instr)) == 0) in Pissyscall() 140 uchar_t instr[6]; in argcount() local 148 if (Pread(P, instr, sizeof (instr), pc) != sizeof (instr) || in argcount() 149 instr[1] != 0xc4) in argcount() 152 switch (instr[0]) { in argcount() 154 count = instr[2]+(instr[3]<<8)+(instr[4]<<16)+(instr[5]<<24); in argcount() 157 count = instr[2]; in argcount()
|
/titanic_44/usr/src/cmd/dtrace/test/tst/i386/ustack/ |
H A D | tst.helper.c | 46 uint8_t instr[] = { in foo() local 54 uint8_t *fp = malloc(sizeof (instr)); in foo() 59 *((int *)&instr[4]) = (uintptr_t)baz - (uintptr_t)&fp[8]; in foo() 65 bcopy(instr, fp, sizeof (instr)); in foo()
|
/titanic_44/usr/src/cmd/dtrace/test/tst/sparc/ustack/ |
H A D | tst.helper.c | 46 uint32_t instr[] = { in foo() local 53 uint32_t *fp = malloc(sizeof (instr)); in foo() 58 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2; in foo() 64 bcopy(instr, fp, sizeof (instr)); in foo()
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 106 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument 118 if ((instr >= buffer && (buffer + buflen) > instr) || in __str2hostent() 119 (buffer >= instr && (instr + lenstr) > buffer)) in __str2hostent() 149 p = instr; in __str2hostent() 182 p = instr; in __str2hostent() 186 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 188 limit = instr + lenstr; in __str2hostent() 248 if (limit >= instr + lenstr) in __str2hostent()
|
/titanic_44/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kvm_isadep.c | 362 mdb_instr_t instr; in kmt_step_out() local 364 if (mdb_tgt_vread(t, &instr, sizeof (instr), pc) != in kmt_step_out() 365 sizeof (instr)) { in kmt_step_out() 371 if (OP(instr) == OP_ARITH && OP3(instr) == OP3_SAVE) in kmt_step_out() 422 mdb_instr_t instr; in kmt_next() local 432 if (mdb_tgt_vread(t, &instr, sizeof (instr), pc) != in kmt_next() 433 sizeof (instr)) { in kmt_next() 439 if (OP(instr) == OP_ARITH && OP3(instr) == OP3_RESTORE) { in kmt_next() 441 } else if (OP(instr) == OP_ARITH && OP3(instr) == OP3_OR && in kmt_next() 442 RD(instr) == KREG_O7) { in kmt_next() [all …]
|
/titanic_44/usr/src/lib/nsswitch/user/common/ |
H A D | user_common.c | 176 char *instr = be->buf; local 179 if ((linelen = _nss_user_read_line(be->f, instr, 186 if (filter != 0 && strstr(instr, filter) == 0) { 198 if ((last = strchr(instr, '#')) == 0) { 199 last = instr + linelen; 207 for (first = instr; isspace(*first); first++) { 224 if (first != instr) { 225 instr = first; 230 parsestat = (*args->str2ent)(instr, linelen, args->buf.result,
|