Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010, The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Logan | 5a765f7 | 2010-12-29 01:53:52 +0800 | [diff] [blame] | 17 | #ifndef BCC_EMITTEDFUNCINFO_H |
| 18 | #define BCC_EMITTEDFUNCINFO_H |
Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 19 | |
Logan | a9c089d | 2010-11-26 20:39:41 +0800 | [diff] [blame] | 20 | #include <stddef.h> |
Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 21 | |
| 22 | namespace bcc { |
| 23 | |
Logan | 5a765f7 | 2010-12-29 01:53:52 +0800 | [diff] [blame] | 24 | class EmittedFuncInfo { |
Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 25 | public: |
| 26 | // Beginning of the function's allocation. |
| 27 | void *FunctionBody; |
| 28 | |
| 29 | // The address the function's code actually starts at. |
| 30 | void *Code; |
| 31 | |
| 32 | // The size of the function code |
| 33 | int Size; |
| 34 | |
Logan | 5a765f7 | 2010-12-29 01:53:52 +0800 | [diff] [blame] | 35 | EmittedFuncInfo() : FunctionBody(NULL), Code(NULL) { |
Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | }; |
| 39 | |
Logan | 1db37e3 | 2010-11-27 14:41:23 +0800 | [diff] [blame] | 40 | } // namespace bcc |
Logan | fc9530e | 2010-11-26 19:49:07 +0800 | [diff] [blame] | 41 | |
Logan | 5a765f7 | 2010-12-29 01:53:52 +0800 | [diff] [blame] | 42 | #endif // BCC_EMITTEDFUNCINFO_H |