函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:04:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:gister_tracer - register a tracer with the ftrace system.*@type: the plugin for the tracer* Register a new plugin tracer.
函数原型:int __init register_tracer(struct tracer *type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tracer * | type |
1881 | ret等于0 |
1883 | 如果非name则 |
1884 | 打印信息("Tracer must have a name\n") |
1885 | 返回:负1 |
1889 | 打印信息("Tracer has a name longer than %d\n", MAX_TRACER_SIZE) |
1890 | 返回:负1 |
1893 | 如果security_locked_down(LOCKDOWN_TRACEFS)则 |
1913 | 如果非set_flag则set_flag等于dummy_set_flag |
1915 | 如果非flags则 |
1924 | 否则如果非opts则 |
1931 | ret等于run_tracer_selftest(type) |
1937 | add_tracer_options( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., type) |
1939 | out : |
1943 | 如果ret或非default_bootup_tracer则转到:out_unlock |
1946 | 如果字符串指定长度比较则转到:out_unlock |
1951 | tracing_set_tracer( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., name) |
1952 | default_bootup_tracer = NULL |
1954 | apply_trace_boot_options() |
1963 | out_unlock : |
1964 | 返回:ret |
名称 | 描述 |
---|---|
tracer_alloc_buffers | |
init_function_trace | |
init_irqsoff_tracer | |
init_wakeup_tracer | |
init_hwlat_tracer | |
init_mmio_trace | |
init_graph_trace |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |