blob: 4f53c0ed9c65c58f7c63e226657aa3eadc756a11 [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 Cui3c8c2132015-08-13 20:30:20 -070020#include "environment.h"
Yabin Cui03381452017-12-13 11:31:53 -080021#include "OfflineUnwinder.h"
Yabin Cui3c8c2132015-08-13 20:30:20 -070022
Yabin Cui03381452017-12-13 11:31:53 -080023namespace simpleperf {
Christopher Ferris11017682017-12-14 15:53:37 -080024OfflineUnwinder::OfflineUnwinder(bool strict_arch_check, bool collect_stat)
25 : strict_arch_check_(strict_arch_check), collect_stat_(collect_stat) {
26}
27
Yabin Cui03381452017-12-13 11:31:53 -080028bool OfflineUnwinder::UnwindCallChain(int, 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}