Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Forward reference.

Proto:static void lock_torture_cleanup(void)

Type:void

Parameter:Nothing

789  If Clean up torture module Then Return
798  If Not writer statistics && Not reader statistics Then Go to end
801  If writer_tasks Then
802  When i < nrealwriters_stress cycle torture_stop_kthread(Lock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions., writer_tasks[i])
805  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.
806  writer_tasks = NULL
809  If reader_tasks Then
810  When i < nrealreaders_stress cycle torture_stop_kthread(Lock torture reader kthread. Repeatedly acquires and releases* the reader lock., reader_tasks[i])
813  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.
814  reader_tasks = NULL
817  torture_stop_kthread(Periodically 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., stats_task)
818  Print torture statistics
820  If atomic_read( & n_lock_torture_errors) Then lock_torture_print_module_parms(cur_ops, "End of test: FAILURE")
823  Else if torture_onoff_failures() Then lock_torture_print_module_parms(cur_ops, "End of test: LOCK_HOTPLUG")
826  Else lock_torture_print_module_parms(cur_ops, "End of test: SUCCESS")
830  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.
831  writer statistics = NULL
832  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.
833  reader statistics = NULL
835  end :
836  torture_cleanup_end()
Caller
NameDescribe
lock_torture_init