函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Print torture statistics

函数原型:static void lock_torture_stats_print(void)

返回类型:void

参数:

723  size等于nrealwriters_stress乘200加8192
726  如果readlocksize加等于nrealreaders_stress乘200加8192
729  buf等于开辟内存
730  如果非buf
731  打印错误信息("lock_torture_stats_print: Out of memory, need: %d", size)
733  返回
736  Create an lock-torture-statistics message in the specified buffer.
737  打印警报信息("%s", buf)
738  释放内存
740  如果readlock
741  buf等于开辟内存
742  如果非buf
743  打印错误信息("lock_torture_stats_print: Out of memory, need: %d", size)
745  返回
748  Create an lock-torture-statistics message in the specified buffer.
749  打印警报信息("%s", buf)
750  释放内存
调用者
名称描述
lock_torture_statsPeriodically prints torture statistics, if periodic statistics printing* was specified via the stat_interval module parameter.* No need to worry about fullstop here, since this one doesn't reference* volatile state or register callbacks.
lock_torture_cleanupForward reference.