| Function report | 
| Source Code: kernel\trace\trace_events_hist.c | Create Date:2022-07-28 12:33:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:add_to_key
Proto:static inline void add_to_key(char *compound_key, void *key, struct hist_field *key_field, void *rec)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | compound_key | |
| void * | key | |
| struct hist_field * | key_field | |
| void * | rec | 
| 5284 | If flags & HIST_FIELD_FL_STRING Then | 
| 5288 | If filter_type == FILTER_DYN_STRING Then size = *(rec + offset) >> 16 | 
| 5290 | Else if filter_type == FILTER_PTR_STRING Then size = strlen - Find the length of a string*@s: The string to be sized | 
| 5292 | Else if filter_type == FILTER_STATIC_STRING Then size = size | 
| 5299 | strncpy(compound_key + offset, (char * )key, size) | 
| 5300 | Else No 3D Now!(compound_key + offset, key, size) | 
| Name | Describe | 
|---|---|
| event_hist_trigger | 
| 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 |