函数逻辑报告 |
Source Code:kernel\trace\trace_probe.c |
Create Date:2022-07-27 13:54:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:traceprobe_parse_probe_arg
函数原型:int traceprobe_parse_probe_arg(struct trace_probe *tp, int i, char *arg, unsigned int flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct trace_probe * | tp | |
int | i | |
char * | arg | |
unsigned int | flags |
755 | nr_args自加 |
757 | body等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
758 | 如果body则 |
759 | 如果body减arg大于MAX_ARG_NAME_LEN则 |
760 | trace_probe_log_err(0, ARG_NAME_TOO_LONG) |
761 | 返回:负EINVAL |
763 | trace_probe_log_err(0, NO_ARG_NAME) |
764 | 返回:负EINVAL |
766 | Name of this argument 等于kmemdup_nul(arg, body - arg, GFP_KERNEL) |
767 | body自加 |
768 | 否则 |
770 | Name of this argument 等于kasprintf(GFP_KERNEL, "arg%d", i + 1) |
773 | 如果非 Name of this argument 则返回:负ENOMEM |
777 | trace_probe_log_err(0, BAD_ARG_NAME) |
778 | 返回:负EINVAL |
781 | trace_probe_log_err(0, USED_ARG_NAME) |
782 | 返回:负EINVAL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |