Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp745946pxv; Thu, 8 Jul 2021 13:07:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo9vq+j/F6U2ORvf1Ovs4PfLMtJNNasKZdOdD9X/DAbsSEcVERUj3M6APF5/WemvDEI/sA X-Received: by 2002:a05:6402:b79:: with SMTP id cb25mr40490227edb.164.1625774875189; Thu, 08 Jul 2021 13:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625774875; cv=none; d=google.com; s=arc-20160816; b=rE7JVblnNp+owQW9jEW+g4ATSB88+TLcmncMFj3dhV42b45zKVdioAlG05aK5TDkBQ 0k+WdbJa1p1w2J3CWUcBxZ7YYi+nfnAA0pDrBszk6vpVIYwsbvx8DgfMzHJvRGyDugOi hcWgmTQoppGfUsb6JgSjovT8MHhwDJ3+FaNS1xVaH027y6m38s3xbT8wu191zxyZjdBD 7E/CTBB9Ag/bYM4I8qQYo/6zlL0ZfC/Fvmf1+W5CYbnmcyxThhCTXOiaCUBdVx23ScMr p41ICbcwH+xWK4BTjRd7YuWER5xwAn43ELSCFjj4+vPM7U+vfXaoIJ27yMhwFT/rHRYN ePxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=1y2hB+EE98FnY9XhZpp8Zwk7bL/J0GsNSNir79gd84A=; b=TE8ypf6ET3Ncr6b9SmeLpCe/Sci7dR+gDM6V13yZkpRx8/Y0Qy8AulkXjdFawlx2zE DIkPpcOCZnNf+PQGPeVu2hY4Sb10W13uUE7d0OrpGuAc5DgbMXsVJ40IaBquxS7NMlpM f/uQlJ5U6QkPTVcqS3+ugx1rIfKaLmsyCxwhhRg6jn28Gp6w5DEmDDp+N0a6F4F2s062 BobwsJ3oe9ED9M+fqncz3r05+MX4EDm7txiGWwVhRaSr50DefidETsL4aCLoFIo/bpt2 Z/Gbow1lgGkn3cNR7ndtyXarvcxwy/UV3funy11EVZ1NRT5Ff4oCITtSCVX2agzHLhrV FKkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bx/4KKQT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si815372edq.10.2021.07.08.13.07.31; Thu, 08 Jul 2021 13:07:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bx/4KKQT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbhGHUIB (ORCPT + 99 others); Thu, 8 Jul 2021 16:08:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:59462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbhGHUIA (ORCPT ); Thu, 8 Jul 2021 16:08:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DBED61419; Thu, 8 Jul 2021 20:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625774718; bh=vr9wCtU5CSOmF8rHrWBOnnQ8DxpD4EGpO0RJkacQjy8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=bx/4KKQT8j/V62W2q3mFLMXJxOExdEsVIpA32t4JvnKHamq5d2zWawQdtRMUlyBKj oUiKX99YysoL8QJeB18PKmcEdr30K1cehWdReKjH54MtbVGjeV3299Pp9OKCxhEymK 9i6kMW1nN2xBx2o1Rk+pFr1PXjnAon7wE411MIRdSSg/atvpvwWyB0yIhkqPoreL/1 /wJ9Rj9hBQw4rq+et0KthzXAQjWqVJRpH2wlkGENMjp0GSa67BGFQOn1TCeA3AbNST Js4uFcg8xO09qMdR3sHQUNWLEBHPIlVVq2sMcxLgGmqKwhVAdTCe4H5PafMSCyKbgp vvtp05YDXt8bw== Message-ID: Subject: Re: [PATCH 2/2 v3] tracing/histogram: Update the documentation for the buckets modifier From: Tom Zanussi To: Steven Rostedt , linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Masami Hiramatsu , Namhyung Kim , Daniel Bristot de Oliveira Date: Thu, 08 Jul 2021 15:05:16 -0500 In-Reply-To: <20210707213922.167218794@goodmis.org> References: <20210707213623.250212325@goodmis.org> <20210707213922.167218794@goodmis.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, On Wed, 2021-07-07 at 17:36 -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Update both the tracefs README file as well as the histogram.rst to > include an explanation of what the buckets modifier is and how to use > it. > Include an example with the wakeup_latency example for both log2 and > the > buckets modifiers as there was no existing log2 example. > > Signed-off-by: Steven Rostedt (VMware) > --- > Documentation/trace/histogram.rst | 92 > +++++++++++++++++++++++++++++-- > kernel/trace/trace.c | 1 + > 2 files changed, 87 insertions(+), 6 deletions(-) > > diff --git a/Documentation/trace/histogram.rst > b/Documentation/trace/histogram.rst > index b71e09f745c3..11094ec6e52e 100644 > --- a/Documentation/trace/histogram.rst > +++ b/Documentation/trace/histogram.rst > @@ -77,6 +77,7 @@ Documentation written by Tom Zanussi > .syscall display a syscall id as a system call name > .execname display a common_pid as a program name > .log2 display log2 value rather than raw number > + .buckets=size display grouping of values rather than raw > number > .usecs display a common_timestamp in microseconds > =========== ========================================== > > @@ -228,7 +229,7 @@ Extended error information > that lists the total number of bytes requested for each function > in > the kernel that made one or more calls to kmalloc:: > > - # echo 'hist:key=call_site:val=bytes_req' > \ > + # echo 'hist:key=call_site:val=bytes_req.buckets=32' > \ > /sys/kernel/debug/tracing/events/kmem/kmalloc/trigger This just seems random, not sure why you changed it, and it doesn't make sense on a val anyway.. The rest looks good, though, thanks for doing this! Reviewed-by: Tom Zanussi