Home  Easy-Code   Forum    Updater 


Not signed in (Sign In)
    • CommentAuthorbrother2
    • CommentTimeMar 30th 2012
     
    ProbeVue is a dynamic tracing facility available from IBM from AIX 6 TL5 to determine memory leaks. Using following syntax to determine the memory leaks under a particular process-id,

    probevue -o leakreport leak_script.e PID

    leak_script.e is the script file in probevue syntax to be as an arugument as shownbelow,

    /**********ProbeVue Memory Leak Script BEGIN***********/
    void *malloc_common(unsigned long size);
    int free_common(void *ptr);
    @@uft:$1:libc.a:malloc_common:entry
    {
    printf("Request for %lld\n", __arg1);
    }
    @@uft:$1:libc.a:malloc_common:exit
    when((unsigned long long)__rv != 0)
    {
    printf("allocation for %llx\n", (unsigned long long)__rv);
    stktrace(PRINT_SYMBOLS|GET_USER_TRACE, -1);
    }

    @@uft:$1:libc.a:free_common:entry
    {
    printf("free for %llx\n", (unsigned long long)__arg1);
    stktrace(PRINT_SYMBOLS|GET_USER_TRACE, -1);
    }
    /*****************************END*****************************/