This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13570] Controlling gmon.out file creation in HPC environment
- From: "neleai at seznam dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 26 Oct 2013 06:03:08 +0000
- Subject: [Bug libc/13570] Controlling gmon.out file creation in HPC environment
- Auto-submitted: auto-generated
- References: <bug-13570-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13570
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |neleai at seznam dot cz
Resolution|--- |FIXED
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
There is already a functionality to support this. You need to interpose a
_mcleanup by compiling shared library containing function like one below and
then LD_PRELOAD it for your program.
void _mcleanup (void)
{
if (user condition)
{
void (*p)() = dlsym (RTLD_NEXT, "_mcleanup");
p ();
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.