From: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <zanussi@kernel.org>, Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/3] tracing/hist: Add percentage histogram suffixes
Date: Tue, 23 Aug 2022 11:58:57 +0900 [thread overview]
Message-ID: <166122353724.94548.7395770385598120122.stgit@devnote2> (raw)
Hi,
Here is the 3rd version of .percent and .graph suffixes for histogram
trigger to show the value in percentage and in bar-graph respectively.
I added one minor bugfix patch and update original patches to show
hitcount.graph and hitcount.percent correctly.
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 hitcount of the running tasks.
# cd /sys/kernel/debug/tracing/
# echo hist:keys=pid:vals=hitcount.percent,hitcount.graph:sort=pid > \
events/sched/sched_stat_runtime/trigger
# sleep 10
# cat events/sched/sched_stat_runtime/hist
# event histogram
#
# trigger info: hist:keys=pid:vals=hitcount,hitcount.percent,hitcount.graph:sort=pid:size=2048 [active]
#
{ pid: 8 } hitcount: 3 hitcount (%): 3.33 hitcount: ###
{ pid: 16 } hitcount: 10 hitcount (%): 11.11 hitcount: ##########
{ pid: 26 } hitcount: 1 hitcount (%): 1.11 hitcount: #
{ pid: 57 } hitcount: 3 hitcount (%): 3.33 hitcount: ###
{ pid: 61 } hitcount: 20 hitcount (%): 22.22 hitcount: ####################
{ pid: 64 } hitcount: 3 hitcount (%): 3.33 hitcount: ###
{ pid: 69 } hitcount: 2 hitcount (%): 2.22 hitcount: ##
{ pid: 70 } hitcount: 1 hitcount (%): 1.11 hitcount: #
{ pid: 77 } hitcount: 10 hitcount (%): 11.11 hitcount: ##########
{ pid: 124 } hitcount: 2 hitcount (%): 2.22 hitcount: ##
{ pid: 130 } hitcount: 2 hitcount (%): 2.22 hitcount: ##
{ pid: 146 } hitcount: 18 hitcount (%): 20.00 hitcount: ##################
{ pid: 153 } hitcount: 8 hitcount (%): 8.88 hitcount: ########
{ pid: 154 } hitcount: 7 hitcount (%): 7.77 hitcount: #######
Totals:
Hits: 90
Entries: 14
Dropped: 0
Thank you,
---
Masami Hiramatsu (Google) (3):
tracing: Fix to check event_mutex is held while accessing trigger list
tracing: Add .percent suffix option to histogram values
tracing: Add .graph suffix option to histogram value
kernel/trace/trace.c | 3 -
kernel/trace/trace_events_hist.c | 160 +++++++++++++++++++++++++++++++----
kernel/trace/trace_events_trigger.c | 3 -
3 files changed, 147 insertions(+), 19 deletions(-)
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
next reply other threads:[~2022-08-23 2:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 2:58 Masami Hiramatsu (Google) [this message]
2022-08-23 2:59 ` [PATCH v3 1/3] tracing: Fix to check event_mutex is held while accessing trigger list Masami Hiramatsu (Google)
2022-08-23 2:59 ` [PATCH v3 2/3] tracing: Add .percent suffix option to histogram values Masami Hiramatsu (Google)
2022-08-23 2:59 ` [PATCH v3 3/3] tracing: Add .graph suffix option to histogram value Masami Hiramatsu (Google)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=166122353724.94548.7395770385598120122.stgit@devnote2 \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=zanussi@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox