[PATCH bpf-next v3 0/2] bpf: Add kfunc bpf_strcasecmp()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kfunc already support bpf_strcmp, this patchset introduce bpf_strcasecmp
and add some selftests.

Rong Tao (2):
  bpf: add bpf_strcasecmp kfunc
  selftests/bpf: Test kfunc bpf_strcasecmp

 kernel/bpf/helpers.c                          | 68 +++++++++++++------
 .../selftests/bpf/prog_tests/string_kfuncs.c  |  1 +
 .../bpf/progs/string_kfuncs_failure1.c        |  6 ++
 .../bpf/progs/string_kfuncs_failure2.c        |  1 +
 .../bpf/progs/string_kfuncs_success.c         |  5 ++
 5 files changed, 61 insertions(+), 20 deletions(-)

---
v3: Update prog_tests/string_kfuncs.c for "strcasecmp";
v2: Remove __ign prefix from __bpf_strcasecmp and add E2BIG failure test;
    https://lore.kernel.org/lkml/tencent_8646158457D4511C447C833B21B3ACF6CB07@xxxxxx/
v1: https://lore.kernel.org/lkml/tencent_5AE811A28781BE106AD6CDE59F4ADD2BFA06@xxxxxx/
-- 
2.51.0





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux