aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-12-07 08:03:35 +0100
committerIngo Molnar <mingo@elte.hu>2009-12-07 08:03:35 +0100
commit11a80ddbf3521c428bcde2d31e6632cef186bae9 (patch)
treeb975c69c66bf3693f6a982fb8f5522b496353549 /include
parent3a9a0beba2913edaae39ff8b4645fee10c3acf37 (diff)
parent56053170ea2a2c0dc17420e9b94aa3ca51d80408 (diff)
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/urgent
Diffstat (limited to 'include')
-rw-r--r--include/linux/hw_breakpoint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h
index 4d14a384a01..42da1ce19ec 100644
--- a/include/linux/hw_breakpoint.h
+++ b/include/linux/hw_breakpoint.h
@@ -22,6 +22,8 @@ enum {
static inline void hw_breakpoint_init(struct perf_event_attr *attr)
{
+ memset(attr, 0, sizeof(*attr));
+
attr->type = PERF_TYPE_BREAKPOINT;
attr->size = sizeof(*attr);
/*