From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 707D8CD1284 for ; Thu, 11 Apr 2024 12:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0/Xzqkaj1+Vx1V9TeHD5J3V+OrThxy2eoY1TBaQfDog=; b=rBAedXT+EcQsTG Bxot48njylIt4zJlFy6bQO8xfR83+cqeUCsPk0uMFLPCvSDQgEYvRQyV1oG+0rQxS+ME2P+pcqvlp dvLk6W2kuKyBgNYN90da6vQn5Hk5NHMltnRk0Mp9snx0HFWcHtul9xwTVGyJLc39QaTQdy9BYfMoo /nwxsbMofIsUNLeASjmBqg6EeESxbHFJNiDCYM2TneiH3PJBL5o4+rLTyWciH4uoApGqXMGmDtWph CA5TbMmBc8I78E3QcuTf+85BsvgEtY+wyGHkPUbLcKh4eqJQP4s8F5umdZLPX8KhTnumEIw22QRDX ClB/QXW21oaGqRFfhNKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutGA-0000000BseG-2CRO; Thu, 11 Apr 2024 12:10:30 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutG6-0000000Bscd-31Wd for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 12:10:28 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B51CE113E; Thu, 11 Apr 2024 05:10:51 -0700 (PDT) Received: from [10.163.57.160] (unknown [10.163.57.160]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F1A33F64C; Thu, 11 Apr 2024 05:10:07 -0700 (PDT) Message-ID: Date: Thu, 11 Apr 2024 17:40:04 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 0/8] perf tools: Fix test "perf probe of function from different CU" Content-Language: en-US To: Alexey Dobriyan Cc: linux-perf-users@vger.kernel.org, anshuman.khandual@arm.com, james.clark@arm.com, Josh Poimboeuf , Peter Zijlstra , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Leo Yan , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Chenyuan Mi , Masami Hiramatsu , Ravi Bangoria , =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= , Colin Ian King , Changbin Du , Kan Liang , Athira Rajeev , Tiezhu Yang , =?UTF-8?Q?Georg_M=C3=BCller?= , Liam Howlett , bpf@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240408062230.1949882-1-ChaitanyaS.Prakash@arm.com> From: Chaitanya S Prakash In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_051026_850410_201A9B23 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/9/24 11:02, Alexey Dobriyan wrote: > 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! This is done in accordance with Ian's comments on V1 of this patch series. Please find the link to the same below. https://lore.kernel.org/all/CAP-5=fUFmeoTjLuZTgcaV23iGQU1AdddG+7Rw=d6buMU007+1Q@mail.gmail.com/ > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel