mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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
This commit is contained in:
parent
8dc42f9804
commit
f339a3ef63
@ -694,7 +694,6 @@ dt_printf(dtrace_hdl_t *dtp, FILE *fp, const char *format, ...)
|
||||
|
||||
va_copy(ap2, ap);
|
||||
n = vfprintf(fp, format, ap2);
|
||||
fflush(fp);
|
||||
va_end(ap2);
|
||||
va_end(ap);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user