"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-rdrand.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-rdrand.c  (stress-ng-0.12.09.tar.xz):stress-rdrand.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 278 skipping to change at line 278
"(instance %" PRIu32")\n", "(instance %" PRIu32")\n",
args->name, billion_bits, args->instance); args->name, billion_bits, args->instance);
if (duration > 0.0) { if (duration > 0.0) {
pr_dbg_lock(&lock, "%s: %.3f billion random bits per " pr_dbg_lock(&lock, "%s: %.3f billion random bits per "
"second (instance %" PRIu32")\n", "second (instance %" PRIu32")\n",
args->name, args->name,
(double)billion_bits / duration, (double)billion_bits / duration,
args->instance); args->instance);
} }
pr_unlock(&lock); pr_unlock(&lock);
stress_misc_stats_set(args->misc_stats, 0, "billion random bits r
ead", billion_bits);
stress_misc_stats_set(args->misc_stats, 1, "billion random bits /
sec", billion_bits / duration);
} }
stress_set_proc_state(args->name, STRESS_STATE_DEINIT); stress_set_proc_state(args->name, STRESS_STATE_DEINIT);
return rc; return rc;
} }
stressor_info_t stress_rdrand_info = { stressor_info_t stress_rdrand_info = {
.stressor = stress_rdrand, .stressor = stress_rdrand,
.supported = stress_rdrand_supported, .supported = stress_rdrand_supported,
.class = CLASS_CPU, .class = CLASS_CPU,
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

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