Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:33:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hist_register_trigger
Proto:static int hist_register_trigger(char *glob, struct event_trigger_ops *ops, struct event_trigger_data *data, struct trace_event_file *file)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | glob | |
| struct event_trigger_ops * | ops | |
| struct event_trigger_data * | data | |
| struct trace_event_file * | file |
| 5941 | hist_data = private_data |
| 5942 | struct event_trigger_data * test, * named_data = NULL |
| 5944 | ret = 0 |
| 5946 | If name Then |
| 5948 | If named_data Then |
| 5949 | If Not hist_trigger_match(data, named_data, named_data, true) Then |
| 5958 | If name && Not named_data Then Go to new |
| 5961 | lockdep_assert_held( & event_mutex) |
| 5964 | If trigger_type == ETT_EVENT_HIST Then |
| 5965 | If Not hist_trigger_match(data, test, named_data, false) Then Continue |
| 5971 | Else if clear Then hist_clear(test) |
| 5973 | Else |
| 5974 | hist_err(tr, HIST_ERR_TRIGGER_EEXIST, 0) |
| 5977 | Go to out |
| 5980 | new : |
| 5990 | If named_data Then |
| 5991 | private_data = private_data |
| 5993 | ops = event_hist_trigger_named_ops |
| 5996 | If init Then |
| 6002 | If enable_timestamps Then |
| 6014 | If named_data Then destroy_hist_data(hist_data) |
| 6017 | ret++ |
| 6018 | out : |
| 6019 | Return ret |
| 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 |