Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5499650rdb; Sat, 16 Sep 2023 22:28:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM7N6DWFv51SnksGPtbkYPDQpTgbGPEOF6aQbdrkBFMFVy4JrStb5jT0JFpuiHq7E6l3yf X-Received: by 2002:a05:6808:e84:b0:3a7:366f:3b01 with SMTP id k4-20020a0568080e8400b003a7366f3b01mr7297294oil.33.1694928486928; Sat, 16 Sep 2023 22:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694928486; cv=none; d=google.com; s=arc-20160816; b=Nq/PP9QmWIcQQLuWy6oh1ht9QBAos+hIrzpVFaos67+rkFgETDl6JKlED3iayWtrNM XjS7u6yfml1icU9vxqncWF53TcmXNLnFOVoSP9sgTadD6eORE2X7GqDCC8ofIQZUaEYc WYBmfRP6shzBQguKoaUwPsgirUwKIMJlbJvAOEpXmLMH/kykEAG5EOzBmxun3kWK+bG0 gM6f8u8Tk/Lj1rNdQB0KQKoz+IX23Ipmz56SF8gVQwvIMQzUABc9TKJc6v8l36wv6wLi WH80GGHDz0hd7JDuuZhJaFVYye3ttS755ggN/oi53aGFC45tBPalOE8MKM0EYBFVvQQh TdIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Xo0mKj1j4JwkGizJveCgXzaun1201MH9AnhamQEhAgQ=; fh=d+b35E7aPbrNnnq0O+K+g/WVwoe30lQ8+RTxBPs4Sbk=; b=OkrhIeNuOXAgggeak+H5qMRdZCzsppYpXnzQvy5c1B8jkG7eIjH6LOtG65gt8+Py7j dLll4zSyGmoeVxbtSF5gXGI0JMfMzvhhBllixRZ5iuZepoOKwg1GMdz5jgXIRQqCLNn5 uyX0/SRogA/pRhAxomvQ8Erbmr7OqpLRfcaStajxaLXEnMvo5l5hRlsAuBuij6k1OsHJ 74r88FOcBNME8VJWEToaRLb7xhdRKEb5aO2YC2DRR4B7FLOa71SdImqjF92JMX7cmp41 VH39ms8HBKOPBpox1cslkl43hZmuTbuxXPaLy86FH06Na0CpUWrX3V2kkNyc4mtPZ0I/ GC9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id gt18-20020a17090af2d200b0027015c0e1f3si8143862pjb.10.2023.09.16.22.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 22:28:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CF36D8584616; Sat, 16 Sep 2023 22:28:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbjIQFZN convert rfc822-to-8bit (ORCPT + 99 others); Sun, 17 Sep 2023 01:25:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbjIQFY4 (ORCPT ); Sun, 17 Sep 2023 01:24:56 -0400 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEC5A19F; Sat, 16 Sep 2023 22:24:51 -0700 (PDT) Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-79275d86bc3so132230739f.0; Sat, 16 Sep 2023 22:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694928291; x=1695533091; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L2PEWOCH3Oi47G+B9Ydh9wql/Nmm8hAKIK7292mMif4=; b=PseFOhamYPY86kP2wWePbglRydbtQMdzzblGs66pb134GlmjMXGDA7w/s/fHMRnWh7 WBTHCxpqzrGoY2VA1n1Ge4WcEUX8ObDyksep/ZDWKqkIk4tqOm6XZk5cfIaNjxwYqX0P rtAa/SJi5yxKEPJSvheCVxqgjM1xvLFd/4N8OOl2FhPIWvRMzZIzfwb2ojJolp8R8vxK AolfCx2qclkHhs6dzPcDMgnufG9E1HoMq8CQGu0kJl93SF0rT19sMFQ/3kAU09JQA6y5 /hpjdDpuWCybblHiAITaUw0ASHVBVnvzv/jKGTRvDRy2ZopwJUI84jk9BlViN9t6CRbE RivA== X-Gm-Message-State: AOJu0YwFqfnJNFNmalYAFqALdGTGlae9ZwaeNCJydPyguHGubhPpyH81 C8AiijRVEZFNJHYQ8B17pAf8YAgsrEM3fAlcOTw= X-Received: by 2002:a6b:7319:0:b0:776:fd07:3c96 with SMTP id e25-20020a6b7319000000b00776fd073c96mr6420841ioh.7.1694928290868; Sat, 16 Sep 2023 22:24:50 -0700 (PDT) MIME-Version: 1.0 References: <20230913153355.138331-1-james.clark@arm.com> In-Reply-To: <20230913153355.138331-1-james.clark@arm.com> From: Namhyung Kim Date: Sat, 16 Sep 2023 22:24:38 -0700 Message-ID: Subject: Re: [PATCH v3 0/3] perf: strcmp_cpuid_str() expression fixups To: James Clark Cc: linux-perf-users@vger.kernel.org, irogers@google.com, acme@kernel.org, John Garry , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Haixin Yu , Jing Zhang , Eduard Zingerman , Ravi Bangoria , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 16 Sep 2023 22:28:06 -0700 (PDT) Hello, On Wed, Sep 13, 2023 at 8:34 AM James Clark wrote: > > Set of fixes related to the comments here [1]. Mainly cleanups, > additional tests and refactoring since adding the new strcmp_cpuid_str() > metric expression. > > I added the string replace function to the perf utils > rather than tools/lib/string.c because it didn't seem > easy to add tests for tools/lib. > > [1]: https://lore.kernel.org/linux-arm-kernel/CAP-5=fVnUx0BnJC7X1rrm42OD7Bk=ZsHWNwAZMBYyB7yWhBfhQ@mail.gmail.com/ > [2]: https://lore.kernel.org/linux-perf-users/ZQC7da2AM9ih8RMz@kernel.org/ > > --- > Changes since v2: > * Drop patches that were already applied (which makes the cover letter > mostly redundant) > * Avoid generating the compiler warning reported here [2] > > Changes since v1: > * s -> haystack > * find -> needle > > James Clark (3): > perf pmu: Move pmu__find_core_pmu() to pmus.c > perf pmus: Simplify perf_pmus__find_core_pmu() > perf pmu: Remove unused function Applied to perf-tools-next, thanks!