From: Juri Lelli <juri.lelli@redhat.com>
To: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: linux-kernel@vger.kernel.org, Phil Auld <pauld@redhat.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Kate Carcia <kcarcia@redhat.com>,
Jonathan Corbet <corbet@lwn.net>,
Steven Rostedt <rostedt@goodmis.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Alexandre Chartre <alexandre.chartre@oracle.com>,
Clark Willaims <williams@redhat.com>,
John Kacur <jkacur@redhat.com>,
linux-doc@vger.kernel.org
Subject: Re: [RFC PATCH V2 9/9] tracing: Add timerlat tracer
Date: Fri, 14 May 2021 10:55:53 +0200 [thread overview]
Message-ID: <YJ47Gc6ej9jeAsoK@localhost.localdomain> (raw)
In-Reply-To: <1f3b97ca52e6a4eec58f18bf190218bdbfe30f20.1619210818.git.bristot@redhat.com>
Hi Daniel,
Just a couple of things I noticed while playing with this nice additon.
On 23/04/21 23:05, Daniel Bristot de Oliveira wrote:
...
> +/**
> + * tlat_var_reset - Reset the values of the given timerlat_variables
> + */
> +static inline void tlat_var_reset(void)
> +{
> + struct timerlat_variables *tlat_var;
> + int cpu;
> /*
> * So far, all the values are initialized as 0, so
> * zeroing the structure is perfect.
> */
> - memset(osn_var, 0, sizeof(struct osnoise_variables));
> + for_each_cpu(cpu, cpu_online_mask) {
> + memset(tlat_var, 0, sizeof(struct timerlat_variables));
> + tlat_var = per_cpu_ptr(&per_cpu_timerlat_var, cpu);
Think these two above want to be the other way around?
> + }
> }
...
> +#ifdef CONFIG_TIMERLAT_TRACER
> +static void timerlat_tracer_start(struct trace_array *tr)
> +{
> + int retval;
> +
> + if (osnoise_busy)
> + return;
> +
> + retval = __osnoise_tracer_start(tr);
> + if (retval)
> + goto out_err;
> +
> + osnoise_data.timerlat_tracer = 1;
It seems this needs to be set before calling __osnoise_tracer_start()?
Thanks!
Juri
next prev parent reply other threads:[~2021-05-14 8:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 21:05 [RFC PATCH V2 0/9] hwlat improvements and osnoise/timerlat tracers Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 1/9] tracing/hwlat: Fix Clark's email Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 2/9] tracing/hwlat: Implement the mode config option Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 3/9] tracing/hwlat: Switch disable_migrate to mode none Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 4/9] tracing/hwlat: Implement the per-cpu mode Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 5/9] tracing/trace: Add a generic function to read/write u64 values from tracefs Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 6/9] tracing/hwlat: Use the generic function to read/write width and window Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 7/9] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 8/9] tracing: Add osnoise tracer Daniel Bristot de Oliveira
2021-04-23 21:05 ` [RFC PATCH V2 9/9] tracing: Add timerlat tracer Daniel Bristot de Oliveira
2021-05-14 8:55 ` Juri Lelli [this message]
2021-05-14 8:59 ` Daniel Bristot de Oliveira
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=YJ47Gc6ej9jeAsoK@localhost.localdomain \
--to=juri.lelli@redhat.com \
--cc=alexandre.chartre@oracle.com \
--cc=bigeasy@linutronix.de \
--cc=bristot@redhat.com \
--cc=corbet@lwn.net \
--cc=jkacur@redhat.com \
--cc=kcarcia@redhat.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pauld@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--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).