This is an archive of the discontinued LLVM Phabricator instance.

[msan] Strip __interceptor_ from reports
ClosedPublic

Authored by melver on May 24 2023, 9:15 AM.

Details

Summary

Showing __interceptor_ as part of the function name in reports does not
make sense and is distracting.

Strip the interceptor function name before printing.

Depends on D151319

Diff Detail

Event Timeline

melver created this revision.May 24 2023, 9:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 9:15 AM
Herald added a subscriber: Enna1. · View Herald Transcript
melver requested review of this revision.May 24 2023, 9:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 9:15 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.May 24 2023, 6:23 PM
vitalybuka added inline comments.
compiler-rt/lib/msan/msan_report.cpp
271

It's always called with func, can you please rename "what" to function

compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_printer.cpp
44

there is common_flags()->demangle flag which sometimes useful as last resort
it could be nice if it applies to DemangleFunctionName and StripFunctionName

This revision is now accepted and ready to land.May 24 2023, 6:23 PM
dvyukov accepted this revision.May 25 2023, 12:24 AM
melver marked 2 inline comments as done.May 25 2023, 2:03 AM
melver added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_printer.cpp
44
This revision was automatically updated to reflect the committed changes.
melver marked an inline comment as done.