Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp679408ybl; Wed, 11 Dec 2019 05:57:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwFJ9y4vIUt07iLsM3gmvJwpR+to5/0Tq9vrmz2enKblf/JT3pWjpyxThvZjg8E3bRLbs+U X-Received: by 2002:a9d:578a:: with SMTP id q10mr2261044oth.215.1576072658729; Wed, 11 Dec 2019 05:57:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576072658; cv=none; d=google.com; s=arc-20160816; b=iBnAY6h3SuT9nacD9zrHK/MFbRjJmjjYroGPTVqlNxt6R/IPOjCplqB1sFYzzePtDX eE3QD3cLVFt/nvJLfQKDhcnlYHQ/nX/BXtWVbbZO6r/XeotOR5gmyD9iW9/xtqNUGCUq eOQDfvvVlAEItaSW2BLZLRQLDAwlueJZ7vsM6o1MTGyHv0/Efx5FepJalmDroQYb0wDO NS8mOFgX8D4frw3H/Qpfo4oJQhqaN5elUm9lnTi33ps+FTOkmOvzJHKoeZWbHaW4kpR+ bGzqVzXh9uneaIIGEa56pcaiMwooAXayEzTarm9tnK3MS9qEl1jAnDMFmhzMHl4TTAc+ BnPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ejqYy43es3GaPGFxu5hvDRo9QSLczTj61zHYgCGxVLo=; b=hZ4wh+ZvtcOZtHVl5/WJYzV7m01BxRuubacAPKRhwAPXKKmfqKXAYtfu9PCd8MIp5M 75iwnVMHaN1SAoC5FDim91kCxGD6TgKeLhpWrqyrKb0HEg9NMEUmGLuNs7xDUaulDSTf 3CMk3oxQAkC7cZ9kBQmpcFyxYd3gqZs9PcFSBC/SiQVBMA6JhcbWjSoqziQY0cZGy3ET 22Ozddovjcg9TcPyeN+krjScbcpY0bZ/UnjUssUDqQ+nvnp5+uHKfX5Bi7rRoghUc8CT 50PoHHvnS5YKO8d5R5x8cG0YID3znj+kAGRXZsyow6KyR3iNaVp2rijVrE/DTq1zp6Uo DYPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=enaEjm3q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si1156253oig.184.2019.12.11.05.57.26; Wed, 11 Dec 2019 05:57:38 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=enaEjm3q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729702AbfLKN43 (ORCPT + 99 others); Wed, 11 Dec 2019 08:56:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:46808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729278AbfLKN42 (ORCPT ); Wed, 11 Dec 2019 08:56:28 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC557214D8; Wed, 11 Dec 2019 13:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576072588; bh=dWkqILqfAhjEvyhCKPXISYgfOfSC3OtngOei9pUlZ5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=enaEjm3qhz+GbI1C7GZdbjUVp+Li+O9XxQqiaGueU8xTWyFJi3xOAs08wqOcxr99A TjmdjHoIohXmbLhvAqKCb708/vwcxCf5WQ+UYx2BMRwMzocjhZQpyBHCi1+hTg2dJV 4lSTU4jvrB9a4wmcTqpHvJGg5DZ7YKEwkIIzpHRU= Date: Wed, 11 Dec 2019 14:56:19 +0100 From: Greg KH To: Thomas Renninger Cc: Thomas Gleixner , Felix Schnizlein , linux-kernel@vger.kernel.org, Felix Schnizlein , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, will.deacon@arm.com, x86@kernel.org Subject: Re: [PATCH 2/3] x86 cpuinfo: implement sysfs nodes for x86 Message-ID: <20191211135619.GA538980@kroah.com> References: <20191206162421.15050-1-trenn@suse.de> <20191206163656.GC86904@kroah.com> <87sglroqix.fsf@nanos.tec.linutronix.de> <4737004.4U1sY2OxSp@skinner.arch.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4737004.4U1sY2OxSp@skinner.arch.suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 11:42:35AM +0100, Thomas Renninger wrote: > If Greg (and others) are ok, I would add "page size exceeding" handling. > Hm, quick searching for an example I realize that debugfs can exceed page > size. Is it that hard to expose a sysfs file larger than page size? No, there is a simple way to do it, but I'm not going to show you how as it is NOT how to use sysfs at all :) Why are you wanting to dump this whole mess into one file and then parse it, it's no different from having 100+ different sysfs files and then doing a readdir(3) on the thing, right? greg k-h