Defined in 2 files as a prototype:
- arch/x86/include/asm/insn.h, line 160 (as a prototype)
- tools/arch/x86/include/asm/insn.h, line 160 (as a prototype)
Defined in 2 files as a function:
Referenced in 5 files:
- arch/x86/events/intel/ds.c, line 2068
- arch/x86/events/utils.c, line 168
- arch/x86/lib/insn-eval.c, line 1586
- arch/x86/lib/insn.c, line 784
- tools/arch/x86/lib/insn.c, line 784
Smatch caller information:
arch/x86/events/intel/ds.c intel_pmu_pebs_fixup_ip() -> insn_get_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | insn | 5944919894212804608 |
| PARAM_VALUE | 0 | insn->addr_bytes | 4,8 |
| PARAM_VALUE | 0 | insn->attr | 0 |
| PARAM_VALUE | 0 | insn->displacement.got | 0 |
| PARAM_VALUE | 0 | insn->displacement.nbytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.value | 0 |
| PARAM_VALUE | 0 | insn->emulate_prefix_size | 0 |
| PARAM_VALUE | 0 | insn->end_kaddr | 4096-ptr_max |
| PARAM_VALUE | 0 | insn->immediate.got | 0 |
| PARAM_VALUE | 0 | insn->immediate.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.value | 0 |
| PARAM_VALUE | 0 | insn->immediate1.got | 0 |
| PARAM_VALUE | 0 | insn->immediate1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.value | 0 |
| PARAM_VALUE | 0 | insn->immediate2.got | 0 |
| PARAM_VALUE | 0 | insn->immediate2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.value | 0 |
| PARAM_VALUE | 0 | insn->length | 0 |
| PARAM_VALUE | 0 | insn->modrm.got | 0 |
| PARAM_VALUE | 0 | insn->modrm.nbytes | 0 |
| PARAM_VALUE | 0 | insn->modrm.value | 0 |
| PARAM_VALUE | 0 | insn->moffset1.got | 0 |
| PARAM_VALUE | 0 | insn->moffset1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.value | 0 |
| PARAM_VALUE | 0 | insn->moffset2.got | 0 |
| PARAM_VALUE | 0 | insn->moffset2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.value | 0 |
| PARAM_VALUE | 0 | insn->opcode.got | 0 |
| PARAM_VALUE | 0 | insn->opcode.nbytes | 0 |
| PARAM_VALUE | 0 | insn->opnd_bytes | 4 |
| PARAM_VALUE | 0 | insn->prefixes.got | 0 |
| PARAM_VALUE | 0 | insn->prefixes.nbytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->sib.got | 0 |
| PARAM_VALUE | 0 | insn->sib.nbytes | 0 |
| PARAM_VALUE | 0 | insn->sib.value | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->x86_64 | 0-1 |
| PARAM_VALUE | 0 | insn->xop_prefix.nbytes | 0 |
| MEM_ZERO | 0 | insn |
arch/x86/lib/insn.c insn_decode() -> insn_get_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | insn | 4096-ptr_max |
| PARAM_VALUE | 0 | insn->addr_bytes | 4,8 |
| PARAM_VALUE | 0 | insn->attr | 0 |
| PARAM_VALUE | 0 | insn->displacement.bytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.got | 0 |
| PARAM_VALUE | 0 | insn->displacement.nbytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.value | 0 |
| PARAM_VALUE | 0 | insn->emulate_prefix_size | 0 |
| PARAM_VALUE | 0 | insn->end_kaddr | 4096-ptr_max |
| PARAM_VALUE | 0 | insn->immediate.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.got | 0 |
| PARAM_VALUE | 0 | insn->immediate.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.value | 0 |
| PARAM_VALUE | 0 | insn->immediate1.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.got | 0 |
| PARAM_VALUE | 0 | insn->immediate1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.value | 0 |
| PARAM_VALUE | 0 | insn->immediate2.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.got | 0 |
| PARAM_VALUE | 0 | insn->immediate2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.value | 0 |
| PARAM_VALUE | 0 | insn->kaddr | 0 |
| PARAM_VALUE | 0 | insn->length | 0 |
| PARAM_VALUE | 0 | insn->modrm.bytes | 0 |
| PARAM_VALUE | 0 | insn->modrm.got | 0 |
| PARAM_VALUE | 0 | insn->modrm.nbytes | 0 |
| PARAM_VALUE | 0 | insn->modrm.value | 0 |
| PARAM_VALUE | 0 | insn->moffset1.bytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.got | 0 |
| PARAM_VALUE | 0 | insn->moffset1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.value | 0 |
| PARAM_VALUE | 0 | insn->moffset2.bytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.got | 0 |
| PARAM_VALUE | 0 | insn->moffset2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.value | 0 |
| PARAM_VALUE | 0 | insn->next_byte | 0 |
| PARAM_VALUE | 0 | insn->opcode.bytes | 0 |
| PARAM_VALUE | 0 | insn->opcode.got | 0 |
| PARAM_VALUE | 0 | insn->opcode.nbytes | 0 |
| PARAM_VALUE | 0 | insn->opcode.value | 0 |
| PARAM_VALUE | 0 | insn->opnd_bytes | 4 |
| PARAM_VALUE | 0 | insn->prefixes.bytes | 0 |
| PARAM_VALUE | 0 | insn->prefixes.got | 0 |
| PARAM_VALUE | 0 | insn->prefixes.nbytes | 0 |
| PARAM_VALUE | 0 | insn->prefixes.value | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->sib.bytes | 0 |
| PARAM_VALUE | 0 | insn->sib.got | 0 |
| PARAM_VALUE | 0 | insn->sib.nbytes | 0 |
| PARAM_VALUE | 0 | insn->sib.value | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->x86_64 | 0-1 |
| PARAM_VALUE | 0 | insn->xop_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.value | 0 |
| DATA_SOURCE | 0 | insn | $0 |
| FUZZY_MAX | 0 | insn->x86_64 | 1 |
| MEM_ZERO | 0 | insn | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &uprobe->consumer_rwsem | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &jump_label_mutex | ||
| HALF_LOCKED2 | global &text_mutex |
arch/x86/lib/insn-eval.c insn_decode_from_regs() -> insn_get_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | insn | 3929561995604525064,6747283956112052232,7961320843205591040 |
| PARAM_VALUE | 0 | insn->addr_bytes | 0-15 |
| PARAM_VALUE | 0 | insn->attr | 0 |
| PARAM_VALUE | 0 | insn->displacement.bytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.got | 0 |
| PARAM_VALUE | 0 | insn->displacement.nbytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.value | 0 |
| PARAM_VALUE | 0 | insn->emulate_prefix_size | 0 |
| PARAM_VALUE | 0 | insn->end_kaddr | 4096-ptr_max |
| PARAM_VALUE | 0 | insn->immediate.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.got | 0 |
| PARAM_VALUE | 0 | insn->immediate.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.value | 0 |
| PARAM_VALUE | 0 | insn->immediate1.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.got | 0 |
| PARAM_VALUE | 0 | insn->immediate1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.value | 0 |
| PARAM_VALUE | 0 | insn->immediate2.bytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.got | 0 |
| PARAM_VALUE | 0 | insn->immediate2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.value | 0 |
| PARAM_VALUE | 0 | insn->length | 0 |
| PARAM_VALUE | 0 | insn->modrm.bytes | 0 |
| PARAM_VALUE | 0 | insn->modrm.got | 0 |
| PARAM_VALUE | 0 | insn->modrm.nbytes | 0 |
| PARAM_VALUE | 0 | insn->modrm.value | 0 |
| PARAM_VALUE | 0 | insn->moffset1.bytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.got | 0 |
| PARAM_VALUE | 0 | insn->moffset1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.value | 0 |
| PARAM_VALUE | 0 | insn->moffset2.bytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.got | 0 |
| PARAM_VALUE | 0 | insn->moffset2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.value | 0 |
| PARAM_VALUE | 0 | insn->opcode.bytes | 0 |
| PARAM_VALUE | 0 | insn->opcode.got | 0 |
| PARAM_VALUE | 0 | insn->opcode.nbytes | 0 |
| PARAM_VALUE | 0 | insn->opcode.value | 0 |
| PARAM_VALUE | 0 | insn->opnd_bytes | 0-15 |
| PARAM_VALUE | 0 | insn->prefixes.bytes | 0 |
| PARAM_VALUE | 0 | insn->prefixes.got | 0 |
| PARAM_VALUE | 0 | insn->prefixes.nbytes | 0 |
| PARAM_VALUE | 0 | insn->prefixes.value | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->rex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->sib.bytes | 0 |
| PARAM_VALUE | 0 | insn->sib.got | 0 |
| PARAM_VALUE | 0 | insn->sib.nbytes | 0 |
| PARAM_VALUE | 0 | insn->sib.value | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->x86_64 | 0-1 |
| PARAM_VALUE | 0 | insn->xop_prefix.bytes | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.got | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.nbytes | 0 |
| PARAM_VALUE | 0 | insn->xop_prefix.value | 0 |
| CAPPED_DATA | 0 | insn->opnd_bytes | 1 |
| DATA_SOURCE | 0 | insn | $0 |
| MEM_ZERO | 0 | insn | |
| PREEMPT_ADD | |||
| USER_DATA | 0 | *insn->end_kaddr | 0-255 |
| USER_DATA | 0 | *insn->kaddr | 0-255[u] |
| USER_DATA | 0 | *insn->next_byte | 0-255 |
arch/x86/events/utils.c get_branch_type() -> insn_get_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | insn | 5918861713348698112 |
| PARAM_VALUE | 0 | insn->displacement.got | 0 |
| PARAM_VALUE | 0 | insn->displacement.nbytes | 0 |
| PARAM_VALUE | 0 | insn->displacement.value | 0 |
| PARAM_VALUE | 0 | insn->end_kaddr | 4096-ptr_max |
| PARAM_VALUE | 0 | insn->immediate.got | 0 |
| PARAM_VALUE | 0 | insn->immediate.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate.value | 0 |
| PARAM_VALUE | 0 | insn->immediate1.got | 0 |
| PARAM_VALUE | 0 | insn->immediate1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate1.value | 0 |
| PARAM_VALUE | 0 | insn->immediate2.got | 0 |
| PARAM_VALUE | 0 | insn->immediate2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->immediate2.value | 0 |
| PARAM_VALUE | 0 | insn->length | 0 |
| PARAM_VALUE | 0 | insn->modrm.got | 0-1 |
| PARAM_VALUE | 0 | insn->modrm.nbytes | 0-1 |
| PARAM_VALUE | 0 | insn->modrm.value | 0-255 |
| PARAM_VALUE | 0 | insn->moffset1.got | 0 |
| PARAM_VALUE | 0 | insn->moffset1.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset1.value | 0 |
| PARAM_VALUE | 0 | insn->moffset2.got | 0 |
| PARAM_VALUE | 0 | insn->moffset2.nbytes | 0 |
| PARAM_VALUE | 0 | insn->moffset2.value | 0 |
| PARAM_VALUE | 0 | insn->opcode.got | 1 |
| PARAM_VALUE | 0 | insn->sib.got | 0 |
| PARAM_VALUE | 0 | insn->sib.nbytes | 0 |
| PARAM_VALUE | 0 | insn->sib.value | 0 |
| PARAM_VALUE | 0 | insn->vex_prefix.value | 0 |
| PARAM_VALUE | 0 | insn->x86_64 | 0-1 |
| PARAM_VALUE | 0 | insn->xop_prefix.nbytes | 0 |
| MEM_ZERO | 0 | insn | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | flags |