OpenCloudOS-Kernel/tools/include/linux
Daniel Borkmann 5aa5bd14c5 bpf: add initial suite for selftests
Add a start of a test suite for kernel selftests. This moves test_verifier
and test_maps over to tools/testing/selftests/bpf/ along with various
code improvements and also adds a script for invoking test_bpf module.
The test suite can simply be run via selftest framework, f.e.:

  # cd tools/testing/selftests/bpf/
  # make
  # make run_tests

Both test_verifier and test_maps were kind of misplaced in samples/bpf/
directory and we were looking into adding them to selftests for a while
now, so it can be picked up by kbuild bot et al and hopefully also get
more exposure and thus new test case additions.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-18 11:35:55 -04:00
..
atomic.h tools include: Add basic atomic.h implementation from the kernel sources 2015-05-08 16:11:05 -03:00
bitmap.h tools lib: Add bitmap_and function 2016-08-02 16:33:27 -03:00
bitops.h tools: Work around BITS_PER_LONG related build failure in objtool 2016-07-13 09:37:43 +02:00
compiler.h tools: Make "__always_inline" just "inline" on Android 2016-07-14 12:03:04 -03:00
coresight-pmu.h tools: Copy coresight-pmu.h header file needed by perf tools 2016-08-23 15:37:33 -03:00
err.h tools: Fix shadowed declaration in err.h 2015-09-30 18:34:22 -03:00
export.h tools: Restore export.h 2015-08-25 09:44:22 +02:00
filter.h bpf: add initial suite for selftests 2016-10-18 11:35:55 -04:00
hash.h tools: Copy linux/{hash,poison}.h and check for drift 2016-07-18 18:41:50 -03:00
hashtable.h tools: Copy hashtable.h into tools directory 2016-03-09 10:48:09 +01:00
kernel.h perf tools: Uninline scnprintf() and vscnprint() 2016-07-12 15:20:24 -03:00
list.h tools: Make list.h self-sufficient 2016-01-12 12:42:07 -03:00
log2.h tools: Adopt roundup_pow_of_two 2014-12-17 11:58:15 -03:00
poison.h tools: Copy linux/{hash,poison}.h and check for drift 2016-07-18 18:41:50 -03:00
rbtree.h tools: Move rbtree.h from tools/perf/ 2015-07-05 22:54:01 -03:00
rbtree_augmented.h tools: Copy rbtree_augmented.h from the kernel 2015-07-05 22:59:05 -03:00
string.h tools lib: Reinstate strlcpy() header guard with __UCLIBC__ 2016-08-18 16:19:13 -03:00
stringify.h tools include: Copy linux/stringify.h from the kernel 2016-03-23 15:14:27 -03:00
time64.h tools: Introduce tools/include/linux/time64.h for *SEC_PER_*SEC macros 2016-08-23 15:37:33 -03:00
types.h tools include: add __aligned_u64 to types.h. 2015-05-18 10:17:32 -03:00