lkml.org 
[lkml]   [2023]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH bpf-next v2 0/2] selftests/bpf: Replaces CHECK macros and adds malloc failure checks to bpf_iter
Date
This patch series contains the following updates:
- Replaces the usage of all the CHECK macros in bpf_iter
to the appropriate ASSERT_* macro calls
- Adds appropriate malloc failure checks to bpf_iter

Changes in v2:
- Removed unused "duration" variable which caused compilation error
as reported by Yonghong Song [1]
- Improved malloc failure handling as suggested by Kui-Feng Lee [2]
- Ensured propper patch formatting (i.e. sending it as a set instead
of two distinct patches)

[1] https://lore.kernel.org/lkml/3531360b-c933-4c5f-a84c-17edf0592519@linux.dev/
[2] https://lore.kernel.org/lkml/7d703c4c-1a24-4806-a483-c02efb666059@gmail.com


Previous version:
v1 - https://lore.kernel.org/lkml/DB3PR10MB683589A5F705C6CA5BE0D325E8DFA@DB3PR10MB6835.EURPRD10.PROD.OUTLOOK.COM
- https://lore.kernel.org/lkml/DB3PR10MB68356D7CDF6005480BE5876CE8DEA@DB3PR10MB6835.EURPRD10.PROD.OUTLOOK.COM

Yuran Pereira (2):
selftests/bpf: Convert CHECK macros to ASSERT_* macros in bpf_iter
selftests/bpf: Add malloc failure checks in bpf_iter

.../selftests/bpf/prog_tests/bpf_iter.c | 88 +++++++++----------
1 file changed, 44 insertions(+), 44 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2023-10-26 04:05    [W:0.048 / U:2.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site