When testing against syscall_intercept we discovered that the liberal use of fprintf introduced a significant slowdown (5x roughly on the dd benchmark we have been using). To improve this, I made the syscall handler print the current line into a stack local buffer using custom printing routines which gets outputed using a write syscall directly right before the syscall handler terminates.
When testing against
syscall_intercept
we discovered that the liberal use offprintf
introduced a significant slowdown (5x roughly on the dd benchmark we have been using). To improve this, I made the syscall handler print the current line into a stack local buffer using custom printing routines which gets outputed using a write syscall directly right before the syscall handler terminates.