Date: Tue, 20 Aug 2019 20:24:48 +0200 From: Mateusz Guzik <mjguzik@gmail.com> To: FreeBSD Current <freebsd-current@freebsd.org> Cc: Dimitry Andric <dim@freebsd.org> Subject: funny pathname lookups from the compiler Message-ID: <CAGudoHE1HVqKVjXCVLEBbSeXVvrSLLHFwJL%2BGhTHuE5BA0cjjA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Interested parties can collect this on their own:
dtrace -n 'vfs:namei:lookup:entry /execname == "ld.lld" || execname ==
"cc"/ { @[stringof(arg1)] = count(); }'
and cc hello.c or similar elsewhere.
Full list is here:
http://dpaste.com/2YM1R41
Highlights of fishy entries for me:
/proc/self/fd 1
/etc/SuSE-release 3
/etc/alpine-release 3
/etc/arch-release 3
/etc/debian_version 3
/etc/exherbo-release 3
/etc/gentoo-release 3
/etc/lsb-release 3
/etc/malloc.conf 3
/etc/redhat-release 3
I don't know this code but I strongly suspect most of this can be easily
ifdef-ed out. The first one perhaps can be disabled with a switch to
configure.
None of this is a significant problem of course, but it does look like a
waste.
--
Mateusz Guzik <mjguzik gmail.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHE1HVqKVjXCVLEBbSeXVvrSLLHFwJL%2BGhTHuE5BA0cjjA>
