lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMbhsRQ4RBbhBvvxt40qePfsDAa79-3gk-cNEjGe6AmRUi=58A@mail.gmail.com>
Date:	Wed, 9 May 2012 16:53:34 -0700
From:	Colin Cross <ccross@...roid.com>
To:	Steven Rostedt <rostedt@...dmis.org>
Cc:	linux-kernel@...r.kernel.org,
	Frederic Weisbecker <fweisbec@...il.com>,
	Ingo Molnar <mingo@...hat.com>, Jesper Juhl <jj@...osbits.net>,
	Jiri Kosina <jkosina@...e.cz>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Josh Triplett <josh@...htriplett.org>
Subject: Re: [PATCH] trace: power: add trace_clock_set_parent

On Wed, May 9, 2012 at 4:50 PM, Steven Rostedt <rostedt@...dmis.org> wrote:
> 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@...roid.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); ?

Yep, just noticed that in my traces, I'll send an updated patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ