History

torture: Allow inter-stutter interval to be specified

Currently, the inter-stutter interval is the same as the stutter duration, that is, whatever number of jiffies is passed into torture_stutter_init(). This has worked well for quite some time, but the addition of forward-progress testing to rcutorture can delay processes for several seconds, which can triple the time that they are stuttered. This commit therefore adds a second argument to torture_stutter_init() that specifies the inter-stutter interval. While locktorture preserves the current behavior, rcutorture uses the RCU CPU stall warning interval to provide a wider inter-stutter interval.

Paul E. McKenney committed 7 years ago

Commit ff3bf921 parent e8516c64 files · +10 −5Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/torture.h+1−1
@@ -66,7 +66,7 @@ int torture_shutdown_init(int ssecs, void (*cleanup)(void)); · 65 unmodified lines
6666
6767 /* Task stuttering, which forces load/no-load transitions. */
6868 bool stutter_wait(const char *title);
69−int torture_stutter_init(int s);
69+int torture_stutter_init(int s, int sgap);
7070
7171 /* Initialization and cleanup. */
7272 bool torture_init_begin(char *ttype, int v);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t