函数逻辑报告 |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-27 13:25:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__ftrace_event_enable_disable
函数原型:static int __ftrace_event_enable_disable(struct trace_event_file *file, int enable, int soft_disable)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct trace_event_file * | file | |
int | enable | |
int | soft_disable |
365 | call等于event_call |
368 | ret等于0 |
386 | 如果soft_disable则 |
387 | 如果atomic_dec_return( & soft-mode reference counter )大于0则退出 |
413 | 退出 |
423 | 如果非soft_disable则lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers). |
425 | 否则 |
426 | 如果atomic_inc_return( & soft-mode reference counter )大于1则退出 |
428 | 设置内存位 |
432 | bool cmd = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., tgid = false |
435 | 如果soft_disable则设置内存位 |
438 | 如果trace_flags按位与TRACE_ITER_RECORD_CMD则 |
444 | 如果trace_flags按位与TRACE_ITER_RECORD_TGID则 |
450 | ret等于reg(call, TRACE_REG_REGISTER, file) |
451 | 如果ret则 |
452 | 如果cmd则tracing_stop_cmdline_record() |
454 | 如果tgid则tracing_stop_tgid_record() |
456 | 打印信息("event trace: Could not enable event %s\n", trace_event_name(call)) |
458 | 退出 |
460 | 设置内存位 |
463 | 设置内存位 |
465 | 退出 |
477 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |