From: Julian Seward Date: Fri, 9 Mar 2018 18:17:06 +0000 (+0100) Subject: VG_(di_notify_mmap): don't complain about being unable to stat64/stat files in /dev... X-Git-Tag: VALGRIND_3_14_0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51fe122c63c0133908e57a212a377564f7dc2579;p=thirdparty%2Fvalgrind.git 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 --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index 3f86aced5e..c8a6124a2c 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);