summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-12-03 23:16:07 +0100
committerFrederic Weisbecker <fweisbec@gmail.com>2009-12-06 08:26:52 +0100
commit189f202ed197dc25d627e8660de27ece325e9f68 (patch)
treea5354dec7815fd52fb78e796ee436feec6f19b58 /include
parenthw-breakpoints: Add two reserved fields for future extensions (diff)
downloadlinux-189f202ed197dc25d627e8660de27ece325e9f68.tar.xz
linux-189f202ed197dc25d627e8660de27ece325e9f68.zip
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 {
__u32 wakeup_watermark; /* bytes before wakeup */
};
- union {
- struct { /* Hardware breakpoint info */
- __u64 bp_addr;
- __u32 bp_type;
- __u32 bp_len;
- __u64 __bp_reserved_1;
- __u64 __bp_reserved_2;
- };
+ struct { /* Hardware breakpoint info */
+ __u64 bp_addr;
+ __u32 bp_type;
+ __u32 bp_len;
+ __u64 __bp_reserved_1;
+ __u64 __bp_reserved_2;
};
__u32 __reserved_2;