1 /** 2 * \file 3 * \brief Backtrace 4 */ 5 /* 6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>, 7 * Alexander Warg <warg@os.inf.tu-dresden.de> 8 * economic rights: Technische Universität Dresden (Germany) 9 * This file is part of TUD:OS and distributed under the terms of the 10 * GNU Lesser General Public License 2.1. 11 * Please see the COPYING-LGPL-2.1 file for details. 12 */ 13 #pragma once 14 15 #include <sys/cdefs.h> 16 17 __BEGIN_DECLS 18 19 /** 20 * \brief Fill backtrace structure. 21 * 22 * \param pc_array Array of instruction pointers. 23 * \param max_len Length of array. 24 * \return Number of entries 25 */ 26 int l4util_backtrace(void **pc_array, int max_len); 27 28 __END_DECLS 29