00001 /* 00002 * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2 of the GNU General Public License as 00011 published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write the Free Software Foundation, Inc., 59 00026 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00027 00028 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00029 Mountain View, CA 94043, or: 00030 00031 http://www.sgi.com 00032 00033 For further information regarding this notice, see: 00034 00035 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00036 00037 */ 00038 00039 00040 //-*-c++-*- 00041 // ==================================================================== 00042 // ==================================================================== 00043 // 00044 // Module: profile_type.h 00045 // $Revision: 1.1.1.1 $ 00046 // $Date: 2005/10/21 19:00:00 $ 00047 // $Author: marcel $ 00048 // $Source: /proj/osprey/CVS/open64/osprey1.0/common/com/profile_type.h,v $ 00049 // 00050 // Revision history: 00051 // 1-Nov-2002 - Original Version (by s.x.yang) 00052 // 00053 // Description: 00054 // =========== 00055 // Definition of profiling type and phase. 00056 // 00057 // ==================================================================== 00058 // ==================================================================== 00059 00060 #ifndef profile_type_INCLUDED 00061 #define profile_type_INCLUDED 00062 00063 #ifndef INT32_MAX 00064 # define INT32_MAX 2147483647 00065 #endif 00066 00067 // When to instrument? Correlates to Instrumentation_Phase_Num 00068 enum PROFILE_PHASE 00069 { 00070 PROFILE_PHASE_NONE = -1, 00071 PROFILE_PHASE_BEFORE_VHO = 0, 00072 PROFILE_PHASE_IPA_CUTOFF = 0, // phases less than or equal to 00073 // IPA_CUTOFF will not be 00074 // instrumented when the input file 00075 // is an ipa-generated file. 00076 PROFILE_PHASE_BEFORE_LNO = 1, 00077 PROFILE_PHASE_BEFORE_WOPT = 2, 00078 PROFILE_PHASE_BEFORE_CG = 3, 00079 PROFILE_PHASE_BEFORE_REGION = 4, 00080 PROFILE_PHASE_LAST = 5, 00081 PROFILE_PHASE_MAX = INT32_MAX // Fb_Hdr size must be 0 mod 64 00082 }; 00083 00084 00085 // What instrument? Correlates to Profile_Type 00086 enum PROFILE_TYPE 00087 { 00088 WHIRL_PROFILE = 1, 00089 CG_EDGE_PROFILE = 2, 00090 CG_VALUE_PROFILE = 4, 00091 CG_STRIDE_PROFILE = 8, 00092 PROFILE_TYPE_LAST = 16, 00093 PROFILE_TYPE_MAX = INT32_MAX 00094 }; 00095 00096 #endif /*profile_type_INCLUDED*/
1.5.6