From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f65.google.com ([209.85.208.65]:43759 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbfAGXtG (ORCPT ); Mon, 7 Jan 2019 18:49:06 -0500 Date: Tue, 8 Jan 2019 02:49:01 +0300 From: Alexey Dobriyan To: Daniel Colascione Cc: Dave Chinner , Waiman Long , Andrew Morton , Luis Chamberlain , Kees Cook , Jonathan Corbet , linux-kernel , "open list:DOCUMENTATION" , Linux FS Devel , Davidlohr Bueso , Miklos Szeredi , Randy Dunlap Subject: Re: [PATCH 0/2] /proc/stat: Reduce irqs counting performance overhead Message-ID: <20190107234901.GA27074@avx2> References: <1546873978-27797-1-git-send-email-longman@redhat.com> <20190107223214.GZ6311@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jan 07, 2019 at 05:41:28PM -0500, Daniel Colascione wrote: > There should be a general-purpose way for /proc file readers to tell > the kernel which bits of information interest them on a particular read > syscall sequence or particular open(2) or something. This opens a pandora box full of ioctls. /proc supports ioctls on files which aren't /proc/$PID and /proc/sys/* though. So people made a mess with allegedly easy text files and now they continue to make even more mess adding ioctls on top.