[compiler-rt] [msan] Support prctl PR_GET_NAME call (PR #98951)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 18:42:59 PDT 2024


================
@@ -0,0 +1,24 @@
+// RUN: %clangxx_msan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
+// REQUIRES: linux
+
+#include <linux/prctl.h>
+#include <sys/prctl.h>
+
+int main(void) {
+  prctl(PR_SET_NAME, "tname");
----------------
vitalybuka wrote:

this test is good

but because the PR changes `compiler-rt/lib/sanitizer_common/`
we need a test in `compiler-rt/test/sanitizer_common/`

It should be set/get/strcmp/assert

https://github.com/llvm/llvm-project/pull/98951


More information about the llvm-commits mailing list