[Bug libc/13570] Controlling gmon.out file creation in HPC environment
neleai at seznam dot cz
sourceware-bugzilla@sourceware.org
Sat Oct 26 06:03:00 GMT 2013
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.
More information about the Glibc-bugs
mailing list