Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:01:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_set_tracer
Proto:static int tracing_set_tracer(struct trace_array *tr, const char *buf)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct trace_array * | tr | |
| const char * | buf |
| 5731 | ret = 0 |
| 5740 | ret = 0 |
| 5747 | If Not t Then |
| 5751 | If t == current_trace Then Go to out |
| 5778 | If ref Then |
| 5783 | trace_branch_disable() |
| 5785 | enabled-- |
| 5791 | current_trace = nop_trace |
| 5817 | If init Then |
| 5823 | current_trace = t |
| 5824 | enabled++ |
| 5825 | trace_branch_enable(tr) |
| 5826 | out : |
| 5829 | Return ret |
| Name | Describe |
|---|---|
| register_tracer | gister_tracer - register a tracer with the ftrace system.*@type: the plugin for the tracer* Register a new plugin tracer. |
| tracing_set_trace_write |
| 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 |