|
From: Julian S. <se...@so...> - 2018-03-09 18:18:59
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=51fe122c63c0133908e57a212a377564f7dc2579 commit 51fe122c63c0133908e57a212a377564f7dc2579 Author: Julian Seward <js...@ac...> Date: Fri Mar 9 19:17:06 2018 +0100 VG_(di_notify_mmap): don't complain about being unable to stat64/stat files in /dev/shm/. Some applications cause this message to be emitted hundreds of times, which is annoying. Diff: --- coregrind/m_debuginfo/debuginfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index 3f86ace..c8a6124 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -1044,7 +1044,8 @@ ULong VG_(di_notify_mmap)( Addr a, Bool allow_SkFileV, Int use_fd ) sources of noise before complaining, though. */ if (sr_isError(statres)) { DebugInfo fake_di; - Bool quiet = VG_(strstr)(filename, "/var/run/nscd/") != NULL; + Bool quiet = VG_(strstr)(filename, "/var/run/nscd/") != NULL + || VG_(strstr)(filename, "/dev/shm/") != NULL; if (!quiet && VG_(clo_verbosity) > 1) { VG_(memset)(&fake_di, 0, sizeof(fake_di)); fake_di.fsm.filename = ML_(dinfo_strdup)("di.debuginfo.nmm", filename); |