Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp68681ybf; Wed, 26 Feb 2020 08:59:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyfwcJiGDI5SKR+krhOqB4ACSnUQc+Q5YiHC5CndNQwkriTOBFWSmyaDwuFInpSPLkpPwnH X-Received: by 2002:a9d:32f:: with SMTP id 44mr3782833otv.234.1582736361065; Wed, 26 Feb 2020 08:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582736361; cv=none; d=google.com; s=arc-20160816; b=LUG4mdNkJNRYJ3C+is4190H6Ry/C4ibhV4HZ1Z8j436ejbw2EwW1d6/QkvkutzlqV3 0t3+5ey+gJWgRbiJ6rwcPZRabioFTyqnGCfQ8UbaRgSEFbSTF/LNefMp5Qkx6k8HMZvH Fz+8BH62IFucdYQXsIp/VSpaC/zcH07cnALjn+BKU+/i2Ag22FLxXR/093LVo3kSaFiQ +UOA3WwRnIdvu1uKhzfVKOYtlS75FpKY63rnzt6DUoPhdn6KAW0BthE21MuBpL0vbaF2 9wI27PrRU8f5fTQ2MDDQLIJXDEpn0ethi5oEusS7K0ZX6P74CoLU0y6bEO5yOwgFI2Ei Mtxw== 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=r2JZgkSNtmconAEYsNUMIbFDOcpi3Rw1MwJ3nMCNlgI=; b=rKtipJRXAlXsTL0f3aJm9fPrL/5jnObInWChBBVh7VRFbIkVYAOBUH2efZaiSms+To HABOQX76w1TjTvR/5ur7fOG2DhYcZGxANG9PO/MQASbU3oQhc1GrqTEB+oQe0Athdsc+ kFlOm5nnTVMhRDbYp8wWkovUCYZJ5hYgtjXME1EoAS/Q96hnQe9lfBY0BVy8Uh3eQzCf fiRkWi/d4M0QcgR+I4zJ1/qOH45Xlb1Fqe8ePr6z/DqlNkrZMj9GQFpI3e9hq2uQJQOs WlQF+6MWlbADpqvRJAmD9ewjX96nuBhFKttfmxatzPD5uLdmADEppiTgHBoVaB3vpM4o VaNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VJJ+gOOZ; 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 z18si57803otq.121.2020.02.26.08.59.07; Wed, 26 Feb 2020 08:59:21 -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=VJJ+gOOZ; 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 S1727860AbgBZQ57 (ORCPT + 99 others); Wed, 26 Feb 2020 11:57:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:36188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727711AbgBZQ56 (ORCPT ); Wed, 26 Feb 2020 11:57:58 -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 4592121556; Wed, 26 Feb 2020 16:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582736277; bh=RgNtVFk4nBO7kFebX+/FhhfnOXJq8OE999CqQl781Ao=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VJJ+gOOZqXTdYl/Euf++WHSlBa7yvrHoURpyOny4vvvNxaMnMaB+l32GIEMc9ezZC JxzkSOroRr3xv5rZ2UJV9bKj8b/IFdT+JQfz3lQA8B4Sa1/7jVVWpwy211NllWO27g 5+UlQFmnLoBOPpSdNjVN4oUobb2Zxma6Kjim/cW8= Date: Wed, 26 Feb 2020 17:57:54 +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: <20200226165754.GC261747@kroah.com> References: <20200226023027.218365-1-lrizzo@google.com> <20200226081048.GC22801@kroah.com> <20200226101449.GF127655@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 03:40:27AM -0800, Luigi Rizzo wrote: > On Wed, Feb 26, 2020 at 2:15 AM Greg KH wrote: > > > > 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? > > Maybe I am mistaken but I believe there are substantial performance and use case > differences between kstats and existing perf/tracing code, as described below. Then put that in the changelog text and get the perf and tracing developers to agree with you on it and sign off on the patches. Don't try to create yet-another-tracing interface without getting their approval please. That's not how to do things. thanks, greg k-h