Summary: | Controlling gmon.out file creation in HPC environment | ||
---|---|---|---|
Product: | glibc | Reporter: | Pidad <pidsouza> |
Component: | libc | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | neleai |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Pidad
2012-01-06 18:32:09 UTC
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 (); } } |