Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hw_breakpoint.c Create Date:2022-07-28 07:45:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:unsigned long encode_dr7(int drnum, unsigned int len, unsigned int type)

Type:unsigned long

Parameter:

TypeParameterName
intdrnum
unsigned intlen
unsigned inttype
68  Return __encode_dr7(drnum, len, type) | Global slow the pipeline
Caller
NameDescribe
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.