Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / build / feature / test-backtrace.c
blobe9ddd27c69c35ecdd8c12197aabb7d62ab9ffa40
1 // SPDX-License-Identifier: GPL-2.0
2 #include <execinfo.h>
3 #include <stdio.h>
5 int main(void)
7 void *backtrace_fns[10];
8 size_t entries;
10 entries = backtrace(backtrace_fns, 10);
11 backtrace_symbols_fd(backtrace_fns, entries, 1);
13 return 0;