"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-dev.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-dev.c  (stress-ng-0.12.09.tar.xz):stress-dev.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 3098 skipping to change at line 3098
if (ret == STRESS_TRY_OPEN_FAIL) { if (ret == STRESS_TRY_OPEN_FAIL) {
stress_hash_add(dev_open_fail, tmp); stress_hash_add(dev_open_fail, tmp);
try_failed++; try_failed++;
continue; continue;
} }
if (ret == STRESS_TRY_AGAIN) if (ret == STRESS_TRY_AGAIN)
continue; continue;
} }
ret = shim_pthread_spin_lock(&lock); ret = shim_pthread_spin_lock(&lock);
if (!ret) { if (!ret) {
(void)memset(filename, 0, sizeof(filename));
(void)shim_strlcpy(filename, tmp, sizeof(filename )); (void)shim_strlcpy(filename, tmp, sizeof(filename ));
dev_path = filename; dev_path = filename;
(void)shim_pthread_spin_unlock(&lock); (void)shim_pthread_spin_unlock(&lock);
stress_dev_procname(filename); stress_dev_procname(filename);
stress_dev_rw(args, loops); stress_dev_rw(args, loops);
inc_counter(args); inc_counter(args);
} }
stress_hash_add(dev_open_ok, tmp); stress_hash_add(dev_open_ok, tmp);
break; break;
default: default:
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)