blob: b0fdb069c4664f7b1e9874e75f69bbc8f26f675d [file] [log] [blame]
Loganfc9530e2010-11-26 19:49:07 +08001/*
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
Logan5a765f72010-12-29 01:53:52 +080017#ifndef BCC_EMITTEDFUNCINFO_H
18#define BCC_EMITTEDFUNCINFO_H
Loganfc9530e2010-11-26 19:49:07 +080019
Logana9c089d2010-11-26 20:39:41 +080020#include <stddef.h>
Loganfc9530e2010-11-26 19:49:07 +080021
22namespace bcc {
23
Logan5a765f72010-12-29 01:53:52 +080024 class EmittedFuncInfo {
Loganfc9530e2010-11-26 19:49:07 +080025 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
Logan5a765f72010-12-29 01:53:52 +080035 EmittedFuncInfo() : FunctionBody(NULL), Code(NULL) {
Loganfc9530e2010-11-26 19:49:07 +080036 }
37
38 };
39
Logan1db37e32010-11-27 14:41:23 +080040} // namespace bcc
Loganfc9530e2010-11-26 19:49:07 +080041
Logan5a765f72010-12-29 01:53:52 +080042#endif // BCC_EMITTEDFUNCINFO_H