Lines Matching defs:instr
265 uint8_t instr[FASTTRAP_MAX_INSTR_SIZE + 10];
285 if (uread(p, &instr[0], first, pc) != 0)
288 uread(p, &instr[first], len - first, pc + first) != 0) {
289 bzero(&instr[first], len - first);
296 if ((size = dtrace_instr_size_isa(instr, p_model, &rmindex)) <= 0)
322 switch (instr[start]) {
367 if (p_model == DATAMODEL_LP64 && (instr[start] & 0xf0) == 0x40)
368 rex = instr[start++];
375 bcopy(instr, tp->ftt_instr, FASTTRAP_MAX_INSTR_SIZE);
378 if (instr[start] == FASTTRAP_2_BYTE_OP) {
379 switch (instr[start + 1]) {
397 tp->ftt_code = (instr[start + 1] & 0x0f) | FASTTRAP_JO;
399 *(int32_t *)&instr[start + 2];
402 } else if (instr[start] == FASTTRAP_GROUP5_OP) {
403 uint_t mod = FASTTRAP_MODRM_MOD(instr[start + 1]);
404 uint_t reg = FASTTRAP_MODRM_REG(instr[start + 1]);
405 uint_t rm = FASTTRAP_MODRM_RM(instr[start + 1]);
428 uint8_t sib = instr[start + 2];
470 tp->ftt_dest = *(int8_t *)&instr[start + i];
472 tp->ftt_dest = *(int32_t *)&instr[start + i];
477 switch (instr[start]) {
484 tp->ftt_dest = *(uint16_t *)&instr[start + 1];
504 tp->ftt_code = instr[start];
506 (int8_t)instr[start + 1];
513 tp->ftt_code = instr[start];
515 (int8_t)instr[start + 1];
521 (int8_t)instr[start + 1];
527 *(int32_t *)&instr[start + 1];
534 *(int32_t *)&instr[start + 1];
539 (int8_t)instr[start + 1];
567 ASSERT(instr[start] == FASTTRAP_INSTR);
597 uint_t mod = FASTTRAP_MODRM_MOD(instr[rmindex]);
598 uint_t reg = FASTTRAP_MODRM_REG(instr[rmindex]);
599 uint_t rm = FASTTRAP_MODRM_RM(instr[rmindex]);
639 fasttrap_instr_t instr = FASTTRAP_INSTR;
641 if (uwrite(p, &instr, 1, tp->ftt_pc) != 0)
650 uint8_t instr;
656 if (uread(p, &instr, 1, tp->ftt_pc) != 0)
658 if (instr != FASTTRAP_INSTR)