aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-12-03 17:16:07 -0500
committerFrederic Weisbecker <fweisbec@gmail.com>2009-12-06 02:26:52 -0500
commit189f202ed197dc25d627e8660de27ece325e9f68 (patch)
treea5354dec7815fd52fb78e796ee436feec6f19b58 /include
parented54d0f98000ee03310150aa396e9ff8bcb394ce (diff)
perf: Remove pointless union that wraps the hw breakpoint fields
It stands to anonymize a structure, but structures can already anonymize by themselves. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: "K. Prasad" <prasad@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/perf_event.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index a61e4de3448b..53230e99e9ea 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -215,14 +215,12 @@ struct perf_event_attr {
215 __u32 wakeup_watermark; /* bytes before wakeup */ 215 __u32 wakeup_watermark; /* bytes before wakeup */
216 }; 216 };
217 217
218 union { 218 struct { /* Hardware breakpoint info */
219 struct { /* Hardware breakpoint info */ 219 __u64 bp_addr;
220 __u64 bp_addr; 220 __u32 bp_type;
221 __u32 bp_type; 221 __u32 bp_len;
222 __u32 bp_len; 222 __u64 __bp_reserved_1;
223 __u64 __bp_reserved_1; 223 __u64 __bp_reserved_2;
224 __u64 __bp_reserved_2;
225 };
226 }; 224 };
227 225
228 __u32 __reserved_2; 226 __u32 __reserved_2;