[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1369990056-10310-3-git-send-email-rric@kernel.org>
Date: Fri, 31 May 2013 10:47:22 +0200
From: Robert Richter <rric@...nel.org>
To: Borislav Petkov <bp@...en8.de>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
linux-kernel@...r.kernel.org,
Robert Richter <robert.richter@...xeda.com>
Subject: [PATCH 02/16] perf, persistent: Fix attr size
From: Robert Richter <robert.richter@...xeda.com>
Fixing wrongly determined attribute size.
Signed-off-by: Robert Richter <robert.richter@...xeda.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
--
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