Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2372428imn; Mon, 1 Aug 2022 23:37:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4jZoGAsVYjzcvAXFue9790sZJ5xto+SMLQPMO5ZhE27DuxZf8/Rf6d+0XUzV08tClpoZ+8 X-Received: by 2002:a17:90b:78d:b0:1ef:c46f:19a7 with SMTP id l13-20020a17090b078d00b001efc46f19a7mr22791649pjz.216.1659422228632; Mon, 01 Aug 2022 23:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659422228; cv=none; d=google.com; s=arc-20160816; b=du/6DjAupgO0gKU9OIJlhd6B4lWApaz1VLFDPGSjmMxQ2+T4iVWsHMSAtkYGorM/zL e8BYm6FD9axbOORzXJzC2MwUXIdvIUyCzk+RX7SU8LDYKuIAhnultnz6ZWaGSw789kJa xU4A2CzqDKGCP4Wg+urOXL94E2zgvhZ6CCBm91ADZ3TP0jC/QzC5Mtr40d0j/ykNLK2s vVQhRnnI8jB5LYZniDcEOeEKczPBi2nUicMZyqEMPXAjio6FkzUM1ptAlTS2JLC8xWFZ iPFbmx7UtRok3zuD7xe+bWI1eq0EoQsx3VfAF7sA7+UaN8YpRXNIuii9f637x4KndrlU P4cQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=TviP4qmGJqO4Donbrsnhvvygtn8TIGRqWfhBQWL9UFE=; b=blv1uMlg3O3M1eGZvK/epPBC6XAs6PLfvoVLgvdG/uEfPiqvplpmpPSQtz743FWD31 8hFX+43w8Po+XiqJ7sMq5XORUL7CG6wGpI0gbVDqGT9hnLbZIl4yyQbgBZe8fTcCNiYN kgTWlBYCy8YKG7imhcjBEM/JP32x+0m794DesCm4YXz/CMT7wFVSGTNeTZ9WZB++Q69M XpaXsT35RTLxtw/JYjJXgt7i7noyYwbl8wI3aq7IaNQawJs+yQdXkWY2Bk2nkRqeb1ue C2ujB+bP/IXdUgSnn1ps2krrS9YOau8hdsznGeG+aZAK/sZqJrtXTaPGylHMZTdq9Jne A2Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VYkk0rIw; 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 b13-20020a056a000a8d00b00528c2953d22si10689351pfl.157.2022.08.01.23.36.53; Mon, 01 Aug 2022 23:37:08 -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=VYkk0rIw; 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 S235794AbiHBFlh (ORCPT + 99 others); Tue, 2 Aug 2022 01:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbiHBFlg (ORCPT ); Tue, 2 Aug 2022 01:41:36 -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 DEED541D0F for ; Mon, 1 Aug 2022 22:41:35 -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 6FD4E61268 for ; Tue, 2 Aug 2022 05:41:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 970CCC433C1; Tue, 2 Aug 2022 05:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659418894; bh=XiNVPCCjZTk5RLrsO9cH4qo3IAgxOvd2KtAeNjJF290=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VYkk0rIwcA8d96qC8zLVkkea8moJw92aGxY3Ym09OCBDtzik1CfZLt4l/gtVtH9TV OSfqBNS2GfiRSDIghgxOuDrZfBI4O6RDFkrzSTgCSwlvwT2HsijMUSgqFF7MSoTV93 rJ/mhyzGBlpHGbnNNWk2hRsZpfoo6mEB+RXZ6Vl17AxbB3tAzhhzk+Zs1yiGPXn5Id BR3MHWwAMet+lDNs9cRNIovzaR3OaMPyIcdOu9DSdOKfxvaZGWgxM9OZWwwhKmdPl2 j82gi5LEizIKJKCh9yZIdpYw62jqpQaq9rZLX7KXGb3x1MwpQL/d+IyQem+G+qL23v Y1eiZgH/uSdkQ== Date: Tue, 2 Aug 2022 14:41:30 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: Tom Zanussi , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] tracing/hist: Add percentage histogram suffixes Message-Id: <20220802144130.52a75346b03fcb7c92f29db6@kernel.org> In-Reply-To: <20220801165840.2fe7e5b0@gandalf.local.home> References: <165932284025.2881436.6085809619146158354.stgit@devnote2> <20220801165840.2fe7e5b0@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 On Mon, 1 Aug 2022 16:58:40 -0400 Steven Rostedt wrote: > On Mon, 1 Aug 2022 12:00:40 +0900 > "Masami Hiramatsu (Google)" wrote: > > > Here are a couple of patches to add .percent and .graph histogram > > value suffixes to show the value in percentage and in bar-graph. > > > > This will help us to check the trend of the histogram instantly > > without the post processing tool. > > > > Here shows the example of the percentage and the bar graph of > > the runtime of the running tasks. > > > > /sys/kernel/tracing # echo hist:keys=pid:vals=runtime.percent,runtime.graph:sort > > =pid >> events/sched/sched_stat_runtime/trigger > > /sys/kernel/tracing # sleep 10 > > /sys/kernel/tracing # cat events/sched/sched_stat_runtime/hist > > # event histogram > > # > > # trigger info: hist:keys=pid:vals=hitcount,runtime.percent,runtime.graph:sort=pid:size=2048 [active] > > # > > > > { pid: 8 } hitcount: 11 runtime: 4.11 runtime: # > > { pid: 9 } hitcount: 4 runtime: 1.28 runtime: > > { pid: 14 } hitcount: 10 runtime: 2.22 runtime: > > { pid: 15 } hitcount: 1 runtime: 0.07 runtime: > > { pid: 16 } hitcount: 21 runtime: 3.35 runtime: # > > { pid: 57 } hitcount: 6 runtime: 2.41 runtime: # > > { pid: 61 } hitcount: 42 runtime: 9.79 runtime: #### > > { pid: 66 } hitcount: 5 runtime: 0.69 runtime: > > { pid: 147 } hitcount: 36 runtime: 45.33 runtime: #################### > > { pid: 8548 } hitcount: 9 runtime: 17.25 runtime: ####### > > { pid: 8549 } hitcount: 8 runtime: 13.43 runtime: ##### > > > > Totals: > > Hits: 153 > > Entries: 11 > > Dropped: 0 > > > > Hi Masami, > > Thanks for this as well. But as it's a new feature, and I freeze new > features when the merge window starts, I'll add this to my queue for the > next window. Yeah, that's no problem. Please queue it for the next window :) Thank you! > > -- Steve -- Masami Hiramatsu (Google)