blob: c51f2a7f434e8d1a81eaf810b70825c0aa8dfba2 [file] [log] [blame]
Yabin Cui3c8c2132015-08-13 20:30:20 -07001/*
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 Hughes66dd09e2015-12-04 14:00:57 -080018#include <android-base/logging.h>
Yabin Cui3c8c2132015-08-13 20:30:20 -070019
Yabin Cui516a87c2018-03-26 17:34:00 -070020#include "read_dex_file.h"
Yabin Cui3c8c2132015-08-13 20:30:20 -070021#include "environment.h"
Yabin Cui03381452017-12-13 11:31:53 -080022#include "OfflineUnwinder.h"
Yabin Cui3c8c2132015-08-13 20:30:20 -070023
Yabin Cui03381452017-12-13 11:31:53 -080024namespace simpleperf {
Yabin Cui6e75e1b2018-02-06 13:42:16 -080025OfflineUnwinder::OfflineUnwinder(bool collect_stat) : collect_stat_(collect_stat) {
Christopher Ferris11017682017-12-14 15:53:37 -080026}
27
Yabin Cui6e75e1b2018-02-06 13:42:16 -080028bool OfflineUnwinder::UnwindCallChain(const ThreadEntry&, const RegSet&, const char*, size_t,
Yabin Cui81a9d332017-12-10 13:09:07 -080029 std::vector<uint64_t>*, std::vector<uint64_t>*) {
30 return false;
Yabin Cui3c8c2132015-08-13 20:30:20 -070031}
Yabin Cui03381452017-12-13 11:31:53 -080032} // namespace simpleperf
Yabin Cui3c8c2132015-08-13 20:30:20 -070033
Yabin Cui3c8c2132015-08-13 20:30:20 -070034bool GetKernelBuildId(BuildId*) {
35 return false;
36}
Yabin Cuif8974522017-07-17 14:36:37 -070037
38bool CanRecordRawData() {
39 return false;
40}
Yabin Cui516a87c2018-03-26 17:34:00 -070041
42bool ReadSymbolsFromDexFile(const std::string&, const std::vector<uint64_t>&,
43 std::vector<DexFileSymbol>*) {
44 return true;
45}