Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:32:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trace_action_create
Proto:static int trace_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 |
4243 | char * event_name, * param, * system = NULL |
4246 | field_pos = 0 |
4249 | ret = 0 |
4251 | lockdep_assert_held( & event_mutex) |
4253 | If use_trace_keyword Then synth_event_name = synth_event_name |
4255 | Else synth_event_name = action_name |
4258 | event = find_synth_event(synth_event_name) |
4259 | If Not event Then |
4261 | Return -EINVAL |
4264 | ref++ |
4270 | If Not param Then |
4276 | If Not param Then |
4278 | system = event_name = NULL |
4279 | Else |
4281 | If Not param Then |
4288 | If param[0] == '$' Then hist_field = trace_action_find_var(hist_data, data, system, event_name, param) |
4292 | Else hist_field = trace_action_create_field_var(hist_data, data, system, event_name, param) |
4299 | If Not hist_field Then |
4305 | If check_synth_field(event, hist_field, field_pos) == 0 Then |
4308 | If Not var_ref Then |
4314 | var_ref_idx = find_var_ref_idx(hist_data, var_ref) |
4315 | If WARN_ON(var_ref_idx < 0) Then |
4316 | ret = var_ref_idx |
4317 | Go to err |
4322 | field_pos++ |
4324 | Continue |
4327 | hist_err(tr, HIST_ERR_SYNTH_TYPE_MISMATCH, errpos(param)) |
4330 | Go to err |
4339 | synth_event = event |
4340 | out : |
4341 | Return ret |
4342 | err : |
4343 | ref-- |
4345 | Go to out |
Name | Describe |
---|---|
action_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 |