45757895c7
Adding feature check test code for libdw dwarf unwind. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1392825179-5228-4-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
14 lines
273 B
C
14 lines
273 B
C
|
|
#include <elfutils/libdwfl.h>
|
|
|
|
int main(void)
|
|
{
|
|
/*
|
|
* This function is guarded via: __nonnull_attribute__ (1, 2).
|
|
* Passing '1' as arguments value. This code is never executed,
|
|
* only compiled.
|
|
*/
|
|
dwfl_thread_getframes((void *) 1, (void *) 1, NULL);
|
|
return 0;
|
|
}
|