函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:39:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:parse_field
函数原型:static struct ftrace_event_field *parse_field(struct hist_trigger_data *hist_data, struct trace_event_file *file, char *field_str, unsigned long *flags)
返回类型:struct ftrace_event_field
参数:
类型 | 参数 | 名称 |
---|---|---|
struct hist_trigger_data * | hist_data | |
struct trace_event_file * | file | |
char * | field_str | |
unsigned long * | flags |
2801 | struct ftrace_event_field * field = NULL |
2805 | modifier等于str等于kstrdup(field_str, GFP_KERNEL) |
2809 | field_name等于分割字符串 |
2810 | 如果modifier则 |
2811 | 如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_HEX |
2813 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_SYM |
2815 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_SYM_OFFSET |
2817 | 否则如果字符串比较恒等于0且字符串比较恒等于0则flags或等于HIST_FIELD_FL_EXECNAME |
2820 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_SYSCALL |
2822 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_LOG2 |
2824 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_TIMESTAMP_USECS |
2826 | 否则 |
2833 | 如果字符串比较恒等于0则 |
2834 | flags或等于HIST_FIELD_FL_TIMESTAMP |
2835 | enable_timestamps = true |
2836 | 如果flags按位与HIST_FIELD_FL_TIMESTAMP_USECS则ts_in_usecs = true |
2838 | 否则如果字符串比较恒等于0则flags或等于HIST_FIELD_FL_CPU |
2840 | 否则 |
2848 | out : |
2851 | 返回:field |
名称 | 描述 |
---|---|
parse_atom | |
parse_entry | Caller is responsible to free the *pentry. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |