Blame man/man3/PAPI_get_executable_info.3

Packit Service a1973e
.TH "PAPI_get_executable_info" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit Service a1973e
.ad l
Packit Service a1973e
.nh
Packit Service a1973e
.SH NAME
Packit Service a1973e
PAPI_get_executable_info \- 
Packit Service a1973e
.PP
Packit Service a1973e
Get the executable's address space info\&.  
Packit Service a1973e
Packit Service a1973e
.SH SYNOPSIS
Packit Service a1973e
.br
Packit Service a1973e
.PP
Packit Service a1973e
.SH "Detailed Description"
Packit Service a1973e
.PP 
Packit Service a1973e
Packit Service a1973e
.PP
Packit Service a1973e
.nf
Packit Service a1973e
@par C Interface:
Packit Service a1973e
\#include <papi.h> @n
Packit Service a1973e
const PAPI_exe_info_t *PAPI_get_executable_info( void );
Packit Service a1973e
Packit Service a1973e
This function returns a pointer to a structure containing information 
Packit Service a1973e
about the current program.
Packit Service a1973e
Packit Service a1973e
@param fullname
Packit Service a1973e
    Fully qualified path + filename of the executable.
Packit Service a1973e
@param name
Packit Service a1973e
    Filename of the executable with no path information.
Packit Service a1973e
@param text_start, text_end
Packit Service a1973e
    Start and End addresses of program text segment.
Packit Service a1973e
@param data_start, data_end
Packit Service a1973e
    Start and End addresses of program data segment.
Packit Service a1973e
@param bss_start, bss_end
Packit Service a1973e
    Start and End addresses of program bss segment.
Packit Service a1973e
Packit Service a1973e
@retval PAPI_EINVAL 
Packit Service a1973e
    One or more of the arguments is invalid. 
Packit Service a1973e
Packit Service a1973e
@par Examples:
Packit Service a1973e
Packit Service a1973e
.fi
Packit Service a1973e
.PP
Packit Service a1973e
 
Packit Service a1973e
.PP
Packit Service a1973e
.nf
Packit Service a1973e
*   const PAPI_exe_info_t *prginfo = NULL;
Packit Service a1973e
*   if ( ( prginfo = PAPI_get_executable_info( ) ) == NULL )
Packit Service a1973e
*   exit( 1 );
Packit Service a1973e
*   printf( "Path+Program: %s\n", exeinfo->fullname );
Packit Service a1973e
*   printf( "Program: %s\n", exeinfo->address_info\&.name );
Packit Service a1973e
*   printf( "Text start: %p, Text end: %p\n", exeinfo->address_info\&.text_start, exeinfo->address_info\&.text_end) ;
Packit Service a1973e
*   printf( "Data start: %p, Data end: %p\n", exeinfo->address_info\&.data_start, exeinfo->address_info\&.data_end );
Packit Service a1973e
*   printf( "Bss start: %p, Bss end: %p\n", exeinfo->address_info\&.bss_start, exeinfo->address_info\&.bss_end );
Packit Service a1973e
*   
Packit Service a1973e
Packit Service a1973e
.fi
Packit Service a1973e
.PP
Packit Service a1973e
.PP
Packit Service a1973e
\fBSee Also:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fBPAPI_get_opt\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_get_hardware_info\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_exe_info_t\fP 
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
Packit Service a1973e
Packit Service a1973e
.SH "Author"
Packit Service a1973e
.PP 
Packit Service a1973e
Generated automatically by Doxygen for PAPI from the source code\&.