selftests/bpf: Make bpf_util work on uniprocessor systems
authorThomas Meyer <thomas@m3y3r.de>
Fri, 8 Sep 2017 11:19:23 +0000 (13:19 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 18 Sep 2017 16:55:33 +0000 (10:55 -0600)
commit56a268cd4a410081d477913d51e044039d3a8834
tree526b9672eaa065a33ebe280ab328933dae31effc
parent6f0003363a13be699ba945cfa4074193e04fbea5
selftests/bpf: Make bpf_util work on uniprocessor systems

The current implementation fails to work on uniprocessor systems.
Fix the parser to also handle the uniprocessor case.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/bpf/bpf_util.h