summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-dwarf.c
blob: 3fc1801ce4a9760dce3a2db564747ace639e88aa (plain)
1
2
3
4
5
6
7
8
9
10
#include <dwarf.h>
#include <elfutils/libdw.h>
#include <elfutils/version.h>

int main(void)
{
	Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);

	return (long)dbg;
}
4b2a0c68c5a8f71b820'>ab6526b2ca2c2c3b383a24b2a0c68c5a8f71b820 (diff)
perf bench: Disentangle headers
We should try avoiding that perf.h header, it includes way too much stuff, making it difficult to use things like setting _GNU_SOURCE only on a small set of headers. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-lb6eg9w1kzrwhv0gm3ho0h54@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat