Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp348066lqg; Thu, 11 Apr 2024 05:10:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1/gi8v3iaVKFekd9AZIwz1HucCLodJAJkWrveFl9vZgVujtZp1eICGsipPjGbjthMOLtkT96a+3S8h1CHjneeI8MarRiYbJYqb0Yn0A== X-Google-Smtp-Source: AGHT+IH8A6clO7mBx1Jmld6OiRcuVJ5x6UIc1bL2z53LwDN3H+yzBIw6VQ8cpbUZmxROm+bYWbEs X-Received: by 2002:a05:6214:2a47:b0:696:8c2f:9a12 with SMTP id jf7-20020a0562142a4700b006968c2f9a12mr4969825qvb.37.1712837435497; Thu, 11 Apr 2024 05:10:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712837435; cv=pass; d=google.com; s=arc-20160816; b=Uj5817qoCpzgHIPe1VohQPBVCyLMB+FqJlHVF2lHVkKWXwYE0zc8R/bjnKalM0J9Do yMm7yfQoorALh4R821y+oRgEz2d2Ad8mEelxHRTEi2eCF8HnHknyFGUtuz9MVGP2ldJW f1oQC3OWOuaHpmRO8pwahltdqvYh4n396Z8oUJHAc2XifGYDBRf6xJjCTRAC0q+56XKa ebpcxpFBgMh6t0pai3r4wPWZTXyI//MDlldPaVQNjPeYBrG7BJnarG2RzthXXGXuw8+Y LYGlHLWGTqt9t3fJhyBwGNZ052tiaGM9pAzRIG/TZveRqW6OrjCH67o0q8HTr2zHfh0k GhFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=hkrFH13rJqzV8ZcruczRyDBQH/pmNEUfDHLzqGi3GR0=; fh=CPJ1E2gPA1UW5y4LG3y6O47qVwZNKHXiW3dScj6xhjE=; b=rKbHbrTJolPf978ThyZso3Hj1fiAE+LQFsM+VtEU9RS2a1+jkmZHO8FRjm8nREn4Bw SOTFEAO3h4L05alpJcCLhSoUDZpzas6sHAMp2P8nQSc8KcCappYkPVh2cPCe22qWfVmS WtlxhqNZgmUsxkc9mIpanm9lb8MXE80W220kcWoAf1GMxublVJpN6lVtpoHfTYm2lTr5 E8NJq8BPtMTzQN58ymyZCVTshmd20YN877MN/xLUtjq7FnCNgfHoFA+61mu3EONWLaip 4WnWUNq6xz0mRxoH33dsPGz4s9jnRYM4uIlo60AgAJ3XlL4J/MZ2rPz5pZyOgtYiJ5aQ G7QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jo16-20020a056214501000b0069b31012708si1555152qvb.608.2024.04.11.05.10.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:10:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 280E01C21971 for ; Thu, 11 Apr 2024 12:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC37114B07A; Thu, 11 Apr 2024 12:10:25 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15B1B14A4D4; Thu, 11 Apr 2024 12:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837425; cv=none; b=HGQEUXQVpyqXR/b+eIAEtUCLTB7jfEcGFDbvX2EQYbyHZWivH27iCxHo28axrZr0j8XQB+0B+1hKudVedq5XYekWyYFXthpSkK1AAhdwgDva+6X+iC6cOq6jbB5dJeNqeO13h4QGsi82DBYmp4zkSd7wJvgeOTA4CaLOTkpzNsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837425; c=relaxed/simple; bh=ocRnIxs6wujZ806WOVns+Tmp+Ey4F4aPQWLBpel6pYk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n2z9p5+WVoOO7BEW3sNZg2bOf43PhjtXlGOhb/w/yfq/cYtt1neC1DD5JN6RDa3CCNCUblbhTeZS6ASWkLOnJ3ANWSaj1iBHyGe3z3IgZiZlAUmtXBq8aPgk/Dhn+hzqRo4vs1KEJKxNKfyxWF1SOqnFT03RVeBb5RUItx/26ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/ >