user_enable_block_step(9)
π user_enable_block_step(9) π
okay bestie, welcome to user_enable_block_step(9) from the Kernel API Manual β this is the page about stepping until a branch in a user-mode task, and it's giving extremely specific low-level energy π«Άβ¨
πΈ NAME πΈ
user_enable_block_step β step until branch in user-mode task π
π¦ SYNOPSIS π¦
void user_enable_block_step (struct task_struct *task );
π ARGUMENTS π
taskβ eithercurrentor a task stopped inTASK_TRACED. That's the whole vibe check for this one π
π₯ DESCRIPTION π₯
okay so here's the tea: this can only be called when arch_has_block_step has returned nonzero, and it will never be called when single-instruction stepping is being used. No cap π«Ά
Set task so that when it returns to user mode, it will trap after the next branch or trap taken. That's literally the whole move β¨
π 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_enable_single_step(9)user_disable_single_step(9)arch_has_block_step(9)arch_ptrace_stop_needed(9)arch_ptrace_stop(9)ptrace_report_syscall_permit_entry(9)ptrace_report_syscall_exit(9)
cute sign-off bestie: source ./include/linux, dated October 2026, page user_enable_block_step(9) β periodt ππ
π¦ 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