Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\locktorture.c Create Date:2022-07-28 09:54:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Print torture statistics

Proto:static void lock_torture_stats_print(void)

Type:void

Parameter:Nothing

723  size = nrealwriters_stress * 200 + 8192
726  If readlock Then size += nrealreaders_stress * 200 + 8192
729  buf = Allocation memory
730  If Not buf Then
731  pr_err("lock_torture_stats_print: Out of memory, need: %d", size)
733  Return
736  Create an lock-torture-statistics message in the specified buffer.
737  pr_alert("%s", buf)
738  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
740  If readlock Then
741  buf = Allocation memory
742  If Not buf Then
743  pr_err("lock_torture_stats_print: Out of memory, need: %d", size)
745  Return
748  Create an lock-torture-statistics message in the specified buffer.
749  pr_alert("%s", buf)
750  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
Caller
NameDescribe
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.