Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1772240lqe; Mon, 8 Apr 2024 22:32:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlRfN7TxuinktxxYveenu1kU5EUOkuWpp9PInqag+f2Be3j+yJZEfj10Y/R6aZw/ub0wTfGXc86RkNXDpa3vOG2mHgZfHnwh8vRcPeGw== X-Google-Smtp-Source: AGHT+IE21EnFjjYnaKkMvuY6i6nIdFJkVMqlsrIZgvu/nTTh+hy3brXotDKt2/uyzK00wLPrJQhg X-Received: by 2002:a17:902:ec04:b0:1dd:6eba:c592 with SMTP id l4-20020a170902ec0400b001dd6ebac592mr9670514pld.56.1712640754541; Mon, 08 Apr 2024 22:32:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712640754; cv=pass; d=google.com; s=arc-20160816; b=yCB/7yTZmNJHJ8zy2sKnt3/HbwQQBkSlivugfF2UYcrVIlf3aX32rOb4CAcGuffyXz HhNiwqVlqWuy9dVeGfqVY0qDr3aovNrmVHvmz3FBXzMs22bmPtX/MHP8L1T3CkD3E/FP TUeBLApp2pQht3KxdswU0L7timDjf4qFORs7v5s7lDSkv+7nXCFdj6ygTrgk6uBJrgcU I4nTXs3xZ1kvxgS6AZ009ALh+CTQX+fgwxIP0y/5WnaKC1Z/8kaxC5k100jGLdn3JXKr +hcZH98ghoGNbP17WrmLNqYldXj+uK8VVIWOUVV89RvrugtuFlGrJRbfArczIhQ0Mv5h ud+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7CGb/5Mee8Fak1uuYWFLZbIIgpz0svekZAVX6sH4tG4=; fh=S1nHIUGtAhZMkjWXhIj0SbxYox+A86uOiEZ8ZohaTYM=; b=P4MTmPX2RCY9h4MWSi2gzyS9hhNyUYbas4bMM9JnX/agZN5zBod0I9L5vXWwLjoEAr MgBVRgKYFPWT23AT+a/XzNYcoS/MpjgX4jkzt7vxHjLCRMUGv/ZABQtXMl8mYDbtRug5 Vih0H24bdtTd9G+oNhvgLFtA7wEYwocH3d+c9kx52yfpsh38kZLfYJ8tRX9zFe1gfgsH oKST1/gGJ88AU3jipuPW6lFv4Tq/KC1LR3HrEw9LqQeUNs6EWwBnvuaoOJYhSYaHatm1 7FoYJr1GUNzJeQpolPj9U/acNBeXpLsJZhnjWuWAMAMz0UV46PmEIT4aejgMpD+Ahb8n /K+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X7NzfviO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-136253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n12-20020a170902e54c00b001e3f248a8a4si4701167plf.589.2024.04.08.22.32.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 22:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X7NzfviO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-136253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 355AB2838E6 for ; Tue, 9 Apr 2024 05:32:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E96C65E20; Tue, 9 Apr 2024 05:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X7NzfviO" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EED91138E; Tue, 9 Apr 2024 05:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712640744; cv=none; b=a8Hssl6lg1M12ipkMp1DqsLhd0kSRUdAs/MzNMIZNRV9hh40KwS1J26j5EIE+yie0qW+IDWqXgYMFgIfuFCI50Ov+tq8gF2j+yl5rGVMrILvqsAx04F0PJZi8LvmGsGO7s81t8vL5qUJYLQmlizRWTmRAZl63L9y7Cchobbngfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712640744; c=relaxed/simple; bh=9lZWekprgzyxrfgFM5K0oPFDxTJVjijkbbZ6B4fmnHE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KARXVi8ICtWXvSRIztCctyv0+GGb+K2sG0qo57YuTpbVFQ/+iNCnLmlP4b6eUOPvrZyzokSoZRXYZdyA7MYYjp+mIk2x425TuMg7SAbHMkoUx+jaUXCSr3GVpNxJPtsAeBeLr/XZ6uyK6s303MK6Ky8piQWFUEAC777TLmGhClI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X7NzfviO; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-516ab4b3251so5772000e87.0; Mon, 08 Apr 2024 22:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712640741; x=1713245541; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7CGb/5Mee8Fak1uuYWFLZbIIgpz0svekZAVX6sH4tG4=; b=X7NzfviOUJ8lFJ8Lhhsw/SFRQStdg7aroFNGBbB1zyr0ze6zvhZ5REijfdxll4AUX2 mEG+ef0tTkcYRX/JxBVmEQc39T4wNnzg4EpeaU7u/d8gcYI+x89U7vrkgbaizNpxxJ2y 1Ng5hMaGKn+7kxdni0P5XYMOnXiGTw1dVSgP+9U8R8O1BLAhRWmxKigBcCBTudXWeTb1 3h18iq2hsmLD01Tka4I2XAa13bOz3L6S2zmiRv2eV8a9uZywQdKEstkgLfoFK/N4wJrc +1Vddw3n8tSWXCOgrG1rBrT+W+qlLyP6ixRz7WlUE6xB9IBTviI+EEj3XazWK9o1NxPc tXNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712640741; x=1713245541; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7CGb/5Mee8Fak1uuYWFLZbIIgpz0svekZAVX6sH4tG4=; b=Fz6lD/8eauLpZm11hOZB0PBQCY5unM9RJ7BQrTdUCBEcGFbtwTxtjySTpJ4ulvRvXM O+eJLEgFPfGBcZgPEv9OLZayFeJ+KuKKhre1hD/lGjhs8E55e4t/ug32itDQO0WMGHWh FhKYhXYakB8s7MXUl5dJrO5CoYcAr+wgmn+nWrAtsCoRKol2n3brH92fVRpC3mJhj7Z0 2ZLNc9vsdgbdX091Ya3gkSddw5kaDx2owJieW2xleBg1BBjOO8XkzCiKk2R63ROg8Y5L Dw2JGapbpw+cusrW8JenSAVKYu12abAcm5hxI4X93CzQn+3MPQI/i9I3J6jmfHV8ON5O upgw== X-Forwarded-Encrypted: i=1; AJvYcCXodEyWJSY7ugxtJncYZQ140fpIURauHhFSSzL+rs2132lAGY/ZB86sg1agVgar6HWlkMjo5T2KDLMKo2hFAoOQPS7rLda/ZxlB5g4a9xxcL0IG2Mkl7RRBfxydx9+EVFsS X-Gm-Message-State: AOJu0Yxbe9oTTpEFGCN0CfteyVG6OuNXoFmTgvWvkLPW2rT+ZYYflVd4 FHF2Ju/oNvt3Edq4tudBuj12gY67MTLSE8E78DtsaLjFp8pvGXU= X-Received: by 2002:a05:6512:539:b0:515:8c97:ff47 with SMTP id o25-20020a056512053900b005158c97ff47mr7660491lfc.23.1712640740773; Mon, 08 Apr 2024 22:32:20 -0700 (PDT) Received: from p183 ([46.53.248.67]) by smtp.gmail.com with ESMTPSA id k4-20020a5d4284000000b0033e7603987dsm10594309wrq.12.2024.04.08.22.32.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 22:32:20 -0700 (PDT) Date: Tue, 9 Apr 2024 08:32:17 +0300 From: Alexey Dobriyan To: Chaitanya S Prakash 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 , Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= , Colin Ian King , Changbin Du , Kan Liang , Athira Rajeev , Tiezhu Yang , Georg =?utf-8?Q?M=C3=BCller?= , Liam Howlett , bpf@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 0/8] perf tools: Fix test "perf probe of function from different CU" Message-ID: References: <20240408062230.1949882-1-ChaitanyaS.Prakash@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240408062230.1949882-1-ChaitanyaS.Prakash@arm.com> 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!