This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][Instrumentation][NFC] define and use mmap constants
ClosedPublic

Authored by treapster on Jun 29 2023, 2:18 AM.

Diff Detail

Event Timeline

treapster created this revision.Jun 29 2023, 2:18 AM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
treapster requested review of this revision.Jun 29 2023, 2:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 2:18 AM
treapster updated this revision to Diff 535699.Jun 29 2023, 3:10 AM

Add MAP_FAILED

treapster added inline comments.Jun 29 2023, 3:18 AM
bolt/runtime/instr.cpp
1554

Should i remove it from this diff or add it to all mmap calls?

Amir accepted this revision.Jun 29 2023, 10:26 AM
This revision is now accepted and ready to land.Jun 29 2023, 10:26 AM
rafauler added inline comments.Jun 29 2023, 1:47 PM
bolt/runtime/instr.cpp
1554

Why do you ask? I think it's fine

treapster added inline comments.Jun 29 2023, 1:55 PM
bolt/runtime/instr.cpp
1554

Because i'm not sure it can be called NFC with the check added, but if it is, then we may as well add it to other places

rafauler added inline comments.Jun 29 2023, 2:02 PM
bolt/runtime/instr.cpp
1554

It's fine to leave as NFC.

treapster updated this revision to Diff 536009.Jun 29 2023, 2:44 PM

Add assertions to other 2 mmap calls

This revision was landed with ongoing or failed builds.Jun 29 2023, 3:05 PM
This revision was automatically updated to reflect the committed changes.