kernel_samsung_a34x-permissive/tools/build/feature/test-backtrace.c
2024-04-28 15:49:01 +02:00

15 lines
244 B
C
Executable file

// SPDX-License-Identifier: GPL-2.0
#include <execinfo.h>
#include <stdio.h>
int main(void)
{
void *backtrace_fns[10];
size_t entries;
entries = backtrace(backtrace_fns, 10);
backtrace_symbols_fd(backtrace_fns, entries, 1);
return 0;
}