函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klp_unpatch_func

函数原型:static void klp_unpatch_func(struct klp_func *func)

返回类型:void

参数:

类型参数名称
struct klp_func *func
139  如果WARN_ON(!patched)则返回
141  如果WARN_ON(!rnal )则返回
144  ops等于klp_find_ops(rnal )
145  如果WARN_ON(!ops)则返回
148  如果链表只有一项
151  ftrace_loc等于Convert a function address into the appropriate ftrace location.* Usually this is just the address of the function, but on some architectures* it's more complicated so allow them to provide a custom behaviour.
153  如果WARN_ON(!ftrace_loc)则返回
156  WARN_ON(register_ftrace_function - unregister a function for profiling.*@ops - ops structure that holds the function to unregister* Unregister a function that was added to be called by ftrace profiling.)
157  WARN_ON(ftrace_set_filter_ip( & fops, ftrace_loc, 1, 0))
159  删除不需要重新初始化的列表项
160  删除链表项
161  kfree(ops)
162  否则
163  删除不需要重新初始化的列表项
166  patched = false
调用者
名称描述
__klp_unpatch_object