mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
Detailed gem5 analysis of how data races happen
And pass niters as a thread argument to all threading implementations... otherwise every loop has to do a memory load from the global!
This commit is contained in:
@@ -25,9 +25,13 @@ int main(int argc, char **argv) {
|
||||
request = strtol(argv[2], NULL, 10);
|
||||
if (argc > 3) {
|
||||
arg0 = strtol(argv[3], NULL, 10);
|
||||
} else {
|
||||
arg0 = 0;
|
||||
}
|
||||
if (argc > 4) {
|
||||
arg1 = strtol(argv[4], NULL, 10);
|
||||
} else {
|
||||
arg1 = 0;
|
||||
}
|
||||
|
||||
fd = open(ioctl_path, O_RDONLY);
|
||||
|
||||
Reference in New Issue
Block a user