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 v3:
- Modified and removed unnecessary `if` statements as suggested by
  Kui-Feng [1]

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

[1] https://lore.kernel.org/lkml/3739e65c-b86d-4c11-9cf5-7b7608040...@gmail.com/
[2] https://lore.kernel.org/lkml/3531360b-c933-4c5f-a84c-17edf0592...@linux.dev/
[3] https://lore.kernel.org/lkml/7d703c4c-1a24-4806-a483-c02efb666...@gmail.com


Previous versions:
v2 - 
https://lore.kernel.org/lkml/db3pr10mb6835598b901975beaeba8601e8...@db3pr10mb6835.eurprd10.prod.outlook.com
   - 
https://lore.kernel.org/lkml/db3pr10mb68352b683f26ee9c342b71a9e8...@db3pr10mb6835.eurprd10.prod.outlook.com

v1 - 
https://lore.kernel.org/lkml/db3pr10mb683589a5f705c6ca5be0d325e8...@db3pr10mb6835.eurprd10.prod.outlook.com
   - 
https://lore.kernel.org/lkml/db3pr10mb68356d7cdf6005480be5876ce8...@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       | 85 +++++++++----------
 1 file changed, 40 insertions(+), 45 deletions(-)

-- 
2.25.1

Reply via email to