opd_interface.h

Go to the documentation of this file.
00001 
00016 #ifndef OPD_INTERFACE_H
00017 #define OPD_INTERFACE_H
00018 
00019 #define CTX_SWITCH_CODE         1
00020 #define CPU_SWITCH_CODE         2
00021 #define COOKIE_SWITCH_CODE      3
00022 #define KERNEL_ENTER_SWITCH_CODE    4
00023 #define USER_ENTER_SWITCH_CODE      5
00024 #define MODULE_LOADED_CODE      6
00025 #define CTX_TGID_CODE           7
00026 #define TRACE_BEGIN_CODE        8
00027 /* Code 9 used to be TRACE_END_CODE which is not used anymore  */
00028 /* Code 9 is now considered an unknown escape code             */
00029 #define XEN_ENTER_SWITCH_CODE       10
00030 /*
00031  * Ugly work-around for the unfortunate collision between Xenoprof's
00032  * DOMAIN_SWITCH_CODE (in use on x86) and Cell's SPU_PROFILING_CODE
00033  * (in use with Power):
00034  */
00035 #if defined(__powerpc__)
00036 #define SPU_PROFILING_CODE      11
00037 #define SPU_CTX_SWITCH_CODE     12
00038 #else
00039 #define DOMAIN_SWITCH_CODE      11
00040 /* Code 12 is now considered an unknown escape code */
00041 #endif
00042 
00043 /* AMD's Instruction-Based Sampling (IBS) escape code */
00044 #define IBS_FETCH_SAMPLE        13
00045 #define IBS_OP_SAMPLE           14
00046 #define LAST_CODE           15
00047  
00048 #endif /* OPD_INTERFACE_H */

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1