mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Colin Cross <ccross@android.com>
Cc: linux-kernel@vger.kernel.org,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Ingo Molnar <mingo@redhat.com>, Jesper Juhl <jj@chaosbits.net>,
	Jiri Kosina <jkosina@suse.cz>,
	"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
	Josh Triplett <josh@joshtriplett.org>
Subject: Re: [PATCH] trace: power: add trace_clock_set_parent
Date: Wed, 09 May 2012 19:50:54 -0400	[thread overview]
Message-ID: <1336607454.14207.221.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <1336605692-14509-1-git-send-email-ccross@android.com>

On Wed, 2012-05-09 at 16:21 -0700, Colin Cross wrote:
> Adds a new trace event to be called from clk_set_parent.  Some
> cpufreq drivers, including Tegra, reparent the cpu clock to a
> slower clock while the main pll is relocking, tracing
> clk_set_parent allows traces to show how for long the cpu is
> running slower.
> 
> Uses a separate TRACE_EVENT instead of the clock event class to
> allow the event to contain string names for the child and the
> parent.
> 
> Signed-off-by: Colin Cross <ccross@android.com>
> ---
>  include/trace/events/power.h |   19 +++++++++++++++++++
>  1 files changed, 19 insertions(+), 0 deletions(-)
> 
> diff --git a/include/trace/events/power.h b/include/trace/events/power.h
> index cae9a94..2b81df6 100644
> --- a/include/trace/events/power.h
> +++ b/include/trace/events/power.h
> @@ -204,6 +204,25 @@ enum {
>  	TP_ARGS(name, state, cpu_id)
>  );
>  
> +TRACE_EVENT(clock_set_parent,
> +
> +	TP_PROTO(const char *name, const char *parent_name),
> +
> +	TP_ARGS(name, parent_name),
> +
> +	TP_STRUCT__entry(
> +		__string(       name,           name            )
> +		__string(       parent_name,    parent_name     )
> +	),
> +
> +	TP_fast_assign(
> +		__assign_str(name, name);
> +		__assign_str(name, parent_name);

Don't you mean: __assign_str(parent_name, parent_name); ?

-- Steve

> +	),
> +
> +	TP_printk("%s parent=%s", __get_str(name), __get_str(parent_name))
> +);
> +
>  /*
>   * The power domain events are used for power domains transitions
>   */



  reply	other threads:[~2012-05-09 23:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 23:21 Colin Cross
2012-05-09 23:50 ` Steven Rostedt [this message]
2012-05-09 23:53   ` Colin Cross

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=1336607454.14207.221.camel@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=ccross@android.com \
    --cc=fweisbec@gmail.com \
    --cc=jj@chaosbits.net \
    --cc=jkosina@suse.cz \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulmck@linux.vnet.ibm.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

all inboxes | Powered by JetHome®