OSDN Git Service

bpf: Fix tools and testing build.
authorDavid Miller <davem@davemloft.net>
Tue, 19 Dec 2017 20:22:03 +0000 (15:22 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 19 Dec 2017 23:15:05 +0000 (00:15 +0100)
commit19c832ed9b8f7b49fa5eeef06b4338af5fe5c1dc
treee6fce796b4dd5a097347c78905455743284bde34
parentc682ccc4962a8fab949e1f2d7325b3e825dbf6d1
bpf: Fix tools and testing build.

I'm getting various build failures on sparc64.  The key is
usually that the userland tools get built 32-bit.

1) clock_gettime() is in librt, so that must be added to the link
   libraries.

2) "sizeof(x)" must be printed with "%Z" printf prefix.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_progs.c