unix: update perf_event_attr_go

Fix issues when using PerfEventOpen() with PERF_ATTR_SIZE_VER6 or PERF_ATTR_SIZE_VER7
by updating struct perf_event_attr_go to include aux_sample_size and
sig_data.

Change-Id: I0192d59006ed6c67b19a448b797bf49894a24f72
Reviewed-on: https://go-review.googlesource.com/c/sys/+/420294
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
diff --git a/unix/linux/types.go b/unix/linux/types.go
index aa0ce02..9a39c35 100644
--- a/unix/linux/types.go
+++ b/unix/linux/types.go
@@ -402,6 +402,10 @@
 	__u32 aux_watermark;
 	__u16 sample_max_stack;
 	__u16 __reserved_2;
+	__u32 aux_sample_size;
+	__u32 __reserved_3;
+
+	__u64 sig_data;
 };
 
 // ustat is deprecated and glibc 2.28 removed ustat.h. Provide the type here for
diff --git a/unix/ztypes_linux.go b/unix/ztypes_linux.go
index 8698479..f6de1ee 100644
--- a/unix/ztypes_linux.go
+++ b/unix/ztypes_linux.go
@@ -945,6 +945,9 @@
 	Aux_watermark      uint32
 	Sample_max_stack   uint16
 	_                  uint16
+	Aux_sample_size    uint32
+	_                  uint32
+	Sig_data           uint64
 }
 
 type PerfEventMmapPage struct {