Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 11:58:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gister_tracer - register a tracer with the ftrace system.*@type: the plugin for the tracer* Register a new plugin tracer.
Proto:int __init register_tracer(struct tracer *type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tracer * | type |
| 1881 | ret = 0 |
| 1883 | If Not name Then |
| 1884 | pr_info("Tracer must have a name\n") |
| 1885 | Return -1 |
| 1889 | pr_info("Tracer has a name longer than %d\n", MAX_TRACER_SIZE) |
| 1890 | Return -1 |
| 1893 | If security_locked_down(LOCKDOWN_TRACEFS) Then |
| 1913 | If Not set_flag Then set_flag = dummy_set_flag |
| 1915 | If Not flags Then |
| 1924 | Else If Not opts Then |
| 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 | If ret || Not default_bootup_tracer Then Go to out_unlock |
| 1946 | If strncmp(default_bootup_tracer, name, MAX_TRACER_SIZE) Then Go to 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 | Return ret |
| Name | Describe |
|---|---|
| tracer_alloc_buffers | |
| init_function_trace | |
| init_irqsoff_tracer | |
| init_wakeup_tracer | |
| init_hwlat_tracer | |
| init_mmio_trace | |
| init_graph_trace |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |