lkml.org 
[lkml]   [2013]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/16] perf, persistent: Fix attr size
On Fri, May 31, 2013 at 10:47:22AM +0200, Robert Richter wrote:
> From: Robert Richter <robert.richter@calxeda.com>
>
> Fixing wrongly determined attribute size.
>
> Signed-off-by: Robert Richter <robert.richter@calxeda.com>
> ---
> kernel/events/persistent.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/events/persistent.c b/kernel/events/persistent.c
> index 5335644..9075164 100644
> --- a/kernel/events/persistent.c
> +++ b/kernel/events/persistent.c
> @@ -149,7 +149,7 @@ int perf_add_persistent_event_by_id(int id)
> attr->persistent = 1;
> attr->config = id;
> attr->type = PERF_TYPE_TRACEPOINT;
> - attr->size = sizeof(attr);
> + attr->size = sizeof(*attr);

Ditto for this one.


\
 
 \ /
  Last update: 2013-05-31 11:41    [W:0.184 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site