This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/10234] clean up aggregate hard-coded logic


https://sourceware.org/bugzilla/show_bug.cgi?id=10234

--- Comment #8 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 9525
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9525&action=edit
proposed prototype patch

The attached patch based on inlining the __stp_stat_add(), and adding a few
integer parameters denoting relevant stat ops, seems to help GCC to effectively
optimize this function.

Very rough testing shows about 17% shrinkage, which is roughly about the same
as with the patch from Comment #6 (based on preprocessing phase of the runtime
compilation).  The results were acquired using gcc-6.2.1-1.fc26.x86_64 and -O2
for the module compilation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]