This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13570] Controlling gmon.out file creation in HPC environment


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]