"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-longjmp.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-longjmp.c  (stress-ng-0.12.09.tar.xz):stress-longjmp.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 98 skipping to change at line 98
if (c++ >= 1000) { if (c++ >= 1000) {
inc_counter(args); inc_counter(args);
c = 0; c = 0;
} }
} }
if (keep_stressing(args)) if (keep_stressing(args))
stress_longjmp_func(); stress_longjmp_func();
if (n) { if (n) {
const double rate = (double)STRESS_NANOSECOND * t_total / (double )n;
pr_dbg("%s: about %.3f nanoseconds per longjmp call\n", pr_dbg("%s: about %.3f nanoseconds per longjmp call\n",
args->name, args->name, rate);
(double)STRESS_NANOSECOND * t_total / (double)n); stress_misc_stats_set(args->misc_stats, 0, "nanoseconds per longj
mp call", rate);
} }
stress_set_proc_state(args->name, STRESS_STATE_DEINIT); stress_set_proc_state(args->name, STRESS_STATE_DEINIT);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
stressor_info_t stress_longjmp_info = { stressor_info_t stress_longjmp_info = {
.stressor = stress_longjmp, .stressor = stress_longjmp,
.class = CLASS_CPU, .class = CLASS_CPU,
.help = help .help = help
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

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