8 Commits

Author SHA1 Message Date
Christopher Di Bella
e1b88a9794 [llvm-exegesis][NFC] imports <cerrno>
`SubprocessMemory.cpp` depends on `errno` and was likely getting it via
a transitive include, but this prevents building with modules.
2023-07-09 11:04:56 -07:00
Aiden Grossman
71cbc62a24 [llvm-exegesis] Disable SubprocessMemory class on Android
Having the SubprocessMemory class available on Android was causing build
failures in downstream builds as Android doesn't implement the SystemV
IPC specification that supplies shm_open and other functions that the
class relies on. This patch simply makes it unavailable on Android using
preprocessor directives.
2023-07-06 19:12:28 -07:00
Aiden Grossman
1048b7f8e7 [llvm-exegesis] Make sure auxiliary memory is unlinked after usage
Currently the shm_unlink is never called on the auxiliary memory shared
memory, so it stays around after running llvm-exegesis (including
running the llvm-exegesis tests). This patch adds the auxiliary memory
shared memory name to the SharedMemoryNames list so that it gets
unlinked when the destructor of SubprocessMemory is called.
2023-06-30 12:43:20 -07:00
Aiden Grossman
5a63b2b304 [llvm-exegesis] Introduce SubprocessMemory Utility Class
This patch introduces the SubprocessMemory class to llvm-exegesis. This
class contains several utilities that are needed for managing memory to
set up an execution environment for memory annotations.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D151022
2023-06-26 18:22:04 +00:00
Aiden Grossman
d40dd6be00 Revert "[llvm-exegesis] Introduce SubprocessMemory Utility Class"
This reverts commit 0b6b400b98b921279fc08c63a2a68ebfcb12a3e2.

The sporadic test failures were fixed during this land, but I forgot to
fix the build failures on certain platforms (seems to mostly be
AArch64/PPC) that result from them not being able to find the symbols
for shm_open and shm_unlink.
2023-06-26 03:15:43 +00:00
Aiden Grossman
0b6b400b98 [llvm-exegesis] Introduce SubprocessMemory Utility Class
This patch introduces the SubprocessMemory class to llvm-exegesis. This
class contains several utilities that are needed for managing memory to
set up an execution environment for memory annotations.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D151022
2023-06-26 02:36:40 +00:00
Aiden Grossman
edc9e2c267 Revert "[llvm-exegesis] Introduce SubprocessMemory Utility Class"
This reverts commit 1b9b78fd481a13b54afaf4804ee4ad18fcf006fd.

There are spurious test failures on the ml-* bots and some of the ARM
builders are complaining about shm_open being missing. Pulling this
commit so that I can investigate after I sleep.
2023-06-21 08:43:52 +00:00
Aiden Grossman
1b9b78fd48 [llvm-exegesis] Introduce SubprocessMemory Utility Class
This patch introduces the SubprocessMemory class to llvm-exegesis. This
class contains several utilities that are needed for managing memory to
set up an execution environment for memory annotations.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D151022
2023-06-21 08:15:03 +00:00