Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-28 12:07:36
Last Modify:2020-03-17 19:44:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cmp_entries_sum

Proto:static int cmp_entries_sum(const struct tracing_map_sort_entry **a, const struct tracing_map_sort_entry **b)

Type:int

Parameter:

TypeParameterName
const struct tracing_map_sort_entry **a
const struct tracing_map_sort_entry **b
856  ret = 0
858  elt_a = elt
859  elt_b = elt
861  sort_key = sort_key
863  field = fields[field_idx]
864  cmp_fn = cmp_fn
866  val_a = sum
867  val_b = sum
869  ret = cmp_fn(val_a, val_b)
870  If descending Then ret = -ret
873  Return ret