函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create an lock-torture-statistics message in the specified buffer.

函数原型:static void __torture_print_stats(char *page, struct lock_stress_stats *statp, bool write)

返回类型:void

参数:

类型参数名称
char *page
struct lock_stress_stats *statp
boolwrite
689  fail等于0
691  max等于0, min等于如果statpn_lock_acquired否则0
692  sum等于0
694  n_stress等于如果writenrealwriters_stress否则nrealreaders_stress
695 i小于n_stress循环
696  如果n_lock_failfail = true
698  sum加等于n_lock_acquired
699  如果max小于n_lock_failmax等于n_lock_fail
701  如果min大于n_lock_failmin等于n_lock_fail
704  page加等于输出格式化串
709  如果failatomic_inc( & n_lock_torture_errors)
调用者
名称描述
lock_torture_stats_printPrint torture statistics