Kernel call stack trace?
Posted: Fri Feb 13, 2015 4:49 am
How can it be implemented? I've managed to find a macro called __FUNCTION__, but how can I write it to a buffer on each call? Maybe, there's an attribute for hooking prologue?
The Place to Start for Operating System Developers
http://f.osdev.org/
man 3 backtrace wrote:Code: Select all
BACKTRACE(3) Linux Programmer's Manual BACKTRACE(3) NAME backtrace, backtrace_symbols, backtrace_symbols_fd - support for application self-debugging SYNOPSIS #include <execinfo.h> int backtrace(void **buffer, int size); char **backtrace_symbols(void *const *buffer, int size); void backtrace_symbols_fd(void *const *buffer, int size, int fd);