1PAPI_get_shared_lib_info(3)          PAPI          PAPI_get_shared_lib_info(3)
2
3
4

NAME

6       PAPI_get_shared_lib_info  - get address info about the shared libraries
7       used by the process
8
9

SYNOPSIS

11       C Interface
12       #include <papi.h>
13       const PAPI_shlib_info_t *PAPI_get_shared_lib_info(void);
14
15

DESCRIPTION

17       In C, this function returns a pointer to a structure containing  infor‐
18       mation  about  the shared library used by the program. There is no For‐
19       tran equivalent call.
20
21

NOTE

23       This data will be incorporated into the  PAPI_get_executable_info  call
24       in the future.  will be deprecated and should be used with caution.
25
26
27

RETURN VALUES

29       On success, the function returns a non-NULL pointer.
30        On error, NULL is returned.
31
32

DATA STRUCTURE

34          typedef struct _papi_address_map {
35             char name[PAPI_MAX_STR_LEN];
36             caddr_t text_start;       /* Start address of program text segment */
37             caddr_t text_end;         /* End address of program text segment */
38             caddr_t data_start;       /* Start address of program data segment */
39             caddr_t data_end;         /* End address of program data segment */
40             caddr_t bss_start;        /* Start address of program bss segment */
41             caddr_t bss_end;          /* End address of program bss segment */
42          } PAPI_address_map_t;
43
44          typedef struct _papi_shared_lib_info {
45             PAPI_address_map_t *map;
46             int count;
47          } PAPI_shlib_info_t;
48
49

BUGS

51       If  called  before  PAPI_library_init()  the behavior of the routine is
52       undefined.
53
54

SEE ALSO

56       PAPI_library_init(3),      PAPI_get_opt(3),      PAPI_get_dmem_info(3),
57       PAPI_get_executable_info(3), PAPI_get_hardware_info(3)
58
59
60
61PAPI Programmer's Reference     September, 2004    PAPI_get_shared_lib_info(3)
Impressum