函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-27 13:14:20
Last Modify:2020-03-17 19:44:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:detect_dups

函数原型:static void detect_dups(struct tracing_map_sort_entry **sort_entries, int n_entries, unsigned int key_size)

返回类型:void

参数:

类型参数名称
struct tracing_map_sort_entry **sort_entries
intn_entries
unsigned intkey_size
952  dups等于0, total_dups等于0
956  如果n_entries小于2则返回
959  sort(sort_entries, n_entries, *的长度, (int( * )(constvoid * , constvoid * ))cmp_entries_dup, NULL)
962  key等于key
963 i小于n_entries循环
964  如果非内存比较
965  dups自加
965  total_dups自加
966  继续下一循环
968  key等于key
969  dups等于0
972  WARN_ONCE(total_dups > 0, "Duplicates detected: %d\n", total_dups)
调用者
名称描述
tracing_map_sort_entriesracing_map_sort_entries - Sort the current set of tracing_map_elts in a map*@map: The tracing_map*@sort_key: The sort key to use for sorting*@sort_entries: outval: pointer to allocated and sorted array of entries* tracing_map_sort_entries() sorts the