Re: [PATCH v2 2/4] samples/bpf: Check the result of system()

From: David Miller
Date: Thu Jul 05 2018 - 01:24:20 EST


From: Taeung Song <treeze.taeung@xxxxxxxxx>
Date: Wed, 4 Jul 2018 22:36:37 +0900

> To avoid the below build warning message,
> use new generate_load() checking the return value.
>
> ignoring return value of ʽsystemʼ, declared with attribute warn_unused_result
>
> And it also refactors the duplicate code of both
> test_perf_event_all_cpu() and test_perf_event_task()
>
> Cc: Teng Qin <qinteng@xxxxxx>
> Signed-off-by: Taeung Song <treeze.taeung@xxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>