1//===-- copyprof_stack.cpp ----------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// This file implements stack unwinding utilities for CopyProf, enabling
10/// stack trace collection for copy profiling reports.
11///
12//===----------------------------------------------------------------------===//
13
14#include "sanitizer_common/sanitizer_stacktrace.h"
15
16namespace __sanitizer {
17
18void BufferedStackTrace::UnwindImpl(uptr pc, uptr bp, void* context,
19 bool request_fast, u32 max_depth) {
20 Unwind(max_depth, pc, bp, context, stack_top: 0, stack_bottom: 0,
21 request_fast_unwind: StackTrace::WillUseFastUnwind(request_fast_unwind: request_fast));
22}
23
24} // namespace __sanitizer
25