diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-07 02:03:35 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-07 02:03:35 -0500 |
commit | 11a80ddbf3521c428bcde2d31e6632cef186bae9 (patch) | |
tree | b975c69c66bf3693f6a982fb8f5522b496353549 /include/linux/hw_breakpoint.h | |
parent | 3a9a0beba2913edaae39ff8b4645fee10c3acf37 (diff) | |
parent | 56053170ea2a2c0dc17420e9b94aa3ca51d80408 (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/linux/hw_breakpoint.h')
-rw-r--r-- | include/linux/hw_breakpoint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 4d14a384a01e..42da1ce19ec0 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
@@ -22,6 +22,8 @@ enum { | |||
22 | 22 | ||
23 | static inline void hw_breakpoint_init(struct perf_event_attr *attr) | 23 | static inline void hw_breakpoint_init(struct perf_event_attr *attr) |
24 | { | 24 | { |
25 | memset(attr, 0, sizeof(*attr)); | ||
26 | |||
25 | attr->type = PERF_TYPE_BREAKPOINT; | 27 | attr->type = PERF_TYPE_BREAKPOINT; |
26 | attr->size = sizeof(*attr); | 28 | attr->size = sizeof(*attr); |
27 | /* | 29 | /* |