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]
Message-ID: <1326935923.17534.94.camel@gandalf.stny.rr.com>
Date:	Wed, 18 Jan 2012 20:18:43 -0500
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Richard Weinberger <rw@...utronix.de>
Cc:	netfilter-devel@...r.kernel.org, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org, Richard Weinberger <richard@....at>
Subject: Re: [PATCH 1/5] ring_buffer: Export for_each_buffer_cpu()

On Wed, 2012-01-18 at 23:43 +0100, Richard Weinberger wrote:
> From: Richard Weinberger <richard@....at>
> 

Missing change log.


Otherwise,

Acked-by: Steven Rostedt <rostedt@...dmis.org>

-- Steve

> 
> Signed-off-by: Richard Weinberger <richard@....at>
> ---
>  include/linux/ring_buffer.h |    5 +++++
>  kernel/trace/ring_buffer.c  |    7 +++++++
>  2 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
> index 67be037..5c1c29f 100644
> --- a/include/linux/ring_buffer.h
> +++ b/include/linux/ring_buffer.h
> @@ -185,4 +185,9 @@ enum ring_buffer_flags {
>  	RB_FL_OVERWRITE		= 1 << 0,
>  };
>  
> +cpumask_var_t *ring_buffer_mask(struct ring_buffer *buffer);
> +
> +#define for_each_buffer_cpu(buffer, cpu) \
> +	for_each_cpu(cpu, *(ring_buffer_mask(buffer)))
> +
>  #endif /* _LINUX_RING_BUFFER_H */
> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> index f5b7b5c..a4117c5 100644
> --- a/kernel/trace/ring_buffer.c
> +++ b/kernel/trace/ring_buffer.c
> @@ -348,6 +348,7 @@ void *ring_buffer_event_data(struct ring_buffer_event *event)
>  }
>  EXPORT_SYMBOL_GPL(ring_buffer_event_data);
>  
> +#undef for_each_buffer_cpu
>  #define for_each_buffer_cpu(buffer, cpu)		\
>  	for_each_cpu(cpu, buffer->cpumask)
>  
> @@ -4139,3 +4140,9 @@ static int rb_cpu_notify(struct notifier_block *self,
>  	return NOTIFY_OK;
>  }
>  #endif
> +
> +cpumask_var_t *ring_buffer_mask(struct ring_buffer *buffer)
> +{
> +	return &buffer->cpumask;
> +}
> +EXPORT_SYMBOL_GPL(ring_buffer_mask);


--
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