This website requires JavaScript.
Explore
Help
Register
Sign In
OpenSDV
/
original_kernel
Watch
1
Star
0
Fork
You've already forked original_kernel
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
805b151a1a
original_kernel
/
tools
/
build
/
feature
/
test-libelf.c
9 lines
101 B
C
Raw
Normal View
History
Unescape
Escape
tools/perf/build: Split out feature check: 'libelf' Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-qznhihaasbysfqO7ffvRsf9q@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-09-30 20:20:25 +08:00
#
include
<libelf.h>
int
main
(
void
)
{
Elf
*
elf
=
elf_begin
(
0
,
ELF_C_READ
,
0
)
;
tools/perf/build: Harmonize the style of the feature testcases The various testcases used different styles, which was not really visible as long as they hid in feature-tests.mak. Now that they are out in the open make them prettier. ( Also delete the leftover, empty feature-tests.mak file. ) Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-drDWk8xltndjdsespzjbhu6w@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-10-07 19:27:23 +08:00
tools/perf/build: Split out feature check: 'libelf' Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-qznhihaasbysfqO7ffvRsf9q@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-09-30 20:20:25 +08:00
return
(
long
)
elf
;
}