blob: db5bed203289feb3dca616dac7fdee0992da0078 [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 {
Yabin Cui6e75e1b2018-02-06 13:42:16 -080024OfflineUnwinder::OfflineUnwinder(bool collect_stat) : collect_stat_(collect_stat) {
Christopher Ferris11017682017-12-14 15:53:37 -080025}
26
Yabin Cui6e75e1b2018-02-06 13:42:16 -080027bool OfflineUnwinder::UnwindCallChain(const ThreadEntry&, const RegSet&, const char*, size_t,
Yabin Cui81a9d332017-12-10 13:09:07 -080028 std::vector<uint64_t>*, std::vector<uint64_t>*) {
29 return false;
Yabin Cui3c8c2132015-08-13 20:30:20 -070030}
Yabin Cui03381452017-12-13 11:31:53 -080031} // namespace simpleperf
Yabin Cui3c8c2132015-08-13 20:30:20 -070032
Yabin Cui3c8c2132015-08-13 20:30:20 -070033bool GetKernelBuildId(BuildId*) {
34 return false;
35}
Yabin Cuif8974522017-07-17 14:36:37 -070036
37bool CanRecordRawData() {
38 return false;
39}