/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | wl.c | 433 * @torture: if the physical eraseblock has to be tortured 439 int torture) in sync_erase() 455 err = ubi_io_sync_erase(ubi, e->pnum, torture); in sync_erase() 577 * @torture: if the physical eraseblock has to be tortured 584 int vol_id, int lnum, int torture, bool nested) in schedule_erase() 590 dbg_wl("schedule erasure of PEB %d, EC %d, torture %d", in schedule_erase() 591 e->pnum, e->ec, torture); in schedule_erase() 601 wl_wrk->torture = torture; in schedule_erase() 617 * @torture 438 sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int torture) sync_erase() argument 583 schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int vol_id, int lnum, int torture, bool nested) schedule_erase() argument 620 do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int vol_id, int lnum, int torture) do_sync_erase() argument 650 int err, scrubbing = 0, torture = 0, protect = 0, erroneous = 0; global() local 1238 ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum, int pnum, int torture) global() argument [all...] |
H A D | ubi.h | 795 * @torture: if the physical eraseblock has to be tortured 810 int torture; member 909 int pnum, int torture); 917 int lnum, int torture); 928 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture);
|
H A D | fastmap-wl.c | 361 * @torture: if this physical eraseblock has to be tortured 364 int lnum, int torture) in ubi_wl_put_fm_peb() 390 return schedule_erase(ubi, e, vol_id, lnum, torture, true); in ubi_wl_put_fm_peb() 363 ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, int lnum, int torture) ubi_wl_put_fm_peb() argument
|
H A D | eba.c | 517 int torture = 0; in check_mapping() local 530 torture = 1; in check_mapping() 535 ubi_wl_put_peb(ubi, vol->vol_id, lnum, *pnum, torture); in check_mapping()
|
H A D | io.c | 367 ubi_msg(ubi, "run torture test for PEB %d", pnum); in torture_peb() 412 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum); in torture_peb() 511 * @torture: if this physical eraseblock has to be tortured 513 * This function synchronously erases physical eraseblock @pnum. If @torture 523 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) in ubi_io_sync_erase() argument 544 if (torture) { in ubi_io_sync_erase()
|
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | wl.c | 433 * @torture: if the physical eraseblock has to be tortured 439 int torture) in sync_erase() 455 err = ubi_io_sync_erase(ubi, e->pnum, torture); in sync_erase() 577 * @torture: if the physical eraseblock has to be tortured 584 int vol_id, int lnum, int torture, bool nested) in schedule_erase() 590 dbg_wl("schedule erasure of PEB %d, EC %d, torture %d", in schedule_erase() 591 e->pnum, e->ec, torture); in schedule_erase() 601 wl_wrk->torture = torture; in schedule_erase() 617 * @torture 438 sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int torture) sync_erase() argument 583 schedule_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int vol_id, int lnum, int torture, bool nested) schedule_erase() argument 620 do_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int vol_id, int lnum, int torture) do_sync_erase() argument 650 int err, scrubbing = 0, torture = 0, protect = 0, erroneous = 0; global() local [all...] |
H A D | ubi.h | 793 * @torture: if the physical eraseblock has to be tortured 808 int torture; member 907 int pnum, int torture); 915 int lnum, int torture); 926 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture);
|
H A D | fastmap-wl.c | 413 * @torture: if this physical eraseblock has to be tortured 416 int lnum, int torture) in ubi_wl_put_fm_peb() 442 return schedule_erase(ubi, e, vol_id, lnum, torture, true); in ubi_wl_put_fm_peb() 415 ubi_wl_put_fm_peb(struct ubi_device *ubi, struct ubi_wl_entry *fm_e, int lnum, int torture) ubi_wl_put_fm_peb() argument
|
H A D | eba.c | 516 int torture = 0; in check_mapping() local 529 torture = 1; in check_mapping() 534 ubi_wl_put_peb(ubi, vol->vol_id, lnum, *pnum, torture); in check_mapping()
|
H A D | io.c | 367 ubi_msg(ubi, "run torture test for PEB %d", pnum); in torture_peb() 412 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum); in torture_peb() 511 * @torture: if this physical eraseblock has to be tortured 513 * This function synchronously erases physical eraseblock @pnum. If @torture 523 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture) in ubi_io_sync_erase() argument 551 if (torture) { in ubi_io_sync_erase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/rcutorture/bin/ |
H A D | torture.sh | 4 # Run a series of torture tests, intended for overnight or 7 # Usage: torture.sh [ options ] 219 ds="`date +%Y.%m.%d-%H.%M.%S`-torture" 223 T="`mktemp -d ${TMPDIR-/tmp}/torture.sh.XXXXXX`" 274 # Note that "flavor" is an arbitrary string. Supply --torture if needed. 312 # in any way. So also supply --torture if you need something other than 412 # --torture rcu 415 torture_bootargs="rcupdate.rcu_cpu_stall_suppress_at_boot=1 torture.disable_onoff_at_boot rcupdate.rcu_task_stall_timeout=30000" 421 torture_bootargs="torture.disable_onoff_at_boot" 422 torture_set "locktorture" tools/testing/selftests/rcutorture/bin/kvm.sh --torture loc [all...] |
H A D | kvm.sh | 89 echo " --torture lock|rcu|rcuscale|refscale|scf|X*" 238 --torture) 239 checkarg --torture "(suite name)" "$#" "$2" '^\(lock\|rcu\|rcuscale\|refscale\|scf\|X.*\)$' '^--' 241 TORTURE_MOD="`echo $TORTURE_SUITE | sed -e 's/^\(lock\|rcu\|scf\)$/\1torture/'`"
|
H A D | kvm-test-1-run.sh | 112 echo Do the torture scripts know about your architecture?
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm.sh | 74 echo " --torture lock|rcu|rcuscale|refscale|scf" 200 --torture) 201 checkarg --torture "(suite name)" "$#" "$2" '^\(lock\|rcu\|rcuscale\|refscale\|scf\)$' '^--'
|
H A D | kvm-test-1-run.sh | 103 echo Do the torture scripts know about your architecture?
|
/kernel/linux/linux-5.10/kernel/ |
H A D | Makefile | 123 obj-$(CONFIG_TORTURE_TEST) += torture.o
|
H A D | scftorture.c | 35 #include <linux/torture.h> 80 torture_param(bool, shutdown, SCFTORT_SHUTDOWN, "Shutdown at end of torture test."); 139 // Print torture statistics. Caller must ensure serialization. 174 // Periodically prints torture statistics, if periodic statistics printing
|
H A D | torture.c | 3 * Common functions for in-kernel torture tests. 8 * Based on kernel/rcu/torture.c. 39 #include <linux/torture.h> 56 #define FULLSTOP_SHUTDOWN 1 /* System shutdown with torture running. */ 57 #define FULLSTOP_RMMOD 2 /* Normal rmmod of torture. */ 356 static int shuffle_idle_cpu; /* Force all torture tasks off this CPU */ 381 * Unregister all tasks, for example, at the end of the torture run. 478 * Variables for auto-shutdown. This allows "lights out" torture runs 492 pr_notice("torture thread %s parking due to system shutdown\n", in torture_shutdown_absorb() 500 * Cause the torture tes [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | Makefile | 125 obj-$(CONFIG_TORTURE_TEST) += torture.o
|
H A D | torture.c | 3 * Common functions for in-kernel torture tests. 8 * Based on kernel/rcu/torture.c. 39 #include <linux/torture.h> 66 #define FULLSTOP_SHUTDOWN 1 /* System shutdown with torture running. */ 67 #define FULLSTOP_RMMOD 2 /* Normal rmmod of torture. */ 186 * Some torture testing leverages confusion as to the number of online 187 * CPUs. This function returns the torture-testing view of this number, 188 * which allows torture tests to load-balance appropriately. 480 static int shuffle_idle_cpu; /* Force all torture tasks off this CPU */ 505 * Unregister all tasks, for example, at the end of the torture ru [all...] |
H A D | scftorture.c | 35 #include <linux/torture.h> 78 torture_param(bool, shutdown, SCFTORT_SHUTDOWN, "Shutdown at end of torture test."); 150 // Print torture statistics. Caller must ensure serialization. 188 // Periodically prints torture statistics, if periodic statistics printing
|
/kernel/linux/linux-5.10/kernel/rcu/ |
H A D | refscale.c | 36 #include <linux/torture.h> 575 // Wait for torture to stop us in main_func()
|
H A D | rcuscale.c | 39 #include <linux/torture.h> 734 /* Do torture-type-specific cleanup operations. */ in rcu_scale_cleanup()
|
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | locktorture.c | 3 * Module-based torture test facility for locking 9 * Based on kernel/rcu/torture.c. 31 #include <linux/torture.h> 55 "Type of lock to torture (spin_lock, spin_lock_irq, mutex_lock, ...)"); 102 * Definitions for lock torture testing. 609 * Lock torture writer kthread. Repeatedly acquires and releases 646 * Lock torture reader kthread. Repeatedly acquires and releases 678 * Create an lock-torture-statistics message in the specified buffer. 709 * Print torture statistics. Caller must ensure that there is only one 750 * Periodically prints torture statistic [all...] |
/kernel/linux/linux-6.6/kernel/rcu/ |
H A D | rcuscale.c | 39 #include <linux/torture.h> 927 /* Do torture-type-specific cleanup operations. */ in rcu_scale_cleanup()
|