Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:modify_user_hw_breakpoint - modify a user-space hardware breakpoint*@bp: the breakpoint structure to modify*@attr: new breakpoint attributes

Proto:int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr)

Type:int

Parameter:

TypeParameterName
struct perf_event *bp
struct perf_event_attr *attr
507  If Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.() && ctx && task == current process Then perf_event_disable_local(bp)
509  Else Strictly speaking kernel users cannot create groups and therefore this* interface does not need the perf_event_ctx_lock() magic.
512  err = modify_user_hw_breakpoint_check(bp, attr, false)
514  If Not disabled Then See perf_event_disable();
517  Return err
Caller
NameDescribe
ptrace_set_breakpoint_addr