selftests/bpf: Output the correct error code for pthread APIs
authorHou Tao <houtao1@huawei.com>
Tue, 13 Jun 2023 08:09:18 +0000 (16:09 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 19 Jun 2023 20:26:43 +0000 (13:26 -0700)
commitea400d13fc92ec66578b068e661a162e01d4b641
tree3faf137f1dd759aba5b9aefd512edd2adc100faa
parent8ad663d3dfac95cbcc4121d0655bd18ad9de826f
selftests/bpf: Output the correct error code for pthread APIs

The return value of pthread API is the error code when the called
API fails, so output the return value instead of errno.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20230613080921.1623219-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bench.c