ptrace_event_enabled(9)
π ptrace_event_enabled β test whether a ptrace event is enabled π
okay so real talk, this is from the Kernel API Manual (section 9, kernel devs only, no normies allowed), and it's honestly such a little cutie. one function, one question, one bool. she ate and left zero crumbs β¨
πΈ NAME πΈ
ptrace_event_enabled β literally just testing whether a ptrace event is enabled, that's it, that's the whole gig π«Ά
β¨ SYNOPSIS β¨
bool ptrace_event_enabled (struct task_struct *task , int event );
like, give her a task and an event and she hands you back a bool. no drama, no side quests π
π ARGUMENTS π
taskβ the ptracee of interest π like the task you're being nosy about. she's the main character here.eventβ thePTRACE_EVENT_*you wanna test π so pick your event, bestie.
π¦ DESCRIPTION π¦
okay so the whole vibe: you test whether event is enabled for the ptracee task. that's the mission. that's the lore.
she returns true if event is enabled π and false otherwise π no cap, it's that simple. no hidden gotchas, no surprises, she's not gonna play games with you.
ngl it's giving "small function, big responsibility" and i'm obsessed with her for it π
π₯ SEE ALSO π₯
she does NOT exist in a vacuum, bestie, she runs with a whole friend group in the kernel file ./include/linux/ptrace.h β go say hi to all of them:
ptrace_may_access(9)ptrace_parent(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)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)
like that's a whole group chat of ptrace girlies fr fr π
okay that's the whole page, mwah π this one came from ./include/linux, dated October 2026, and she's filed under ptrace_event_enabled(9) β go forth and check your ptrace events, bestie, i believe in you π§π
π¦ 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