HPCToolkit
monitor_preload.c File Reference
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <dlfcn.h>
#include "monitor.h"
#include "hpcrun.h"
Include dependency graph for monitor_preload.c:

Go to the source code of this file.

Macros

#define __USE_GNU   /* must define on Linux to get RTLD_NEXT from <dlfcn.h> */
 
#define SELF_DEFINED__USE_GNU
 

Functions

void monitor_init_library ()
 
void monitor_fini_library ()
 
void monitor_init_process (const char *name, int *argc, char **argv, const unsigned pid)
 
void monitor_fini_process ()
 
void monitor_init_thread_support (void)
 
void * monitor_init_thread (unsigned tid)
 
void monitor_fini_thread (void *data)
 
void monitor_dlopen (char *lib)
 

Macro Definition Documentation

◆ __USE_GNU

#define __USE_GNU   /* must define on Linux to get RTLD_NEXT from <dlfcn.h> */

Definition at line 77 of file monitor_preload.c.

◆ SELF_DEFINED__USE_GNU

#define SELF_DEFINED__USE_GNU

Definition at line 78 of file monitor_preload.c.

Function Documentation

◆ monitor_dlopen()

void monitor_dlopen ( char *  lib)

Definition at line 165 of file monitor_preload.c.

◆ monitor_fini_library()

void monitor_fini_library ( )

Definition at line 105 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_fini_process()

void monitor_fini_process ( )

Definition at line 125 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_fini_thread()

void monitor_fini_thread ( void *  data)

Definition at line 155 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_init_library()

void monitor_init_library ( )

Definition at line 97 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_init_process()

void monitor_init_process ( const char *  name,
int *  argc,
char **  argv,
const unsigned  pid 
)

Definition at line 113 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_init_thread()

void* monitor_init_thread ( unsigned  tid)

Definition at line 145 of file monitor_preload.c.

Here is the call graph for this function:

◆ monitor_init_thread_support()

void monitor_init_thread_support ( void  )

Definition at line 135 of file monitor_preload.c.