403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/src/kernels/5.14.0-539.el9.x86_64/tools/include/linux/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/src/kernels/5.14.0-539.el9.x86_64/tools/include/linux/stacktrace.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBLOCKDEP_LINUX_STACKTRACE_H_
#define _LIBLOCKDEP_LINUX_STACKTRACE_H_

#include <execinfo.h>

struct stack_trace {
	unsigned int nr_entries, max_entries;
	unsigned long *entries;
	int skip;
};

static inline void print_stack_trace(struct stack_trace *trace, int spaces)
{
	backtrace_symbols_fd((void **)trace->entries, trace->nr_entries, 1);
}

#define save_stack_trace(trace)	\
	((trace)->nr_entries =	\
		backtrace((void **)(trace)->entries, (trace)->max_entries))

static inline int dump_stack(void)
{
	void *array[64];
	size_t size;

	size = backtrace(array, 64);
	backtrace_symbols_fd(array, size, 1);

	return 0;
}

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit