blob: 7124aa1dc8fb77d5fe1adae0cc4a0dcaff2ff3a3 [file] [log] [blame]
Ingo Molnar4cc91172013-09-30 16:49:38 +02001#include <execinfo.h>
2#include <stdio.h>
3
4int main(void)
5{
Ingo Molnar1e3f30f2013-10-02 15:48:49 +02006 void *backtrace_fns[10];
7 size_t entries;
8
9 entries = backtrace(backtrace_fns, 10);
10 backtrace_symbols_fd(backtrace_fns, entries, 1);
Ingo Molnar4cc91172013-09-30 16:49:38 +020011
12 return 0;
13}