PAPI_set_debug(3) PAPI PAPI_set_debug(3)NAME
PAPI_set_debug -
Set the current debug level for error output from PAPI.
SYNOPSIS Detailed Description
C Prototype:
#include <papi.h>
int PAPI_set_debug( int level );
Parameters:
level one of the constants shown in the table below and defined in the papi.h header file.
The possible debug levels for debugging are shown below.
o PAPI_QUIET Do not print anything, just return the error code
o PAPI_VERB_ECONT Print error message and continue
o PAPI_VERB_ESTOP Print error message and exit
Return values:
PAPI_OK
PAPI_EINVAL The debug level is invalid.
The current debug level is used by both the internal error and debug message handler subroutines.
The debug handler is only used if the library was compiled with -DDEBUG.
The debug handler is called when there is an error upon a call to the PAPI API.
The error handler is always active and its behavior cannot be modified except for whether or not it prints anything.
The default PAPI debug handler prints out messages in the following form:
PAPI Error: Error Code code, symbol, description
If the error was caused from a system call and the return code is PAPI_ESYS, the message will have a colon space and the error string as
reported by strerror() appended to the end.
The PAPI error handler prints out messages in the following form:
PAPI Error: message.
Note:
This is the ONLY function that may be called BEFORE PAPI_library_init().
Example:
int ret;
ret = PAPI_set_debug(PAPI_VERB_ECONT);
if ( ret != PAPI_OK ) handle_error();
*
See Also:
PAPI_library_init
PAPI_get_opt
PAPI_set_opt
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_set_debug(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)
RUNNING RCBTP05
Tue Oct 12 13:37:13 EDT 2004
I/O error : file 'CMDFILE'
error code: 3/5 (ANS85), pc=0, call=1, seg=0
13 File not found
Please advise as to what the above error message is all about.
Thanks in advance. (0 Replies)
Hi,
I'm porting code from Windows to HP-UX 11, compiling with g++.
I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> .
The errors I am getting are:... (4 Replies)
Hi,
I recently has a C++ code which only run on Fedora Platform.
I wanted to run debugging on these code as I came across some unexplainable
scenario output.
Can anyone suggest how could I use any debugger? I tried to use GNU GDB but then the code I am dealing now are involving... (0 Replies)
hi there,
I was recently introduced to this site by a friend. I hope you guys can help with a code error i can't seem to debug.I can get to add two different data types together. A snippet of the code is below:
echo -n "Enter Your MOnthly Investment"
read Inv
PIP= $(echo "scale=2; 10 / 100"... (4 Replies)
my C++ Compiler is ACC version
aCC: HP ANSI C++ B3910B A.03.85
OS Version B.11.11
this my program error message
I don't know what error it is
aCC -g -DHPUX -DCHT_DEBUG -DNOSTD -c CProcess.cpp
Error 181: "CProcess.cpp", line 83 # Expected 0 argument(s) for "void... (1 Reply)
Dear experts,
please inform when i am trying to use dbx to debug my code,
iam getting following error:
internal error: expected member attribute 's', 'p', 'r' or 'b', found... (1 Reply)
Is there a way to see or print a sub code?
Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen.
So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined.
Also, if... (4 Replies)
Hello,
I am gettig an error as shown below while compiling using Sun C++ 5.8 compilation,
"/temp5/SUNWspro/prod/include/CC/stlport4/stl/_alloc.h", line 134: Error: The function "__stl_new" must have a prototype.
"/temp5/SUNWspro/prod/include/CC/stlport4/stl/_alloc.h", line 135: Error: The... (2 Replies)