1 : // Copyright 2012 Google Inc. All Rights Reserved.
2 : //
3 : // Licensed under the Apache License, Version 2.0 (the "License");
4 : // you may not use this file except in compliance with the License.
5 : // You may obtain a copy of the License at
6 : //
7 : // http://www.apache.org/licenses/LICENSE-2.0
8 : //
9 : // Unless required by applicable law or agreed to in writing, software
10 : // distributed under the License is distributed on an "AS IS" BASIS,
11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 : // See the License for the specific language governing permissions and
13 : // limitations under the License.
14 : //
15 : // Declares constants used by the various pieces of the instrumentation and
16 : // trace agent's that work with basic-blocks. For example, this might include
17 : // a coverage client and instrumentation (a single on/off value for whether or
18 : // not a basic-block was entered) or a thread-aware basic-block entry counting
19 : // client and instrumentation.
20 :
21 : #ifndef SYZYGY_COMMON_BASIC_BLOCK_FREQUENCY_DATA_H_
22 : #define SYZYGY_COMMON_BASIC_BLOCK_FREQUENCY_DATA_H_
23 :
24 : #include <windows.h>
25 :
26 : #include "base/basictypes.h"
27 : #include "syzygy/common/indexed_frequency_data.h"
28 :
29 m : namespace common {
30 :
31 : // The basic-block coverage agent ID.
32 m : extern const uint32 kBasicBlockCoverageAgentId;
33 :
34 : // The basic-block entry counting agent ID.
35 m : extern const uint32 kBasicBlockEntryAgentId;
36 :
37 : // The basic-block trace agent version.
38 m : extern const uint32 kBasicBlockFrequencyDataVersion;
39 :
40 : // The name of the basic-block ranges stream added to the PDB by
41 : // any instrumentation employing basic-block trace data.
42 m : extern const char kBasicBlockRangesStreamName[];
43 :
44 m : } // namespace common
45 :
46 : #endif // SYZYGY_COMMON_BASIC_BLOCK_FREQUENCY_DATA_H_
|