Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1615473rwb; Sat, 3 Sep 2022 21:23:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WaK9kqCS5OKb8wY24QzkODMAIN3jDTP5DQLgBY03kurzqOnrCff1MLMYynmC3orRgRUyZ X-Received: by 2002:a17:907:6288:b0:72f:90ba:f0b2 with SMTP id nd8-20020a170907628800b0072f90baf0b2mr30750718ejc.696.1662265387962; Sat, 03 Sep 2022 21:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662265387; cv=none; d=google.com; s=arc-20160816; b=WyWNydSXShZW5l6L7h/+JG/R9rKTM2p+Rxq7OLknO2FvdhBiOH2EO0CCdLUiVxXciR rRgq4XwS3bmpu3n85BMhGt7FyC8SypzSQDFYpzEjGiUdeuh1OdRw7C6FTiuQ+jAA1odZ 7tjVWHVjqBKxqF5/Td19lg/79Gtcd9+WyC8sTGmegqA0BzA0Q4Xfgw1gkJiuGHA4qY8b 7V+x0xqRCqIaHuU4KDovHolkLHlKqz4PXXhfMlDbrSRRQT9PJF+/uqdMj6SGiys9Mpid UcYsq3BXB0WyYPbmjsWSkltCc7yJZS8sgxIcgx0frtwEJglMRASrRPI2JQT2uwZ/52SH VBmg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8iGPdAvdSsySSYKcb13Xu9gPiEjRjsBg5wt8vxfQp1s=; b=R2yW5LE75uqRBqb/rDj9eTtEpSGA9zGnMkwosy0vp3HrlEanLrXvR/GWF75Xl38CbS wlizfx8BwAlzTk7V8DY0lAp4VZBm9K+IBLi3uAruio5yJVR51jTyZwUmwI9uxT07bd2D R4DkE3GT+ELLk4/vGgeGdvslz7M9FlQlAXQwjfEta6c/ej5xjyv6KpN9EUsj78XyZfKB FQYOQz4/19/53DdNHuOg5nr15R/Ud/Q+jaQNIuoxGdTpiGYE+x7U7y5IbRtVJ2p5CzMb ROF1tljo9xHTHqLIWT1VLpzesTeTDGJemLC1cKRdkvp4UAf98IV3Ss3nsqZBR2IkZcfV Mz2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rwn15yEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb5-20020a170907960500b0073d6a7e6662si5389973ejc.798.2022.09.03.21.22.43; Sat, 03 Sep 2022 21:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rwn15yEt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232500AbiIDEN1 (ORCPT + 99 others); Sun, 4 Sep 2022 00:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiIDENM (ORCPT ); Sun, 4 Sep 2022 00:13:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9423B4B0F0 for ; Sat, 3 Sep 2022 21:13:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2B41160EB6 for ; Sun, 4 Sep 2022 04:13:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72AD1C433C1; Sun, 4 Sep 2022 04:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662264790; bh=ni3Yz/4/kEi9dOdY50RYTd5QBFLAF1RixEvI/QkYAGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rwn15yEtyP36eV5ett75rLcqrTsAFJUo5xT4fCFANXauF0Ayx+jhS0jx+Cf+GjxlP yyzSyujB5HTSwj1n0m7I7yThkABul5jpuayfXP2Pz7TEYZIbGXv8vhX6mnYP6G+vST CFmwWRTWhGb8bDYoy8b/zyAAk5hGpyl/pXldPbq1mRVLxuuaoa8hk2CQvTfM9U7m6X fKYyftT+iiUcVDHk+4xrhrXk9f+rYVYZcS+A7i/M5Mf1X9WcVeFlVhdTABQdNf1OOh xiRBM6MW/jy4gSFq9CSZyj4xEFYl8iD7VRpgwTbxGknQkVu1WbBIJSgTEQsExMjhLO Bo0+da9Hcy4pg== From: "Masami Hiramatsu (Google)" To: Steven Rostedt Cc: Tom Zanussi , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH v5 6/6] tracing: docs: Update histogram doc for .percent/.graph and 'nohitcount' Date: Sun, 4 Sep 2022 13:13:07 +0900 Message-Id: <166226478684.223837.9677310927556736590.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <166226473132.223837.9011128463174539022.stgit@devnote2> References: <166226473132.223837.9011128463174539022.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masami Hiramatsu (Google) Update histogram document for .percent/.graph suffixes and 'nohitcount' option. Signed-off-by: Masami Hiramatsu (Google) --- Documentation/trace/histogram.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/trace/histogram.rst b/Documentation/trace/histogram.rst index 859fd1b76c63..b2da4e9c62e8 100644 --- a/Documentation/trace/histogram.rst +++ b/Documentation/trace/histogram.rst @@ -25,7 +25,7 @@ Documentation written by Tom Zanussi hist:keys=[:values=] [:sort=][:size=#entries][:pause][:continue] - [:clear][:name=histname1][:.] [if ] + [:clear][:name=histname1][:nohitcount][:.] [if ] When a matching event is hit, an entry is added to a hash table using the key(s) and value(s) named. Keys and values correspond to @@ -79,6 +79,8 @@ Documentation written by Tom Zanussi .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 + .percent display a number of percentage value + .graph display a bar-graph of a value ============= ================================================= Note that in general the semantics of a given field aren't @@ -137,6 +139,12 @@ Documentation written by Tom Zanussi existing trigger, rather than via the '>' operator, which will cause the trigger to be removed through truncation. + The 'nohitcount' (or NOHC) parameter will suppress display of + raw hitcount in the histogram. This option requires at least one + value field which is not a 'raw hitcount'. For example, + 'hist:...:vals=hitcount:nohitcount' is rejected, but + 'hist:...:vals=hitcount.percent:nohitcount' is OK. + - enable_hist/disable_hist The enable_hist and disable_hist triggers can be used to have one