lkml.org 
[lkml]   [2013]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 02/16] perf, persistent: Fix attr size
Date
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);

return perf_add_persistent_event(attr, 4);
}
--
1.8.1.1


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