Skip to contentSkip to conversation

s390/cpum_sf: Add descriptor sizes in sampling trailer entry

PATCH New Thomas Richter 1 participant 1 message May 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/cpum_sf: Add descriptor sizes in sampling trailer entry

The CPU Measurement sampling facility creates a trailer entry for each Sample-Data-Block of stored samples. The trailer entry contains the sizes (in bytes) of the stored samples types:
- basic-sampling data entry size
- diagnostic-sampling data entry size
Both sizes are 2 bytes long.

This patch changes the trailer entry definition to reflect this.

Fixes fcc77f507333 ("s390/cpum_sf: Atomically reset trailer entry fields of sample-data-blocks")
Cc [email protected] # v3.14+
---
 arch/s390/include/asm/cpu_mf.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
arch/s390/include/asm/cpu_mf.h +7 -3
index 7093a27520ee..5c5b747671e8 100644
@@ -129,11 +129,15 @@ struct hws_trailer_entry {
 			unsigned int f:1;	/* 0 - Block Full Indicator   */
 			unsigned int a:1;	/* 1 - Alert request control  */
 			unsigned int t:1;	/* 2 - Timestamp format	      */
-			unsigned long long:61;	/* 3 - 63: Reserved	      */
+			unsigned long :29;	/* 3 - 31: Reserved	      */
+		};
+		unsigned long flags;	 /* 0 - 31: All indicators            */
+		struct {
+			unsigned short bsdes;	 /* 32-47: Basic set desc size*/
+			unsigned short dsdes;	 /* 48-63 Diag set desc size  */
 		};
-		unsigned long long flags;	/* 0 - 63: All indicators     */
 	};
-	unsigned long long overflow;	 /* 64 - sample Overflow count	      */
+	unsigned long long overflow;	 /* 8 - sample Overflow count	      */
 	unsigned char timestamp[16];	 /* 16 - 31 timestamp		      */
 	unsigned long long reserved1;	 /* 32 -Reserved		      */
 	unsigned long long reserved2;	 /*				      */
Signature · 1 line
2.16.3