函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:04:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:trace_save_cmdline
函数原型:static int trace_save_cmdline(struct task_struct *tsk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | tsk |
2229 | 如果非进程ID则返回:1 |
2241 | 如果非arch_spin_trylock( & trace_cmdline_lock)则返回:0 |
2244 | idx等于map_pid_to_cmdline[进程ID] |
2245 | 如果idx恒等于NO_CMDLINE_MAP则 |
2246 | idx等于cmdline_idx加1的和取模cmdline_num |
2254 | pid等于map_cmdline_to_pid[idx] |
2255 | 如果pid不等于NO_CMDLINE_MAP则map_pid_to_cmdline[pid]等于NO_CMDLINE_MAP |
2258 | map_cmdline_to_pid[idx]等于进程ID |
2259 | map_pid_to_cmdline[进程ID]等于idx |
2261 | cmdline_idx等于idx |
2264 | set_cmdline(idx, 是否使用FPU) |
2266 | arch_spin_unlock( & trace_cmdline_lock) |
2268 | 返回:1 |
名称 | 描述 |
---|---|
tracing_record_taskinfo | racing_record_taskinfo - record the task info of a task*@task: task to record*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid |
tracing_record_taskinfo_sched_switch | racing_record_taskinfo_sched_switch - record task info for sched_switch*@prev: previous task during sched_switch*@next: next task during sched_switch*@flags: TRACE_RECORD_CMDLINE for recording comm* TRACE_RECORD_TGID for recording tgid |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |