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:49
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_check

Proto:int modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, bool check)

Type:int

Parameter:

TypeParameterName
struct perf_event *bp
struct perf_event_attr *attr
boolcheck
464  struct arch_hw_breakpoint hw = {}
467  err = hw_breakpoint_parse(bp, attr, & hw)
468  If err Then Return err
471  If check Then
474  old_attr = attr
475  hw_breakpoint_copy_attr( & old_attr, attr)
476  If memcmp( & old_attr, attr, size of attr ) Then Return -EINVAL
480  If bp_type != bp_type Then
481  err = modify_bp_slot(bp, bp_type, bp_type)
482  If err Then Return err
486  hw_breakpoint_copy_attr( & attr, attr)
487  info = hw
489  Return 0
Caller
NameDescribe
modify_user_hw_breakpointmodify_user_hw_breakpoint - modify a user-space hardware breakpoint*@bp: the breakpoint structure to modify*@attr: new breakpoint attributes