arch/parisc/kernel/ftrace.c
Source file repositories/reference/linux-study-clean/arch/parisc/kernel/ftrace.c
File Facts
- System
- Linux kernel
- Corpus path
arch/parisc/kernel/ftrace.c- Extension
.c- Size
- 5747 bytes
- Lines
- 255
- Domain
- Architecture Layer
- Bucket
- arch/parisc
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/ftrace.hlinux/uaccess.hlinux/kprobes.hlinux/ptrace.hlinux/jump_label.hasm/assembly.hasm/sections.hasm/ftrace.hasm/text-patching.h
Detected Declarations
function prepare_ftrace_returnfunction ftrace_function_trampolinefunction ftrace_enable_ftrace_graph_callerfunction ftrace_disable_ftrace_graph_callerfunction ftrace_update_ftrace_funcfunction ftrace_modify_callfunction ftrace_call_adjustfunction ftrace_make_callfunction ftrace_make_nopfunction kprobe_ftrace_handlerfunction arch_prepare_kprobe_ftrace
Annotated Snippet
if (unlikely(p->post_handler)) {
kcb->kprobe_status = KPROBE_HIT_SSDONE;
p->post_handler(p, regs, 0);
}
}
__this_cpu_write(current_kprobe, NULL);
out:
ftrace_test_recursion_unlock(bit);
}
NOKPROBE_SYMBOL(kprobe_ftrace_handler);
int arch_prepare_kprobe_ftrace(struct kprobe *p)
{
p->ainsn.insn = NULL;
return 0;
}
#endif
Annotation
- Immediate include surface: `linux/init.h`, `linux/ftrace.h`, `linux/uaccess.h`, `linux/kprobes.h`, `linux/ptrace.h`, `linux/jump_label.h`, `asm/assembly.h`, `asm/sections.h`.
- Detected declarations: `function prepare_ftrace_return`, `function ftrace_function_trampoline`, `function ftrace_enable_ftrace_graph_caller`, `function ftrace_disable_ftrace_graph_caller`, `function ftrace_update_ftrace_func`, `function ftrace_modify_call`, `function ftrace_call_adjust`, `function ftrace_make_call`, `function ftrace_make_nop`, `function kprobe_ftrace_handler`.
- Atlas domain: Architecture Layer / arch/parisc.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.