papi_get_shared_lib_info(3) - Linux man page

Name

PAPI_get_shared_lib_info - get address info about the shared libraries used by the process

Synopsis

C Interface

#include <papi.h>
const PAPI_shlib_info_t *PAPI_get_shared_lib_info(void);

Description

In C, this function returns a pointer to a structure containing information about the shared library used by the program. There is no Fortran equivalent call.

Note

This data will be incorporated into the PAPI_get_executable_info call in the future. will be deprecated and should be used with caution.

Return Values

On success, the function returns a non-NULL pointer. On error, NULL is returned.

Data Structure

 typedef struct _papi_address_map {
    char name[PAPI_MAX_STR_LEN];
    caddr_t text_start;       /* Start address of program text segment */
    caddr_t text_end;         /* End address of program text segment */
    caddr_t data_start;       /* Start address of program data segment */
    caddr_t data_end;         /* End address of program data segment */
    caddr_t bss_start;        /* Start address of program bss segment */
    caddr_t bss_end;          /* End address of program bss segment */
 } PAPI_address_map_t;

typedef struct _papi_shared_lib_info {
    PAPI_address_map_t *map;
    int count;
 } PAPI_shlib_info_t;

Bugs

If called before PAPI_library_init() the behavior of the routine is undefined.

See Also

papi_library_init(3), papi_get_opt(3), papi_get_dmem_info(3), papi_get_executable_info(3), papi_get_hardware_info(3)