Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5068651pxb; Mon, 28 Mar 2022 07:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy41ixqArwV8Jha+NNnNt1RIwK/pIZ8jXxovsvxNlziCPm+NpqPxxy5ijI7ZpD9ee1LJGX+ X-Received: by 2002:a05:6402:40c5:b0:418:e73c:a1ab with SMTP id z5-20020a05640240c500b00418e73ca1abmr16716269edb.52.1648477881077; Mon, 28 Mar 2022 07:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648477881; cv=none; d=google.com; s=arc-20160816; b=vqPjdVr4eRIWM2dlgVCgnxx+Ny/PnyYo60bpU/5WX/BmrMWfRa7AWv9x2qzHH+Sq4k d34ehwoN74gNsJSUjNPs5qlfmyRSc5WHRScNvsRiTfYxAWy6z3ADmbEcmSOTLHL5D7xE b0LFRj/Q6sWBdQHCrki55gWR9aI9pomb/yQGNPYQQk6YmXxkvd+3FrPG+wbuuE/f0gqG i8mUQTRb/fCTuCQIbIHNAiB5bZt9EixxR6/6h5ydHSLzm6Vj9Y4ADVHz4E5vWk4sCB8s GTnyx3Oie3IHSLWTEG/6UG5VNulKbS5hQLVpN2wVWa1QvGOAenoxHP15Mc5R7erDN7lG jJXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Lf3j/iRG/esIjnJN7hgl0CTJgV2rHtUJ5goRSH2ROBM=; b=a/welY8rOg85pkdKMrNgIqRxsWzrLO/9o05n+XUVsQaO97LPf4DYE5VGUmSfSTDGr6 5pNjzjOtQV/RuhhJ8mtNCCpRAxV5v4mMpkFE8KfYSvAgBeEAbHkO6rhs462usavUUypE WYQywPmgIzerYz8ypeor1ms66IpXOeFV8XRlEy7tYu5IGIKjU4rcK8OSejOLmlo/pgtO blfKojxuSNpy1qi8WzFQY5QsIKdtoCid0BPnXraN+H/3hkfjhGkDO/phUaFncibDOWmq ydvuFBRyGQGclOhM2uX+D8fnc8IcqNWkchjci1U+BseoyDlbiRogjuF+YjEZrY2AksE2 p2HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AG7brs63; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a50ef12000000b00418c2b5beabsi13135130eds.397.2022.03.28.07.30.44; Mon, 28 Mar 2022 07:31:21 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AG7brs63; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240222AbiC1K1d (ORCPT + 99 others); Mon, 28 Mar 2022 06:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234664AbiC1K1c (ORCPT ); Mon, 28 Mar 2022 06:27:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A940F369D9; Mon, 28 Mar 2022 03:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Lf3j/iRG/esIjnJN7hgl0CTJgV2rHtUJ5goRSH2ROBM=; b=AG7brs63P76eLr0qRcQFEuUfjA pl6byXYPpSfILFFBPlkavssv233PFl/ZsZYr20eM+lLGhrMJcm2U+7gA83FEdvdKEDjJkUFo8QLNJ TMwheso7I7nOp0NuEVI903hjeirUjAC8MwGIO1e6YxhmpydAQVxBDSSApS2cGc+XCS1TPXwRaZ2Hy xepAGGRqg/MqqCfTL4MbuLpmRFnFw99IAOaewkzh4G4gjSnyMknHQ0F9vocWaH2jie0g9oHulGCo8 eRGn5udwwaQBmi2xDbMzHZcVNgVxqlwFy6zny02qiBO471Gl7GBolBEzT1BXC8BLsHXrL6+d1iBx3 u8M3/xvw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYmZ4-00GouA-VZ; Mon, 28 Mar 2022 10:25:35 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 7FAAC9861F5; Mon, 28 Mar 2022 12:25:34 +0200 (CEST) Date: Mon, 28 Mar 2022 12:25:34 +0200 From: Peter Zijlstra To: Yang Jihong Cc: mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf/x86: Unify format of events sysfs show Message-ID: <20220328102534.GX8939@worktop.programming.kicks-ass.net> References: <20220324031957.135595-1-yangjihong1@huawei.com> <20220324101107.GC8939@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Fri, Mar 25, 2022 at 09:38:47AM +0800, Yang Jihong wrote: > Hi Peter, > > On 2022/3/24 18:11, Peter Zijlstra wrote: > > On Thu, Mar 24, 2022 at 11:19:57AM +0800, Yang Jihong wrote: > > > Sysfs show formats of files in /sys/devices/cpu/events/ are not unified, > > > some end with "\n", and some do not. Modify sysfs show format of events > > > defined by EVENT_ATTR_STR to end with "\n". > > > > Did you test all the userspace that consumes these fields to make sure > > none of them break? I suppose it's mostly perf tool, but I'm fairly sure > > there's others out there as well. > > > Yes, I tested "perf record" and "perf stat" commands on my machine against > the modified events, and the results are as follows: Fair enough, I'll queue it for after -rc1.