函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_objagg.c Create Date:2022-07-27 07:32:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_hints_case

函数原型:static int test_hints_case(const struct hints_case *hints_case)

返回类型:int

参数:

类型参数名称
const struct hints_case *hints_case
913  struct world world2 = {}
914  struct world world = {}
921  objagg等于bjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller
922  如果是错误则返回:错误
925 i小于key_ids_count循环
926  objagg_obj等于world_obj_get( & world, objagg, key_ids[i])
928  如果是错误
929  err等于错误
930  转到:err_world_obj_get
934  pr_debug_stats(objagg)
935  err等于check_expect_stats(objagg, & expect_stats, & errmsg)
936  如果err
937  打印错误信息("Stats: %s\n", errmsg)
938  转到:err_check_expect_stats
941  hints等于bjagg_hints_get - obtains hints instance*@objagg: objagg instance*@opt_algo_type: type of hints finding algorithm* Note: all locking must be provided by the caller.* According to the algo type, the existing objects of objagg instance
942  如果是错误
943  err等于错误
944  转到:err_hints_get
947  pr_debug_hints_stats(hints)
948  err等于check_expect_hints_stats(hints, & expect_stats_hints, & errmsg)
950  如果err
951  打印错误信息("Hints stats: %s\n", errmsg)
952  转到:err_check_expect_hints_stats
955  objagg2等于bjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller
956  如果是错误则返回:错误
959 i小于key_ids_count循环
960  objagg_obj等于world_obj_get( & world2, objagg2, key_ids[i])
962  如果是错误
963  err等于错误
964  转到:err_world2_obj_get
968  pr_debug_stats(objagg2)
969  err等于check_expect_stats(objagg2, & expect_stats_hints, & errmsg)
971  如果err
972  打印错误信息("Stats2: %s\n", errmsg)
973  转到:err_check_expect_stats2
976  err等于0
978  err_check_expect_stats2 :
979  err_world2_obj_get :
980 i大于等于0循环world_obj_put( & world2, objagg, key_ids[i])
982  bjagg_hints_put - puts hints instance*@objagg_hints: objagg hints instance* Note: all locking must be provided by the caller.
983  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
984  i等于key_ids_count
985  err_check_expect_hints_stats :
986  err_hints_get :
987  err_check_expect_stats :
988  err_world_obj_get :
989 i大于等于0循环world_obj_put( & world, objagg, key_ids[i])
992  bjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
993  返回:err
调用者
名称描述
test_hints