Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
char *compound_key
void *key
struct hist_field *key_field
void *rec
5282  size = size
5284  If flags & HIST_FIELD_FL_STRING Then
5287  field = field
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
5296  If size > size - 1 Then size = size - 1
5299  strncpy(compound_key + offset, (char * )key, size)
5300  Else No 3D Now!(compound_key + offset, key, size)
Caller
NameDescribe
event_hist_trigger