Function report |
Source Code:kernel\trace\trace_stat.c |
Create Date:2022-07-28 12:06:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:register_stat_tracer
Proto:int register_stat_tracer(struct tracer_stat *trace)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct tracer_stat * | trace |
| 316 | If Not stat_start || Not stat_next || Not stat_show Then Return -EINVAL |
| 320 | mutex_lock( & all_stat_sessions_mutex) |
| 328 | session = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 334 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & stat_mutex) |
| 336 | ret = init_stat_file(session) |
| 337 | If ret Then |
| 338 | destroy_session(session) |
| 339 | Go to out |
| 342 | ret = 0 |
| 345 | out : |
| 348 | Return ret |
| Name | Describe |
|---|---|
| init_annotated_branch_stats |
| 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 |