blob: 3efa97d482cbea57df8a678635d2c136f2786d40 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * A generic stack depot implementation
4 *
5 * Author: Alexander Potapenko <glider@google.com>
6 * Copyright (C) 2016 Google, Inc.
7 *
8 * Based on code by Dmitry Chernenkov.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00009 */
10
11#ifndef _LINUX_STACKDEPOT_H
12#define _LINUX_STACKDEPOT_H
13
14typedef u32 depot_stack_handle_t;
15
David Brazdil0f672f62019-12-10 10:32:29 +000016depot_stack_handle_t stack_depot_save(unsigned long *entries,
17 unsigned int nr_entries, gfp_t gfp_flags);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000018
David Brazdil0f672f62019-12-10 10:32:29 +000019unsigned int stack_depot_fetch(depot_stack_handle_t handle,
20 unsigned long **entries);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000021
22#endif