| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | |
| 17 | // Add fake functions to build successfully on darwin. |
| Elliott Hughes | 66dd09e | 2015-12-04 14:00:57 -0800 | [diff] [blame] | 18 | #include <android-base/logging.h> |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 19 | |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 20 | #include "environment.h" |
| Yabin Cui | 0338145 | 2017-12-13 11:31:53 -0800 | [diff] [blame] | 21 | #include "OfflineUnwinder.h" |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 22 | |
| Yabin Cui | 0338145 | 2017-12-13 11:31:53 -0800 | [diff] [blame] | 23 | namespace simpleperf { |
| Christopher Ferris | 1101768 | 2017-12-14 15:53:37 -0800 | [diff] [blame^] | 24 | OfflineUnwinder::OfflineUnwinder(bool strict_arch_check, bool collect_stat) |
| 25 | : strict_arch_check_(strict_arch_check), collect_stat_(collect_stat) { |
| 26 | } |
| 27 | |
| Yabin Cui | 0338145 | 2017-12-13 11:31:53 -0800 | [diff] [blame] | 28 | bool OfflineUnwinder::UnwindCallChain(int, const ThreadEntry&, const RegSet&, const char*, size_t, |
| Yabin Cui | 81a9d33 | 2017-12-10 13:09:07 -0800 | [diff] [blame] | 29 | std::vector<uint64_t>*, std::vector<uint64_t>*) { |
| 30 | return false; |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 31 | } |
| Yabin Cui | 0338145 | 2017-12-13 11:31:53 -0800 | [diff] [blame] | 32 | } // namespace simpleperf |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 33 | |
| Yabin Cui | 3c8c213 | 2015-08-13 20:30:20 -0700 | [diff] [blame] | 34 | bool GetKernelBuildId(BuildId*) { |
| 35 | return false; |
| 36 | } |
| Yabin Cui | f897452 | 2017-07-17 14:36:37 -0700 | [diff] [blame] | 37 | |
| 38 | bool CanRecordRawData() { |
| 39 | return false; |
| 40 | } |