Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:32:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:onmatch_parse
Proto:static struct action_data *onmatch_parse(struct trace_array *tr, char *str)
Type:struct action_data
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct trace_array * | tr | |
| char * | str |
| 4422 | data = 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). |
| 4427 | If Not match_event || Not str Then |
| 4428 | hist_err(tr, HIST_ERR_NO_CLOSING_PAREN, errpos(match_event)) |
| 4429 | Go to free |
| 4433 | If Not match_event Then |
| 4435 | Go to free |
| 4438 | If IS_ERR(event_file(tr, match_event_system, match_event)) Then |
| 4440 | Go to free |
| 4443 | event = kstrdup(match_event, GFP_KERNEL) |
| 4444 | If Not event Then |
| 4449 | event_system = kstrdup(match_event_system, GFP_KERNEL) |
| 4450 | If Not event_system Then |
| 4455 | ret = action_parse(tr, str, data, HANDLER_ONMATCH) |
| 4458 | out : |
| 4459 | Return data |
| 4460 | free : |
| 4461 | onmatch_destroy(data) |
| 4463 | Go to out |
| Name | Describe |
|---|---|
| parse_actions |
| 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 |