samples/bpf: Check the error of write() and read()
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 4 Jul 2018 13:36:38 +0000 (22:36 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 5 Jul 2018 07:58:52 +0000 (09:58 +0200)
commit02a2f000a3629274bfad60bfc4de9edec49e63e7
treec19b1e7d24a41fe68c63fb4bb3f16c299bcde64d
parent492b7e894587c151be681f86d4d1d086375f7b45
samples/bpf: Check the error of write() and read()

test_task_rename() and test_urandom_read()
can be failed during write() and read(),
So check the result of them.

Reviewed-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/test_overhead_user.c