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

Name:select_value_fn

Proto:static hist_field_fn_t select_value_fn(int field_size, int field_is_signed)

Type:hist_field_fn_t

Parameter:

TypeParameterName
intfield_size
intfield_is_signed
2003  hist_field_fn_t fn = NULL
2006  Case field_size == 8
2007  If field_is_signed Then fn = hist_field_s64
2009  Else fn = hist_field_u64
2011  Break
2012  Case field_size == 4
2013  If field_is_signed Then fn = hist_field_s32
2015  Else fn = hist_field_u32
2017  Break
2018  Case field_size == 2
2019  If field_is_signed Then fn = hist_field_s16
2021  Else fn = hist_field_u16
2023  Break
2024  Case field_size == 1
2025  If field_is_signed Then fn = hist_field_s8
2027  Else fn = hist_field_u8
2029  Break
2032  Return fn
Caller
NameDescribe
create_hist_field