函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hw_breakpoint.c Create Date:2022-07-27 08:45:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Encode the length, type, Exact, and Enable bits for a particular breakpoint* as stored in debug register 7.

函数原型:unsigned long encode_dr7(int drnum, unsigned int len, unsigned int type)

返回类型:unsigned long

参数:

类型参数名称
intdrnum
unsigned intlen
unsigned inttype
68  返回:__encode_dr7(drnum, len, type)按位或Global slow the pipeline
调用者
名称描述
arch_install_hw_breakpointInstall a perf counter breakpoint.* We seek a free debug address register and use it for this* breakpoint. Eventually we enable it in the debug control register.* Atomic: we hold the counter->ctx->lock and we only handle variables
aout_dump_debugregsDump the debug register contents to the user.* We can't dump our per cpu values because it* may contain cpu wide breakpoint, something that* doesn't belong to the current task.* TODO: include non-ptrace user breakpoints (perf)
ptrace_get_dr7Walk through every ptrace breakpoints for this thread and* build the dr7 value on top of their attributes.
kgdb_correct_hw_break
kgdb_remove_all_hw_break
kgdb_disable_hw_debugkgdb_disable_hw_debug - Disable hardware debugging while we in kgdb.*@regs: Current &struct pt_regs.* This function will be called if the particular architecture must* disable hardware debugging while it is processing gdb packets or* handling exception.