If there are no counters, an mmap() of the counters section would fail
due to the size argument being too small (EINVAL).
rdar://78175925
Paths
| Differential D102735
[profile] Skip mmap() if there are no counters ClosedPublic Authored by vsk on May 18 2021, 4:37 PM.
Details Summary If there are no counters, an mmap() of the counters section would fail rdar://78175925
Diff Detail
Unit TestsFailed
Event TimelineThis revision is now accepted and ready to land.May 18 2021, 5:02 PM This revision was landed with ongoing or failed builds.May 19 2021, 9:32 AM Closed by commit rG7014a1016143: [profile] Skip mmap() if there are no counters (authored by vsk). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 346301 compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/test/profile/ContinuousSyncMode/image-with-no-counters.c
|
clang-format: please reformat the code