Skip to content

Commit

Permalink
perf: Remove pointless union that wraps the hw breakpoint fields
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frederic Weisbecker committed Dec 6, 2009
1 parent ed54d0f commit 189f202
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 189f202

Please sign in to comment.