[LTP] [PATCH 2/2] Fix BPF test program loading issues
Martin Doucha
mdoucha@suse.cz
Thu Feb 6 14:08:20 CET 2020
On 2/6/20 1:36 PM, Richard Palethorpe wrote:
> OTOH, At least with compilers which don't have link time optimisation
> (everything except Clang?), there is an advantage to including stuff
> inline. Hence why fzsync is entirely in the header, although I don't
> think it matters much either way for LTP.
GCC does have link-time optimisation.
CFLAGS += -flto
CXXFLAGS += -flto
LDFLAGS += -flto
The only drawback is that object files will get bigger and linking the
test programs will take significantly longer. But since the performance
overhead of actual LTP code is mostly trivial compared to time spent in
system calls and waiting for I/O operations, I don't think we'll gain
anything by turning these optimizations on.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list