This is an archive of the discontinued LLVM Phabricator instance.

[XRay][clang] Allow imbuing arg1 logging attribute via -fxray-always-instrument=
ClosedPublic

Authored by dberris on May 21 2017, 11:31 PM.

Details

Summary

This change allows us to add arg1 logging support to functions through
the special case list provided through -fxray-always-instrument=. This
is useful for adding arg1 logging to functions that are either in
headers that users don't have control over (i.e. cannot change the
source) or would rather not do.

It only takes effect when the pattern is matched through the "fun:"
special case, as a category. As in:

fun:*pattern=arg1

Event Timeline

dberris created this revision.May 21 2017, 11:31 PM
rnk accepted this revision.May 23 2017, 11:43 AM

lgtm

This revision is now accepted and ready to land.May 23 2017, 11:43 AM
This revision was automatically updated to reflect the committed changes.