From 3c8c21345478816dd0c70c096090b564c91bd9d2 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Thu, 13 Aug 2015 20:30:20 -0700 Subject: Simpleperf: support dwarf callgraph in report command. Use libbacktrace for stack unwinding. Bug: 22229391 Change-Id: Iab35cdb52936c65c4728e23423ded83050f1db76 --- simpleperf/dwarf_unwind.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 simpleperf/dwarf_unwind.h (limited to 'simpleperf/dwarf_unwind.h') diff --git a/simpleperf/dwarf_unwind.h b/simpleperf/dwarf_unwind.h new file mode 100644 index 00000000..f6a58a1e --- /dev/null +++ b/simpleperf/dwarf_unwind.h @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef SIMPLE_PERF_DWARF_UNWIND_H_ +#define SIMPLE_PERF_DWARF_UNWIND_H_ + +#include + +#include "perf_regs.h" + +struct ThreadEntry; + +std::vector UnwindCallChain(const ThreadEntry& thread, const RegSet& regs, + const std::vector& stack); + +#endif // SIMPLE_PERF_DWARF_UNWIND_H_ -- cgit v1.2.3