Blame man/man3/PAPI_get_executable_info.3

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