Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7523745rwl; Tue, 10 Jan 2023 01:48:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXuuf9wDYonxWaEaIxVmrY8T2N5cMkpAMlSRiynHQFQ8NkbbtWw4f8xVsJD7WftgNt/Tr7+H X-Received: by 2002:a05:6a21:3d13:b0:ae:7f1d:1912 with SMTP id bi19-20020a056a213d1300b000ae7f1d1912mr95316227pzc.38.1673344080232; Tue, 10 Jan 2023 01:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673344080; cv=none; d=google.com; s=arc-20160816; b=dpYE938yzU3mBbrkr9uS9rwpChIC02l32kpn5bEMTBjAecpSbcnqn8HiPz1v1kzYfr IC7kDqoONGFdCK0qsQUgNZbQe+Qm5zKUr/B1bYDbMGoZ4u/pb099DwC0+7UuSLGSADr0 AXB1MQBR4QivRi+DiZHq4k7ZTZTw0Fglk/uuFGpKOpCZ4vcUMKBZCkRJlnapIp2w1Jj1 IyvZYgSp9bM7mJYtGIWU/8Nt83m4g3UF1l8Ee/qYzlnKIJItF3+ChLkvcKggo88EGpF0 73bfljifMimgbH2MPpVMEK1aIiAToQBBvxkMcXLVCL6SvHgPO9GG22kecNN01Zv9rr4y DzwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=hsVaygeA89M8Td+iuqvHPNhsjN3PKnfbl2wOIvBVp7M=; b=zfqZ4qnZzEZhIPW8hn0cv65MxzD7GQ+X8vS0p/JB38ZGN9jkQcGwBqjoC8S7ToR3wc cD1S5oMk4PGJdIyA4O4hm1U1WsoOiNfUaQdK/0ex9S4f8p3jx/HhNnr2P9B74emBDPsx yfnxtESzAEFDi7If4dka5f0eMIJWI2nIPAWhXVRYkRVItNkVAqrdXdBQrvsR1m4aEOXG I9xnf8uZwvWHG1VeKMOKJfck/mhgM//IdftLQ39WDafRK6Jmekv27u2ZBSw73SPhiFeL SQpPrnjPdxIxuBBQtamobAmJq90TIhHS/8rdaRkVN7hvHJBqzwIgGTB7nAN5FraiIK+5 UveQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a63f545000000b004772b3c1dedsi11264963pgk.262.2023.01.10.01.47.53; Tue, 10 Jan 2023 01:48:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238213AbjAJJeB (ORCPT + 53 others); Tue, 10 Jan 2023 04:34:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238114AbjAJJdm (ORCPT ); Tue, 10 Jan 2023 04:33:42 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7359514094; Tue, 10 Jan 2023 01:33:41 -0800 (PST) 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 3443E2F4; Tue, 10 Jan 2023 01:34:23 -0800 (PST) Received: from [10.57.37.155] (unknown [10.57.37.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5C73D3F587; Tue, 10 Jan 2023 01:33:39 -0800 (PST) Message-ID: <12288ed4-b4c4-cd53-ab0e-8b235e0852c0@arm.com> Date: Tue, 10 Jan 2023 09:33:37 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 1/2] perf kmem: Support legacy tracepoints Content-Language: en-US To: Leo Yan , Arnaldo Carvalho de Melo Cc: Ravi Bangoria , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Vlastimil Babka , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230108062400.250690-1-leo.yan@linaro.org> <14dd06c2-39f8-ccb5-ce59-f3a1e45c94d0@arm.com> From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On 10/01/2023 01:45, Leo Yan wrote: > On Mon, Jan 09, 2023 at 12:38:04PM -0300, Arnaldo Carvalho de Melo wrote: > > [...] > >>>> + const char * const slab_legacy_events[] = { >>>> + "-e", "kmem:kmalloc_node", >>>> + "-e", "kmem:kmem_cache_alloc_node", >>>> + }; >>> >>> Reviewed-by: James Clark >>> >>> This fixes the error with mem:kmalloc_node for me. > > Thanks for reviewing and testing! > >>> I was thinking that it might be best to add all events to the list >>> conditionally instead of just the legacy ones. That way, the same error >>> won't happen in the future. But maybe it's best to have an explicit >>> error again in case the breaking change was unintentional so it's fine >>> as it is I think. > > Yeah, this is a good idea for refactoring. > > James, do you mind to send patches for this? Do you not think there is any value in keeping it as showing an error for the next time one is removed? I was assuming that was your intention with this change, and I'm ok with keeping it that way for now. It's probably quite rare anyway so the refactor could be more effort than the gain. James > >> Just applied this, the changes you brains stormed may come as later >> patches, thanks, > > Thanks, Arnaldo. > > Leo