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

Name:synth_field_fmt

Proto:static const char *synth_field_fmt(char *type)

Type:char

Parameter:

TypeParameterName
char *type
774  fmt = "%llu"
776  If strcmp(type, "s64") == 0 Then fmt = "%lld"
778  Else if strcmp(type, "u64") == 0 Then fmt = "%llu"
780  Else if strcmp(type, "s32") == 0 Then fmt = "%d"
782  Else if strcmp(type, "u32") == 0 Then fmt = "%u"
784  Else if strcmp(type, "s16") == 0 Then fmt = "%d"
786  Else if strcmp(type, "u16") == 0 Then fmt = "%u"
788  Else if strcmp(type, "s8") == 0 Then fmt = "%d"
790  Else if strcmp(type, "u8") == 0 Then fmt = "%u"
792  Else if strcmp(type, "char") == 0 Then fmt = "%d"
794  Else if strcmp(type, "unsigned char") == 0 Then fmt = "%u"
796  Else if strcmp(type, "int") == 0 Then fmt = "%d"
798  Else if strcmp(type, "unsigned int") == 0 Then fmt = "%u"
800  Else if strcmp(type, "long") == 0 Then fmt = "%ld"
802  Else if strcmp(type, "unsigned long") == 0 Then fmt = "%lu"
804  Else if strcmp(type, "pid_t") == 0 Then fmt = "%d"
806  Else if strcmp(type, "gfp_t") == 0 Then fmt = "%x"
808  Else if synth_field_is_string(type) Then fmt = "%s"
811  Return fmt
Caller
NameDescribe
print_synth_event
__set_synth_event_print_fmt