user_enable_single_step(9)
π« user_enable_single_step(9) π«
okay bestie, welcome to the Kernel API Manual page for user_enable_single_step(9) β we're doing kernel ptrace single-step realness today, and yes it's giving very niche but iconic π₯
πΈ NAME πΈ
user_enable_single_step β single-step in user-mode task. π
β¨ SYNOPSIS β¨
void user_enable_single_step (struct task_struct *task );
π ARGUMENTS π
taskβ eithercurrentor a task stopped inTASK_TRACED. π«Ά
π DESCRIPTION π
okay so the rule is: this can only be called when arch_has_single_step has returned nonzero. no cap, that's the gate π
It sets task so that when it returns to user mode, it will trap after the next single instruction executes. periodt β one instruction, then trap, that's the whole vibe β
If arch_has_block_step is defined, this must clear the effects of user_enable_block_step too. like, do not leave those effects hanging around, bestie π
π₯ SEE ALSO π₯
Kernel file: ./include/linux/ptrace.h π
ptrace_may_access(9)ptrace_parent(9)ptrace_event_enabled(9)ptrace_event(9)ptrace_event_pid(9)ptrace_init_task(9)ptrace_release_task(9)arch_has_single_step(9)user_disable_single_step(9)arch_has_block_step(9)user_enable_block_step(9)arch_ptrace_stop_needed(9)arch_ptrace_stop(9)ptrace_report_syscall_permit_entry(9)ptrace_report_syscall_exit(9)
π«Ά source/version:./include/linuxΒ· date:October 2026Β· page:user_enable_single_step(9)β mwah, go be iconic β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms