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] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 3 May 2011 15:29:54 +0100
From:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
To:	Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ingo Molnar <mingo@...e.hu>,
	Thomas Gleixner <tglx@...utronix.de>,
	Frederic Weisbecker <fweisbec@...il.com>, lrg@...mlogic.co.uk
Subject: Re: [RFC patch 29/32] trace event asoc remove semicolons

On Mon, May 02, 2011 at 05:11:52PM -0400, Mathieu Desnoyers wrote:
> Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array
> of events, thus saving space for trace event probes.
> 
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
> CC: Steven Rostedt <rostedt@...dmis.org>
> CC: Frederic Weisbecker <fweisbec@...il.com>
> CC: Ingo Molnar <mingo@...e.hu>
> CC: Thomas Gleixner <tglx@...utronix.de>
> CC: Mark Brown <broonie@...nsource.wolfsonmicro.com>

Acked-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>

and adding Liam.

> ---
>  include/trace/events/asoc.h |   39 ++++++++++++++++++++++-----------------
>  1 file changed, 22 insertions(+), 17 deletions(-)
> 
> Index: linux-2.6-lttng/include/trace/events/asoc.h
> ===================================================================
> --- linux-2.6-lttng.orig/include/trace/events/asoc.h
> +++ linux-2.6-lttng/include/trace/events/asoc.h
> @@ -7,11 +7,16 @@
>  #include <linux/ktime.h>
>  #include <linux/tracepoint.h>
>  
> +#ifndef _TRACE_ASOC_DEF_
> +#define _TRACE_ASOC_DEF_
> +
>  struct snd_soc_jack;
>  struct snd_soc_codec;
>  struct snd_soc_card;
>  struct snd_soc_dapm_widget;
>  
> +#endif /* _TRACE_ASOC_DEF_ */
> +
>  /*
>   * Log register events
>   */
> @@ -39,7 +44,7 @@ DECLARE_EVENT_CLASS(snd_soc_reg,
>  	TP_printk("codec=%s.%d reg=%x val=%x", __get_str(name),
>  		  (int)__entry->id, (unsigned int)__entry->reg,
>  		  (unsigned int)__entry->val)
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_reg, snd_soc_reg_write,
>  
> @@ -48,7 +53,7 @@ DEFINE_EVENT(snd_soc_reg, snd_soc_reg_wr
>  
>  	TP_ARGS(codec, reg, val)
>  
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_reg, snd_soc_reg_read,
>  
> @@ -57,7 +62,7 @@ DEFINE_EVENT(snd_soc_reg, snd_soc_reg_re
>  
>  	TP_ARGS(codec, reg, val)
>  
> -);
> +)
>  
>  DECLARE_EVENT_CLASS(snd_soc_card,
>  
> @@ -76,7 +81,7 @@ DECLARE_EVENT_CLASS(snd_soc_card,
>  	),
>  
>  	TP_printk("card=%s val=%d", __get_str(name), (int)__entry->val)
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_card, snd_soc_bias_level_start,
>  
> @@ -84,7 +89,7 @@ DEFINE_EVENT(snd_soc_card, snd_soc_bias_
>  
>  	TP_ARGS(card, val)
>  
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_card, snd_soc_bias_level_done,
>  
> @@ -92,7 +97,7 @@ DEFINE_EVENT(snd_soc_card, snd_soc_bias_
>  
>  	TP_ARGS(card, val)
>  
> -);
> +)
>  
>  DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
>  
> @@ -109,7 +114,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_basic,
>  	),
>  
>  	TP_printk("card=%s", __get_str(name))
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_start,
>  
> @@ -117,7 +122,7 @@ DEFINE_EVENT(snd_soc_dapm_basic, snd_soc
>  
>  	TP_ARGS(card)
>  
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_dapm_basic, snd_soc_dapm_done,
>  
> @@ -125,7 +130,7 @@ DEFINE_EVENT(snd_soc_dapm_basic, snd_soc
>  
>  	TP_ARGS(card)
>  
> -);
> +)
>  
>  DECLARE_EVENT_CLASS(snd_soc_dapm_widget,
>  
> @@ -145,7 +150,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget,
>  
>  	TP_printk("widget=%s val=%d", __get_str(name),
>  		  (int)__entry->val)
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power,
>  
> @@ -153,7 +158,7 @@ DEFINE_EVENT(snd_soc_dapm_widget, snd_so
>  
>  	TP_ARGS(w, val)
>  
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_event_start,
>  
> @@ -161,7 +166,7 @@ DEFINE_EVENT(snd_soc_dapm_widget, snd_so
>  
>  	TP_ARGS(w, val)
>  
> -);
> +)
>  
>  DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_event_done,
>  
> @@ -169,7 +174,7 @@ DEFINE_EVENT(snd_soc_dapm_widget, snd_so
>  
>  	TP_ARGS(w, val)
>  
> -);
> +)
>  
>  TRACE_EVENT(snd_soc_jack_irq,
>  
> @@ -186,7 +191,7 @@ TRACE_EVENT(snd_soc_jack_irq,
>  	),
>  
>  	TP_printk("%s", __get_str(name))
> -);
> +)
>  
>  TRACE_EVENT(snd_soc_jack_report,
>  
> @@ -208,7 +213,7 @@ TRACE_EVENT(snd_soc_jack_report,
>  
>  	TP_printk("jack=%s %x/%x", __get_str(name), (int)__entry->val,
>  		  (int)__entry->mask)
> -);
> +)
>  
>  TRACE_EVENT(snd_soc_jack_notify,
>  
> @@ -227,7 +232,7 @@ TRACE_EVENT(snd_soc_jack_notify,
>  	),
>  
>  	TP_printk("jack=%s %x", __get_str(name), (int)__entry->val)
> -);
> +)
>  
>  TRACE_EVENT(snd_soc_cache_sync,
>  
> @@ -252,7 +257,7 @@ TRACE_EVENT(snd_soc_cache_sync,
>  
>  	TP_printk("codec=%s.%d type=%s status=%s", __get_str(name),
>  		  (int)__entry->id, __get_str(type), __get_str(status))
> -);
> +)
>  
>  #endif /* _TRACE_ASOC_H */
>  
> 
--
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