Module Name: src Committed By: chs Date: Tue Feb 7 22:54:02 UTC 2023
Modified Files: src/external/cddl/osnet/dist/lib/libdtrace/common: dt_subr.c Log Message: dtrace: remove unnecessary fflush() Apply this commit from FreeBSD: commit f339a3ef6369b368f3a2455792a7a3a4c28f92c4 Author: Chuck Silvers <c...@freebsd.org> Date: Wed Feb 9 17:09:26 2022 -0800 dtrace: remove unnecessary fflush() This call was added back in the early days of dtrace porting and no one knows why anymore. The extra flushing causes lots of unnecessary CPU overhead when a script produces lots of output, as well as easily losing output because the command can't keep up. Sponsored by: Netflix Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D34216 To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 \ src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c diff -u src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c:1.15 src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c:1.16 --- src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c:1.15 Mon Feb 6 22:22:12 2023 +++ src/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c Tue Feb 7 22:54:02 2023 @@ -725,7 +725,6 @@ dt_printf(dtrace_hdl_t *dtp, FILE *fp, c va_copy(ap2, ap); n = vfprintf(fp, format, ap2); - fflush(fp); va_end(ap2); va_end(ap);