From nobody Mon Apr 6 20:06:54 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17F13ECAAD5 for ; Sun, 4 Sep 2022 04:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232659AbiIDEN3 (ORCPT ); Sun, 4 Sep 2022 00:13:29 -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: quoted-printable 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/histog= ram.rst index 859fd1b76c63..b2da4e9c62e8 100644 --- a/Documentation/trace/histogram.rst +++ b/Documentation/trace/histogram.rst @@ -25,7 +25,7 @@ Documentation written by Tom Zanussi =20 hist:keys=3D[:values=3D] [:sort=3D][:size=3D#entries][:pause][:conti= nue] - [:clear][:name=3Dhistname1][:.] [if ] + [:clear][:name=3Dhistname1][:nohitcount][:.] [i= f ] =20 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=3Dsize 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 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. =20 + 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=3Dhitcount:nohitcount' is rejected, but + 'hist:...:vals=3Dhitcount.percent:nohitcount' is OK. + - enable_hist/disable_hist =20 The enable_hist and disable_hist triggers can be used to have one