blob: 4a2e82c6fff1cc328ad647905bee20d047d6e849 [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 {
24bool OfflineUnwinder::UnwindCallChain(int, const ThreadEntry&, const RegSet&, const char*, size_t,
Yabin Cui81a9d332017-12-10 13:09:07 -080025 std::vector<uint64_t>*, std::vector<uint64_t>*) {
26 return false;
Yabin Cui3c8c2132015-08-13 20:30:20 -070027}
Yabin Cui03381452017-12-13 11:31:53 -080028} // namespace simpleperf
Yabin Cui3c8c2132015-08-13 20:30:20 -070029
Yabin Cui3c8c2132015-08-13 20:30:20 -070030bool GetKernelBuildId(BuildId*) {
31 return false;
32}
Yabin Cuif8974522017-07-17 14:36:37 -070033
34bool CanRecordRawData() {
35 return false;
36}