arch/arm/probes/kprobes/actions-common.c
Source file repositories/reference/linux-study-clean/arch/arm/probes/kprobes/actions-common.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/probes/kprobes/actions-common.c- Extension
.c- Size
- 4271 bytes
- Lines
- 171
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/kprobes.hasm/opcodes.hcore.h
Detected Declarations
function Copyrightfunction simulate_stm1_pcfunction simulate_ldm1_pcfunction emulate_generic_r0_12_noflagsfunction emulate_generic_r2_14_noflagsfunction emulate_ldm_r3_15function kprobe_decode_ldmstm
Annotated Snippet
if (is_ldm && (reglist & 0x8000)) {
rn -= 3;
reglist >>= 3;
handler = emulate_ldm_r3_15;
}
}
if (handler) {
/* We can emulate the instruction in (possibly) modified form */
asi->insn[0] = __opcode_to_mem_arm((insn & 0xfff00000) |
(rn << 16) | reglist);
asi->insn_handler = handler;
return INSN_GOOD;
}
/* Fallback to slower simulation... */
if (reglist & 0x8000)
handler = is_ldm ? simulate_ldm1_pc : simulate_stm1_pc;
else
handler = simulate_ldm1stm1;
asi->insn_handler = handler;
return INSN_GOOD_NO_SLOT;
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/kprobes.h`, `asm/opcodes.h`, `core.h`.
- Detected declarations: `function Copyright`, `function simulate_stm1_pc`, `function simulate_ldm1_pc`, `function emulate_generic_r0_12_noflags`, `function emulate_generic_r2_14_noflags`, `function emulate_ldm_r3_15`, `function kprobe_decode_ldmstm`.
- Atlas domain: Architecture Layer / arch/arm.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.