From: Steven Rostedt <rostedt@goodmis.org>
To: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org,
Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Clark Williams <williams@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
Jon Masters <jcm@redhat.com>, Daniel Wagner <wagi@monom.org>,
Carsten Emde <C.Emde@osadl.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [RFC][PATCH 5/3] tracing: Add smi counting to HWLAT
Date: Tue, 9 Aug 2016 14:35:28 -0400 [thread overview]
Message-ID: <20160809143528.7bd9e4a0@gandalf.local.home> (raw)
In-Reply-To: <81075ecf-90c3-fdb2-59eb-defd215af2eb@redhat.com>
On Tue, 9 Aug 2016 15:28:57 -0300
Daniel Bristot de Oliveira <bristot@redhat.com> wrote:
> On 08/09/2016 03:05 PM, Steven Rostedt wrote:
> > If an arch supports counting of SMIs (like newer intel chips do), then it
> > can implement arch_smi_count() to return the number of SMIs that were
> > triggered. The hwlat detector will call this function to get the current
> > number of SMIs, and then after a period, it will read that function again,
> > and if there's a difference, it will record that into the sample.
> >
> > For example:
> >
> > [99] inner:13 outer:16 ts:1470352534.886878855
> > [100] inner:14 outer:18747 ts:1470352538.917966818 smi-count:2
> > [101] inner:0 outer:19162 ts:1470352539.920988709 smi-count:6
> > [102] inner:19376 outer:19276 ts:1470352540.923010578 smi-count:6
> > [103] inner:19650 outer:20665 ts:1470352541.926032469 smi-count:6
> > [104] inner:20526 outer:20680 ts:1470352542.973055312 smi-count:6
> > [105] inner:17 outer:17 ts:1470352543.990077507
> >
> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
>
> It worked fine in a system that I can manually cause SMIs (by turning
> keyboard's backlight on and off).
>
> Tested-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Thanks! I should also add:
Suggested-by: Peter Zijlstra <peterz@infradead.org>
As Peter was the one that recommended adding the arch_smi_count()
function.
But I can't push this yet as this would require acks from the x86
maintainers.
But if there's no complaints about the rest of the patches, I could
work to get that ready.
-- Steve
next prev parent reply other threads:[~2016-08-09 18:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 14:57 [RFC][PATCH 0/3] tracing: Add Hardware Latency detector tracer Steven Rostedt
2016-08-04 14:57 ` [RFC][PATCH 1/3] tracing: Added hardware latency tracer Steven Rostedt
2016-08-05 14:25 ` Sebastian Andrzej Siewior
2016-08-05 14:44 ` Steven Rostedt
2016-08-05 15:28 ` Sebastian Andrzej Siewior
2016-08-05 15:36 ` Steven Rostedt
2016-08-04 14:57 ` [RFC][PATCH 2/3] tracing: Add documentation for hwlat_detector tracer Steven Rostedt
2016-08-10 14:12 ` Jon Masters
2016-08-04 14:57 ` [RFC][PATCH 3/3] tracing: Have hwlat trace migrate across tracing_cpumask CPUs Steven Rostedt
2016-08-04 15:30 ` [RFC][PATCH 0/3] tracing: Add Hardware Latency detector tracer Steven Rostedt
2016-08-09 18:15 ` Clark Williams
2016-08-09 18:30 ` Steven Rostedt
2016-08-04 16:56 ` [RFC][PATCH 4/3] tracing: Add NMI tracing in hwlat detector Steven Rostedt
2016-08-04 17:16 ` Steven Rostedt
2016-08-05 14:35 ` Sebastian Andrzej Siewior
2016-08-05 14:52 ` Steven Rostedt
2016-08-05 15:40 ` Sebastian Andrzej Siewior
2016-08-05 16:17 ` Steven Rostedt
2016-08-09 17:22 ` Steven Rostedt
2016-08-10 14:10 ` Jon Masters
2016-08-09 18:05 ` [RFC][PATCH 5/3] tracing: Add smi counting to HWLAT Steven Rostedt
2016-08-09 18:28 ` Daniel Bristot de Oliveira
2016-08-09 18:35 ` Steven Rostedt [this message]
2016-08-09 21:25 ` Peter Zijlstra
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=20160809143528.7bd9e4a0@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=C.Emde@osadl.org \
--cc=akpm@linux-foundation.org \
--cc=bigeasy@linutronix.de \
--cc=bristot@redhat.com \
--cc=jcm@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=wagi@monom.org \
--cc=williams@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).