函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:modify_user_hw_breakpoint_check

函数原型:int modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, bool check)

返回类型:int

参数:

类型参数名称
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  如果err则返回:err
471  如果check
474  old_attr等于attr
475  hw_breakpoint_copy_attr( & old_attr, attr)
476  如果内存比较则返回:负EINVAL
480  如果bp_type不等于bp_type
481  err等于modify_bp_slot(bp, bp_type, bp_type)
482  如果err则返回:err
486  hw_breakpoint_copy_attr( & attr, attr)
487  info等于hw
489  返回:0
调用者
名称描述
modify_user_hw_breakpointmodify_user_hw_breakpoint - modify a user-space hardware breakpoint*@bp: the breakpoint structure to modify*@attr: new breakpoint attributes