|
From: John R. <jr...@bi...> - 2018-06-13 03:22:28
|
> Is there any way that I can FLUSH valgrind output ? or configure it to flush results to file real time ? Modify the source to valgrind so that valgrind achieves the effect of calling setlinebuf() on the FILE * without actually using libc [valgrind cannot use libc "directly".] Then re-build valgrind, install it somewhere, and run it. [Obviously: "$ man setlinebuf". Not-so-obviously: there's a control bit which can be found in the source for setlinebuf.] |