I run valgrind with the following setting: valgrind --tool=memcheck --tool=callgrind --num-callers=20 --track-fds=yes --error-exitcode=1 CMD . Especially, --track-fds=yes works as desired, but each run will fail due to fds 0,1,2 that need to be opened. However, I do not want to drop --track-fds , as it certainly provides meaningful information. So, is there a valgrind option / method for tracking fds, excluding 0,1,2?
==5872== FILE DESCRIPTORS: 3 open at exit. ==5872== Open file descriptor 2: ==5872== <inherited from parent> ==5872== ==5872== Open file descriptor 1: ==5872== <inherited from parent> ==5872== ==5872== Open file descriptor 0: /dev/pts/0 ==5872== <inherited from parent> ==5872== ==5872== ==5872== Events : Ir ==5872== Collected : 3081079256 ==5872== ==5872== I refs: 3,081,079,256
valgrind
xosp7tom
source share