[Openmp-commits] [PATCH] D128466: [OpenMP] Use /proc/self instead of /proc/<getpid()> to get mapped addresses

Lucian Adrian Grijincu via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 23 15:45:59 PDT 2022


luciang added inline comments.


================
Comment at: openmp/runtime/src/z_Linux_util.cpp:2025
+  char *name = "/proc/self/maps";
+#else
   char *name = __kmp_str_format("/proc/%d/maps", getpid());
----------------
This will issue warnings/build errors under some configurations. Change the type to:

  const char* name


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128466/new/

https://reviews.llvm.org/D128466



More information about the Openmp-commits mailing list