Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3485463ybi; Mon, 27 May 2019 00:32:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfcZLNECCR1PZYi+/nLtJn8twgKxDryrEv1Tj1h4QrqeMbJfP+NVMOOkP5mbYrh7ik3iru X-Received: by 2002:a63:144e:: with SMTP id 14mr106694371pgu.304.1558942372610; Mon, 27 May 2019 00:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558942372; cv=none; d=google.com; s=arc-20160816; b=TzvLTOpzI8uUe7pwefaqVRFcjL4YWKXSnxWjK/iDTdWlK+sZ+c5NRj4/Z6v8W/kucx 5p4x1wfIFcN+tWQ6zz/1FqEWFMZLk4qzG6KyKaiybLvcT1dNlGgWbGu0Dsg3P58nZ2YI fP5tedjZH6+WBXZa+zX+bXTeZCddW+0CXtVuR3coF+hp0JOPpV7wuW1+ds5OSjwLfq0w YLuLsitNZa+h3Wiq8GQDOwJhMrAKNqd0Z9N+5S/YO3qR9wYhOt9BMXeJHge9m6v9zq7y L5mpERQZZ6e1cziRAQrvj+kiRBnHjCrvDDm2aYf2HcEzW5JiwzlPaxcxF6Soh4evy5yM BRjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=LaeBiHuwwmCAEKN3q/IPzn80UBzxeqWoq41rcvNhXZo=; b=APnskNjA3QdjvV9qiLPb0dYfSO+CKF8fZeSRneI8FsSVUocn/cCjHMlRb+17jMNOfA TLFtNjcv14tkIAw+X5u+WfQ1vAtr0ZLWxWooinXQxHgfj1D6BFnGXDRPrPo5Ou2lNo4e RJeH+JuktvI531ybCDf3Lc3IHHzI6PL0JP9kwj62KaiyH/EwFwyEGLS9xSe0VQmu8tKA YXAg9X/NJsOX/C3W83QkLtyymRlXnWemo9HCEpj7Ayw/kJpfnb+sXxSuCz3cSRCZiUKY O4c3GqsoH0AZTPbnqo0xsteQpC8n5qDhT78E94gDaV5TCu7KDEkWjxunTFie+R7ajby/ NwDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx8si16056194pjb.79.2019.05.27.00.32.36; Mon, 27 May 2019 00:32:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbfE0HQP (ORCPT + 99 others); Mon, 27 May 2019 03:16:15 -0400 Received: from mga09.intel.com ([134.134.136.24]:16335 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbfE0HQP (ORCPT ); Mon, 27 May 2019 03:16:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 00:16:13 -0700 X-ExtLoop1: 1 Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by fmsmga001.fm.intel.com with ESMTP; 27 May 2019 00:16:11 -0700 Subject: Re: [PATCH v18 1/3] proc: add /proc//arch_status To: Andrew Morton Cc: tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, hpa@zytor.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, dave.hansen@intel.com, arjan@linux.intel.com, adobriyan@gmail.com, aubrey.li@intel.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Lutomirski References: <20190425143219.102258-1-aubrey.li@linux.intel.com> <20190523201822.cc554d68ec567164bec781e1@linux-foundation.org> From: "Li, Aubrey" Message-ID: Date: Mon, 27 May 2019 15:16:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20190523201822.cc554d68ec567164bec781e1@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/24 11:18, Andrew Morton wrote: > On Thu, 25 Apr 2019 22:32:17 +0800 Aubrey Li wrote: > >> The architecture specific information of the running processes >> could be useful to the userland. Add /proc//arch_status >> interface support to examine process architecture specific >> information externally. > > I'll give this an > > Acked-by: Andrew Morton Thanks! > > from a procfs POV and shall let the x86 maintainers worry about it. > > I must say I'm a bit surprised that we don't already provide some form > of per-process CPU-specific info anywhere in procfs. Something to > piggy-back this onto. But I can't find such a thing. > > I assume we've already discussed why this is a new procfs file rather > than merely a new line in /proc//status. If so, please add the > reasoning to the changelog. If not, please discuss now ;) > Andy and Thomas may want to give more comments. The discussion was that we don't want /proc/PID/status to be different on different architectures. It would be better to separate the arch staff into its own file /proc/PID/ arch_status and make sure that everything in it is namespaced. Thanks, -Aubrey