/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_riscv.c | 426 DIS_RISCV_JIMM_11(instr) | DIS_RISCV_JIMM_10_1(instr); in dis_riscv_jtype_32() 701 if (DIS_RISCV_RVA_AQ(instr) && DIS_RISCV_RVA_RL(instr)) { in dis_riscv_rv32a_load() 1386 ((instr & 0x1000) >> 7) | ((instr & 0x0070) >> 2); in dis_riscv_c_lwsp() 1398 ((instr & 0x1000) >> 7) | ((instr & 0x0060) >> 2); in dis_riscv_c_ldsp() 1410 ((instr & 0x1000) >> 7) | ((instr & 0x0070) >> 2); in dis_riscv_c_flwsp() 1422 ((instr & 0x1000) >> 7) | ((instr & 0x0060) >> 2); in dis_riscv_c_fldsp() 1534 DIS_RISCV_C_J_9_8(instr) | DIS_RISCV_C_J_7(instr) | in dis_riscv_c_j() 1535 DIS_RISCV_C_J_6(instr) | DIS_RISCV_C_J_5(instr) | in dis_riscv_c_j() 1536 DIS_RISCV_C_J_4(instr) | DIS_RISCV_C_J_3_1(instr); in dis_riscv_c_j() 1576 DIS_RISCV_C_B_5(instr) | DIS_RISCV_C_B_4_3(instr) | in dis_riscv_c_branch() [all …]
|
H A D | dis_sparc.c | 228 uint32_t instr; in dis_sparc_disassemble() local 231 if (dhp->dh_read(dhp->dh_data, addr, &instr, sizeof (instr)) != in dis_sparc_disassemble() 232 sizeof (instr)) in dis_sparc_disassemble() 243 instr = BE_32(instr); in dis_sparc_disassemble() 248 do_binary(instr); in dis_sparc_disassemble() 270 if (tp->tbl_fmt(dhp, instr, inp, idx) == 0) in dis_sparc_disassemble() 277 instr); in dis_sparc_disassemble() 283 dis_get_bits(uint32_t instr, int offset, int length) in dis_get_bits() argument 293 val = instr & mask; in dis_get_bits() 325 do_binary(uint32_t instr) in do_binary() argument [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_cg.c | 60 dip->di_instr = instr; in dt_cg_node_alloc() 197 dif_instr_t instr; in dt_cg_ptrsize() local 248 dif_instr_t instr; in dt_cg_field_get() local 332 dif_instr_t instr; in dt_cg_field_set() local 412 dif_instr_t instr; in dt_cg_store() local 477 dif_instr_t instr; in dt_cg_typecast() local 604 dif_instr_t instr; in dt_cg_arithmetic_op() local 647 dif_instr_t instr; in dt_cg_prearith_op() local 704 dif_instr_t instr; in dt_cg_postarith_op() local 1398 uint32_t instr; in dt_cg_xlate_member() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld_db/sparcv9/ |
H A D | plt64_resolution.c | 54 instr_t instr[8]; in plt64_resolution() local 102 if (instr[0] != M_MOVO7TOG5) { in plt64_resolution() 104 EC_ADDR(pltaddr), EC_ADDR(instr[0]))); in plt64_resolution() 113 pltptr = instr[3] & S_MASK(12); in plt64_resolution() 160 if ((instr[0] != M_NOP) && in plt64_resolution() 172 } else if ((instr[0] == M_NOP) && in plt64_resolution() 191 d22 = instr[1] & S_MASK(22); in plt64_resolution() 198 } else if ((instr[0] == M_NOP) && in plt64_resolution() 217 d19 = instr[1] & S_MASK(22); in plt64_resolution() 253 } else if (instr[3] == M_JMPL) { in plt64_resolution() [all …]
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetzcent.c | 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() 197 if (*instr == '=' || *instr == ';') in tsol_sgetzcent() 203 instr++; in tsol_sgetzcent() 225 instr = nextf + 1; in tsol_sgetzcent() 243 instr = cp + 1; in tsol_sgetzcent() [all …]
|
/illumos-gate/usr/src/uts/sparc/dtrace/ |
H A D | fbt.c | 280 !(FBT_FMT3_ISIMM(instr) && FBT_FMT3_SIMM13(instr) == 0)) 458 ret = FBT_BDEST(instr, *instr); in fbt_patch_entry() 460 ret = FBT_BPCCDEST(instr, *instr); in fbt_patch_entry() 649 if (*instr < (uintptr_t)instr && in fbt_canpatch_retl() 650 *instr >= (uintptr_t)instr - offset) in fbt_canpatch_retl() 687 uint32_t cti = *instr, restore = *(instr + 1), rs1, dest; in fbt_patch_return() 993 return (annul ? FBT_BAA(instr, va) : FBT_BA(instr, va)); in fbt_patch_retl() 1193 instr = base; in fbt_provide_module() 1228 if (!FBT_IS_BA(*instr) && !FBT_IS_BAPCC(*instr)) { in fbt_provide_module() 1262 instr++; in fbt_provide_module() [all …]
|
H A D | fasttrap_isa.c | 1074 if (instr != FASTTRAP_INSTR && instr != BREAKPOINT_INSTR) in fasttrap_tracepoint_remove() 1086 uint32_t instr; in fasttrap_tracepoint_init() local 1111 if (OP(instr) == 1) { in fasttrap_tracepoint_init() 1161 if (A(instr) != 0) in fasttrap_tracepoint_init() 1179 if (A(instr) != 0) in fasttrap_tracepoint_init() 1206 if (A(instr) != 0) in fasttrap_tracepoint_init() 1228 if (A(instr) != 0) in fasttrap_tracepoint_init() 1246 if (A(instr) != 0) in fasttrap_tracepoint_init() 1279 I(instr) == 1 && RD(instr) == R_SP) in fasttrap_tracepoint_init() 1356 (uread(p, &instr, 4, pc - sizeof (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() 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() 117 instr++; in sdt_initialize() 120 *instr++ = SDT_RET; in sdt_initialize() 121 *instr++ = SDT_RESTORE; in sdt_initialize() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | instr_size.c | 69 uchar_t **instr = p; in dtrace_dis_get_byte() local 71 ret = **instr; in dtrace_dis_get_byte() 72 *instr += 1; in dtrace_dis_get_byte() 95 x.d86_data = (void **)&instr; in dtrace_dis_isize() 113 dtrace_instr_size_isa(uchar_t *instr, model_t model, int *rmindex) in dtrace_instr_size_isa() argument 115 return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, model, rmindex)); in dtrace_instr_size_isa() 119 dtrace_instr_size(uchar_t *instr) in dtrace_instr_size() argument 121 return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, DATAMODEL_NATIVE, in dtrace_instr_size() 129 uchar_t instr[16]; /* maximum size instruction */ in instr_size() local 132 (void) copyin_nowatch(pc, (caddr_t)instr, sizeof (instr)); in instr_size() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld_db/sparc/ |
H A D | plt32_resolution.c | 51 unsigned int instr[4]; in plt32_resolution() local 61 if (ps_pread(rap->rd_psp, pltaddr, (char *)instr, in plt32_resolution() 72 if ((instr[0] != M_NOP) && in plt32_resolution() 73 ((instr[1] & (~(S_MASK(22)))) == M_BA_A)) { in plt32_resolution() 99 hi_bits = instr[1] & S_MASK(22); /* 31..10 */ in plt32_resolution() 100 lo_bits = instr[2] & S_MASK(10); /* 09..00 */ in plt32_resolution() 104 } else if ((instr[0] == M_NOP) && in plt32_resolution() 105 ((instr[1] & (~(S_MASK(22)))) == M_BA_A)) { in plt32_resolution() 119 d22 = instr[1] & S_MASK(22); in plt32_resolution() 124 } else if ((instr[0] == M_NOP) && in plt32_resolution() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | compat_common.c | 70 const char *instr, in str2auuser_s() argument 89 const char *instr, in str2userattr_s() argument 279 const char *instr; 573 char *instr = be->buf; local 618 if (first != instr) { 619 instr = first; 789 if (instr[0] != '+' && instr[0] != '-') { 872 if (instr[1] == '@') { 912 if (instr[0] == '-') 1056 instr + 1); [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/dtrace/ |
H A D | dof.c | 41 DIF_INSTR_R1(instr), DIF_INSTR_R2(instr), DIF_INSTR_RD(instr)); in dis_log() 56 DIF_INSTR_R1(instr), DIF_INSTR_RD(instr)); in dis_load() 64 DIF_INSTR_R1(instr), DIF_INSTR_RD(instr)); in dis_store() 79 DIF_INSTR_R1(instr), DIF_INSTR_RD(instr)); in dis_r1rd() 87 DIF_INSTR_R1(instr), DIF_INSTR_R2(instr)); in dis_cmp() 157 var, DIF_INSTR_R2(instr), DIF_INSTR_RD(instr)); in dis_lda() 251 name, type, DIF_INSTR_R2(instr), DIF_INSTR_RS(instr)); in dis_pushts() 262 DIF_INSTR_XLREF(instr), DIF_INSTR_RD(instr)); in dis_xlate() 383 dif_instr_t instr, opcode; in dis() local 410 uintptr_t instr, limit; in difo() local [all …]
|
/illumos-gate/usr/src/cmd/expr/ |
H A D | compile.c | 102 compile(const char *instr, char *expbuf, char *endbuf) in compile() argument 104 return (dhl_compile(instr, expbuf, endbuf)); in compile() 108 step(const char *instr, const char *expbuf) in step() argument 110 return (dhl_step(instr, expbuf)); in step() 114 advance(const char *instr, const char *expbuf) in advance() argument 116 return (dhl_advance(instr, expbuf)); in advance() 140 dhl_compile(const char *instr, /* the regular expression */ in dhl_compile() argument 149 if (*instr == '\0') { in dhl_compile() 197 if (instr[0] == '^') in dhl_compile() 201 strncpy(&adv_instr[1], instr, 2048); in dhl_compile() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | glue5.c | 39 char *instr; variable 62 instr = 0; in fgrep() 83 instr = xargv[1]; in fgrep() 106 fprintf(stderr, "before execute instr %.20s\n", instr? instr: ""); in fgrep() 108 instr ? instr[inct-3] : '\0', in fgrep() 109 instr ? instr[inct-2] : '\0', in fgrep() 110 instr ? instr[inct-1] : '\0'); in fgrep() 132 p = instr ? instr : buf; in execute() 196 if (instr == 0) in execute() 247 if (instr) in execute() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getprinter.c | 97 char *instr = be->buf; local 100 if ((linelen = _nss_files_read_line(be->f, instr, 109 while (isspace(*instr)) { 110 instr++; 115 if (*instr == '#') 119 if ((*instr == '\n') || (*instr == '\0')) 122 if (filter != 0 && strstr(instr, filter) == 0) { 134 if (check != NULL && (*check)(args, instr, linelen) == 0) 138 parsestat = (*func)(instr, linelen, args->buf.result,
|
H A D | getexecattr.c | 206 char *instr = be->buf; in _exec_files_XY_all() local 222 if (strstr(instr, _priv_exec->name) == NULL) in _exec_files_XY_all() 226 if (strstr(instr, _priv_exec->id) == NULL) in _exec_files_XY_all() 231 (strstr(instr, _priv_exec->id) == NULL)) in _exec_files_XY_all() 240 (strstr(instr, _priv_exec->type) == NULL))) in _exec_files_XY_all() 246 if ((last = strchr(instr, '#')) == NULL) in _exec_files_XY_all() 247 last = instr + linelen; in _exec_files_XY_all() 253 for (first = instr; isspace(*first); first++) in _exec_files_XY_all() 266 if (first != instr) in _exec_files_XY_all() 267 instr = first; in _exec_files_XY_all() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 47 nis_str2spent(instr, lenstr, ent, buffer, buflen) in nis_str2spent() argument 48 const char *instr; in nis_str2spent() 60 if ((p = memchr(instr, ':', lenstr)) == 0) { 63 if ((q = memchr(p + 1, ':', lenstr - (p + 1 - instr))) == 0) { 68 if (q + 1 - instr > buflen) { 74 (void) memcpy(buffer, instr, q - instr); 76 buffer[p - instr] = '\0'; 77 buffer[q - instr] = '\0'; 80 spwd->sp_pwdp = buffer + (p + 1 - instr); 94 r = buffer + (q - instr);
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | bootparams_getbyname.c | 73 const char *instr, in str2bootent() argument 82 if ((instr >= buffer && (buffer + buflen) > instr) || in str2bootent() 83 (buffer >= instr && (instr + lenstr) > buffer)) { in str2bootent() 86 p = instr; in str2bootent() 97 lenstr -= (p - instr); in str2bootent()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 197 uint8_t *instr, *limit; in fbt_provide_module() local 279 while (instr < limit) { in fbt_provide_module() 286 instr += size; in fbt_provide_module() 289 if (instr >= limit || *instr != FBT_PUSHL_EBP) { in fbt_provide_module() 306 fbt->fbtp_savedval = *instr; in fbt_provide_module() 317 if (instr >= limit) in fbt_provide_module() 333 if (*instr != FBT_RET) { in fbt_provide_module() 334 instr += size; in fbt_provide_module() 362 instr += size; in fbt_provide_module() 386 ASSERT(*instr == FBT_RET); in fbt_provide_module() [all …]
|
H A D | fasttrap_isa.c | 272 switch (instr[start]) { in fasttrap_tracepoint_init() 317 rex = instr[start++]; in fasttrap_tracepoint_init() 327 switch (instr[start + 1]) { in fasttrap_tracepoint_init() 426 switch (instr[start]) { in fasttrap_tracepoint_init() 454 tp->ftt_code = instr[start]; in fasttrap_tracepoint_init() 456 (int8_t)instr[start + 1]; in fasttrap_tracepoint_init() 463 tp->ftt_code = instr[start]; in fasttrap_tracepoint_init() 465 (int8_t)instr[start + 1]; in fasttrap_tracepoint_init() 471 (int8_t)instr[start + 1]; in fasttrap_tracepoint_init() 598 uint8_t instr; in fasttrap_tracepoint_remove() local [all …]
|
/illumos-gate/usr/src/lib/libproc/i386/ |
H A D | Pisadep.c | 81 uchar_t instr[16]; in Pissyscall() local 83 if (Pread(P, instr, sizeof (int_syscall_instr), addr) != in Pissyscall() 87 if (memcmp(instr, int_syscall_instr, sizeof (int_syscall_instr)) == 0) in Pissyscall() 163 uchar_t instr[6]; in argcount() local 171 if (Pread(P, instr, sizeof (instr), pc) != sizeof (instr) || in argcount() 172 instr[1] != 0xc4) in argcount() 175 switch (instr[0]) { in argcount() 177 count = instr[2]+(instr[3]<<8)+(instr[4]<<16)+(instr[5]<<24); in argcount() 180 count = instr[2]; in argcount()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 104 __str2hostent(int af, const char *instr, int lenstr, void *ent, char *buffer, in __str2hostent() argument 116 if ((instr >= buffer && (buffer + buflen) > instr) || in __str2hostent() 117 (buffer >= instr && (instr + lenstr) > buffer)) in __str2hostent() 147 p = instr; in __str2hostent() 180 p = instr; in __str2hostent() 184 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 186 limit = instr + lenstr; in __str2hostent() 246 if (limit >= instr + lenstr) in __str2hostent()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/ustack/ |
H A D | tst.helper.c | 44 uint8_t instr[] = { in foo() local 52 uint8_t *fp = malloc(sizeof (instr)); in foo() 57 *((int *)&instr[4]) = (uintptr_t)baz - (uintptr_t)&fp[8]; in foo() 63 bcopy(instr, fp, sizeof (instr)); in foo()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/ |
H A D | tst.helper.c | 44 uint32_t instr[] = { in foo() local 51 uint32_t *fp = malloc(sizeof (instr)); in foo() 56 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2; in foo() 62 bcopy(instr, fp, sizeof (instr)); in foo()
|
/illumos-gate/usr/src/lib/nsswitch/user/common/ |
H A D | user_common.c | 174 char *instr = be->buf; local 177 if ((linelen = _nss_user_read_line(be->f, instr, 184 if (filter != 0 && strstr(instr, filter) == 0) { 196 if ((last = strchr(instr, '#')) == 0) { 197 last = instr + linelen; 205 for (first = instr; isspace(*first); first++) { 222 if (first != instr) { 223 instr = first; 228 parsestat = (*args->str2ent)(instr, linelen, args->buf.result,
|