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:28:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:synth_field_size

Proto:static int synth_field_size(char *type)

Type:int

Parameter:

TypeParameterName
char *type
732  size = 0
734  If strcmp(type, "s64") == 0 Then size = sizeof(s64)
736  Else if strcmp(type, "u64") == 0 Then size = sizeof(u64)
738  Else if strcmp(type, "s32") == 0 Then size = sizeof(s32)
740  Else if strcmp(type, "u32") == 0 Then size = sizeof(u32)
742  Else if strcmp(type, "s16") == 0 Then size = sizeof(s16)
744  Else if strcmp(type, "u16") == 0 Then size = sizeof(u16)
746  Else if strcmp(type, "s8") == 0 Then size = sizeof(s8)
748  Else if strcmp(type, "u8") == 0 Then size = sizeof(u8)
750  Else if strcmp(type, "char") == 0 Then size = sizeof(char)
752  Else if strcmp(type, "unsigned char") == 0 Then size = sizeof(unsignedchar)
754  Else if strcmp(type, "int") == 0 Then size = sizeof(int)
756  Else if strcmp(type, "unsigned int") == 0 Then size = sizeof(unsignedint)
758  Else if strcmp(type, "long") == 0 Then size = sizeof(long)
760  Else if strcmp(type, "unsigned long") == 0 Then size = sizeof(unsignedlong)
762  Else if strcmp(type, "pid_t") == 0 Then size = sizeof(pid_t)
764  Else if strcmp(type, "gfp_t") == 0 Then size = sizeof(gfp_t)
766  Else if synth_field_is_string(type) Then size = synth_field_string_size(type)
769  Return size
Caller
NameDescribe
parse_synth_field