V2EX  ›  英汉词典

PTRACE

释义 Definition

ptrace 是 Unix/Linux 中的一个系统调用(或相关机制),用于让一个进程“跟踪/控制”另一个进程的执行,常见于调试器(如 gdb)、断点调试检查/修改寄存器与内存、以及拦截系统调用等场景。(在不同系统与内核版本中,具体能力与限制可能不同。)

发音 Pronunciation (IPA)

/piːˈtreɪs/

例句 Examples

I used ptrace to attach to the running process.
我用 ptrace 附加到正在运行的进程上。

Using ptrace, the debugger can pause a child process after fork and inspect its registers before it executes the next instruction.
借助 ptrace,调试器可以在 fork 之后暂停子进程,并在其执行下一条指令前检查寄存器。

词源 Etymology

ptrace 通常解释为 process trace(进程跟踪) 的缩写/合成写法:用来表示“对进程进行追踪与控制”的功能。该术语在早期 Unix 系统的调试与进程控制语境中逐步固定下来。

相关词 Related Words

文学与著作中的用例 Literary & Notable Works

  • The Linux Programming Interface(Michael Kerrisk):在进程控制、调试与相关系统接口章节中讨论/提及 ptrace。
  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago):在进程与系统接口相关内容中涉及调试/跟踪机制(常见包含 ptrace 语境)。
  • Linux Kernel Development(Robert Love):在讲解内核与进程/调试相关机制时,常会提到 ptrace 作为用户态调试的关键接口之一。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   828 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 23:31 · PVG 07:31 · LAX 15:31 · JFK 18:31
♥ Do have faith in what you're doing.