Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

papi_get_executable_info(3) [centos man page]

PAPI_get_executable_info(3)					       PAPI					       PAPI_get_executable_info(3)

NAME
PAPI_get_executable_info - Get the executable's address space info. SYNOPSIS
Detailed Description @par C Interface: const PAPI_exe_info_t *PAPI_get_executable_info( void ); This function returns a pointer to a structure containing information about the current program. @param fullname Fully qualified path + filename of the executable. @param name Filename of the executable with no path information. @param text_start, text_end Start and End addresses of program text segment. @param data_start, data_end Start and End addresses of program data segment. @param bss_start, bss_end Start and End addresses of program bss segment. @retval PAPI_EINVAL One or more of the arguments is invalid. @par Examples: * const PAPI_exe_info_t *prginfo = NULL; * if ( ( prginfo = PAPI_get_executable_info( ) ) == NULL ) * exit( 1 ); * printf( "Path+Program: %s0, exeinfo->fullname ); * printf( "Program: %s0, exeinfo->address_info.name ); * printf( "Text start: %p, Text end: %p0, exeinfo->address_info.text_start, exeinfo->address_info.text_end) ; * printf( "Data start: %p, Data end: %p0, exeinfo->address_info.data_start, exeinfo->address_info.data_end ); * printf( "Bss start: %p, Bss end: %p0, exeinfo->address_info.bss_start, exeinfo->address_info.bss_end ); * See Also: PAPI_get_opt PAPI_get_hardware_info PAPI_exe_info_t Author Generated automatically by Doxygen for PAPI from the source code. Version 5.2.0.0 Tue Jun 17 2014 PAPI_get_executable_info(3)

Check Out this Related Man Page

PAPI_library_init(3)						       PAPI						      PAPI_library_init(3)

NAME
PAPI_library_init - initialize the PAPI library. SYNOPSIS
Detailed Description @param version upon initialization, PAPI checks the argument against the internal value of PAPI_VER_CURRENT when the library was compiled. This guards against portability problems when updating the PAPI shared libraries on your system. @retval PAPI_EINVAL papi.h is different from the version used to compile the PAPI library. @retval PAPI_ENOMEM Insufficient memory to complete the operation. @retval PAPI_ECMP This component does not support the underlying hardware. @retval PAPI_ESYS A system or C library call failed inside PAPI, see the errno variable. PAPI_library_init() initializes the PAPI library. PAPI_is_initialized() check for initialization. It must be called before any low level PAPI functions can be used. If your application is making use of threads PAPI_thread_init must also be called prior to making any calls to the library other than PAPI_library_init() . @par Examples: * int retval; * retval = PAPI_library_init(PAPI_VER_CURRENT); * if (retval != PAPI_VER_CURRENT && retval > 0) { * fprintf(stderr,"PAPI library version mismatch! "); * exit(1); } * if (retval < 0) * handle_error(retval); * retval = PAPI_is_initialized(); * if (retval != PAPI_LOW_LEVEL_INITED) * handle_error(retval) * See Also: PAPI_thread_init PAPI Author Generated automatically by Doxygen for PAPI from the source code. Version 5.2.0.0 Tue Jun 17 2014 PAPI_library_init(3)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to use awk substr ?

Hi all, I have a flatfile I would like to get ext = 7950 , how do I do that ? if ($1 == "CTI-ProgramStart") { ext = substr($9,index($9,"Extension")+11,4); But why it is not working ???? Please help . Thanks (1 Reply)
Discussion started by: sabercats
1 Replies

2. IP Networking

Exchanging Data between two applications

Hi Friends, Please send me the code for exchanging the data between two programs. The scenario is like below:- Program A reads data and sends it to Program B. Program B accept the data from program A and then prints it on console or give to printer for printout. If one or more programs... (0 Replies)
Discussion started by: anjaneyuluk
0 Replies

3. Shell Programming and Scripting

Multiline read with multicharacter record seperator

I have a file like the below: Start <</NumCopies 0001>> 0223 098 et(5926)sh 0223 098 mt(5926)sh End Start <</NumCopies 0001>> 0224 098 et(5926)sh 0224 098 mt(5926)sh End This file needs to be split to seperate files. Each of the seperate file will need to... (3 Replies)
Discussion started by: pt14
3 Replies

4. Shell Programming and Scripting

Row to Columns question

Hi, I have a question for Row to Columns by script. e.g. i have a file Start 1 2 3 4 End Start 1 2 3 3 4 4 End (6 Replies)
Discussion started by: bleach8578
6 Replies

5. Shell Programming and Scripting

Transpose

TRANSPOSE -------------------------------------------------------------------------------- i have a file with recurring fields Start A 1 B 2 C 3 D 4 E 5 End Start A 11 B 12 C 23 D 25 E 21 (1 Reply)
Discussion started by: aravindj80
1 Replies

6. Programming

URGENT!! please help

I'm trying to write a simple program but it keeps skipping a getchar() and goes directly to the following printf why would that be? and is there a way to fix that? printf("3. exit\n"); choice=getchar(); printf("something\n"); (1 Reply)
Discussion started by: natoozC
1 Replies