selftests/bpf: Add a test for slab_iter

The test traverses all slab caches using the slab_iter and check if
current task's pointer is from "task_struct" slab cache.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
3 files changed