]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/port/stack_trace.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / port / stack_trace.h
CommitLineData
7c673cae
FG
1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2// This source code is licensed under the BSD-style license found in the
3// LICENSE file in the root directory of this source tree. An additional grant
4// of patent rights can be found in the PATENTS file in the same directory.
5//
6#pragma once
7namespace rocksdb {
8namespace port {
9
10// Install a signal handler to print callstack on the following signals:
11// SIGILL SIGSEGV SIGBUS SIGABRT
12// Currently supports linux only. No-op otherwise.
13void InstallStackTraceHandler();
14
15// Prints stack, skips skip_first_frames frames
16void PrintStack(int first_frames_to_skip = 0);
17
18} // namespace port
19} // namespace rocksdb