Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

papi_set_debug(3) [centos man page]

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)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Error message

I'm getting an error - symbol referencing errors. No output written to, etc Can anybody tell me why this is? (2 Replies)
Discussion started by: Dan Rooney
2 Replies

2. UNIX for Dummies Questions & Answers

I/O error : file 'CMDFILE'

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)
Discussion started by: simt
0 Replies

3. Programming

Compilation error on namespaces in system header debug.h

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)
Discussion started by: rimon
4 Replies

4. Programming

How to debug a C++ code

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)
Discussion started by: ahjiefreak
0 Replies

5. UNIX for Dummies Questions & Answers

Non Numeric Argument Error

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)
Discussion started by: Allenzo
4 Replies

6. Programming

aCC Compile error message

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)
Discussion started by: alert0919
1 Replies

7. AIX

Internal error

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)
Discussion started by: vin_pll
1 Replies

8. Shell Programming and Scripting

perl: a way to see a sub code in debug mode: perl -de 0 ?

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)
Discussion started by: alex_5161
4 Replies

9. Programming

"__stl_new" must have a prototype

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)
Discussion started by: shafi2all
2 Replies