This is an archive of the discontinued LLVM Phabricator instance.

Do not generate calls to fentry with __attribute__((no_instrument_function))
ClosedPublic

Authored by manojgupta on Mar 1 2018, 7:25 PM.

Details

Summary

Currently only calls to mcount were suppressed with
no_instrument_function attribute.
Linux kernel requires that calls to fentry should also not be
generated.
This is an extended fix for PR PR33515.

Diff Detail

Event Timeline

manojgupta created this revision.Mar 1 2018, 7:25 PM
chandlerc edited reviewers, added: rnk, rsmith, rjmccall; removed: chandlerc.Mar 2 2018, 2:05 AM

Adding more Clang CodeGen folks to this review rather than myself...

rnk added a reviewer: hans.Mar 2 2018, 11:13 AM

This looks right to me, but we should check with @hans since I think he touched this code last.

rjmccall accepted this revision.Mar 2 2018, 2:42 PM

Seems reasonable to me.

This revision is now accepted and ready to land.Mar 2 2018, 2:42 PM
This revision was automatically updated to reflect the committed changes.