lkml.org 
[lkml]   [2024]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH V2 0/8] perf tools: Fix test "perf probe of function from different CU"
    On Mon, Apr 08, 2024 at 11:52:22AM +0530, Chaitanya S Prakash wrote:
    > - Add str_has_suffix() and str_has_prefix() to tools/lib/string.c
    > - Delete ends_with() and replace its usage with str_has_suffix()

    > - Delete strstarts() from tools/include/linux/string.h and replace its
    > usage with str_has_prefix()

    It should be the other way: starts_with is normal in userspace.
    C++, Python, Java, C# all have it. JavaScript too!

    \
     
     \ /
      Last update: 2024-05-27 16:30    [W:7.367 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site