Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4737380ybv; Wed, 26 Feb 2020 02:15:45 -0800 (PST) X-Google-Smtp-Source: APXvYqy3gr4QROtDyCgSyerFY5j82A7B+BGbC2VRHBHPagW62vngu484+ong11t2NMpepeDjrNDN X-Received: by 2002:a9d:4c06:: with SMTP id l6mr2445485otf.161.1582712145226; Wed, 26 Feb 2020 02:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582712145; cv=none; d=google.com; s=arc-20160816; b=hyrh56rBz7lQx6o4Hzhw2wh5CBQ0OCwkN1RaDtLkAFKk3PyDcf1h7f5dR4H/3f+nAW HmMwTqrpv05QjmCQMt9Brhr+xpzMDGmJ4sRiaDmsC6EtnlN9rZHzIwHbFW/Mfgt20EMw PoF2D8K7G3/O8bHuVy8Y82nAxjHiSuwmHdFpysKVIaBMF7GwohxgsNNe2IEnIsK5vKBD 9wwCnrlboSjLQ5vaWXELwQEq3haG0taXnPKoEcuRo/PcbiUqKOj1qdijaT5JXjF7mWHc 3M83QPy4791VLB0Vu1ZnvGMxatsynbtZy40CwZSuedJp24PZje6NU02FEmjHEvevOfAx RN3w== 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=fjgGaQ13TQsr1Z5105zSISsbImvoxTUeMB18halxXAg=; b=SS3bSPaL0HJUAMjH1Res7sN2E4Q5ylj1wS3mQfWcC+DPk8v2zoIHCjSsmZqaGnfIEJ cTwSMJlRkg8ez7CRVyQpc0+PAZW9Tcbrr/An7c1JhvhGDgU9J2xjbNNao3gqloXY+Tbb /Boh5PvE2i68ftlzbEweuJPx9dzb/KPs/7DBBowj12CRvvjYnmXuw9+ETUwlby96YqG+ 4DQyC+PSCh7SmwkhpluO6lyXKpVVUzCjXSkZ0kXbwGv3ZFwr0aXsMNioSIbr58u8y9sx iZ8phfA1O61DvlEe2RQuYK7pjBTlI8/whdfCyDKALbh3BZOTNOqi3sQ+SkJVBpJRSx3H FzKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VbDOsgVi; 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 t7si810267oij.175.2020.02.26.02.15.31; Wed, 26 Feb 2020 02:15:45 -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=VbDOsgVi; 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 S1727802AbgBZKPN (ORCPT + 99 others); Wed, 26 Feb 2020 05:15:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:46136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgBZKPN (ORCPT ); Wed, 26 Feb 2020 05:15:13 -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 5890420838; Wed, 26 Feb 2020 10:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582712112; bh=8G3COdP14D9n92YRf3mFEELtywZgXkiuQFtraYf7e84=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VbDOsgVihqU8SaREq8lEBFaj8iA71rJOb1rxMQyBgLibxWbwW+m/UnSTObrCnYjQn EYwwDLlEfFFLnjrnms13nwfreSn8vYZvxL4VZ7khrG6kp61ijBPCxbje97jbzG6uXU ie2SWrjJtlKBS8c7nLwLXAQhwzNxByYudgSPSx40= Date: Wed, 26 Feb 2020 11:14:49 +0100 From: Greg KH To: Luigi Rizzo Cc: linux-kernel@vger.kernel.org, Masami Hiramatsu , akpm@linux-foundation.org, naveen.n.rao@linux.ibm.com, ardb@kernel.org, Luigi Rizzo , Paolo Abeni , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , Jesper Dangaard Brouer Subject: Re: [PATCH 0/2] quickstats, kernel sample collector Message-ID: <20200226101449.GF127655@kroah.com> References: <20200226023027.218365-1-lrizzo@google.com> <20200226081048.GC22801@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 01:52:25AM -0800, Luigi Rizzo wrote: > On Wed, Feb 26, 2020 at 12:10 AM Greg KH wrote: > > > > On Tue, Feb 25, 2020 at 06:30:25PM -0800, Luigi Rizzo wrote: > > > This patchset introduces a small library to collect per-cpu samples and > > > accumulate distributions to be exported through debugfs. > > > > Shouldn't this be part of the tracing infrastructure instead of being > > "stand-alone"? > > That's an option. My reasoning for making it standalone was that > there are no dependencies in the (trivial) collection/aggregation part, > so that code might conveniently replace/extend existing snippets of > code that collect distributions in ad-hoc and perhaps suboptimal ways. But that's what perf and tracing already does today, right? You need to integrate into the existing subsystems of the kernel and not duplicate things, creating new user/kernel apis whenever possible. thanks, greg k-h