Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:32:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:action_create
Proto:static int action_create(struct hist_trigger_data *hist_data, struct action_data *data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct hist_trigger_data * | hist_data | |
| struct action_data * | data |
| 4351 | file = event_file |
| 4357 | ret = 0 |
| 4359 | If action == ACTION_TRACE Then Return trace_action_create(hist_data, data) |
| 4362 | If action == ACTION_SNAPSHOT Then |
| 4363 | track_data = track_data_alloc(key_size, data, hist_data) |
| 4364 | If IS_ERR(track_data) Then |
| 4365 | ret = PTR_ERR(track_data) |
| 4366 | Go to out |
| 4371 | If ret Then track_data_free(track_data) |
| 4374 | Go to out |
| 4377 | If action == ACTION_SAVE Then |
| 4378 | If n_save_vars Then |
| 4385 | param = kstrdup(params[i], GFP_KERNEL) |
| 4386 | If Not param Then |
| 4400 | save_vars[n_save_vars++] = field_var |
| 4401 | If flags & HIST_FIELD_FL_STRING Then n_save_var_str++ |
| 4406 | out : |
| 4407 | Return ret |
| Name | Describe |
|---|---|
| track_data_create | |
| onmatch_create |
| 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 |