mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Moving feature checks code under tools/build directory. Changing also $feature_dir to point to new feature directory location and perf Makefiles to include Makefile.feature from new location. Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
14 lines
208 B
C
14 lines
208 B
C
#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;
|
|
}
|