Skip to content

Commit d5d8223

Browse files
Thomas Richtergregkh
authored andcommitted
s390/cpum_sf: Add data entry sizes to sampling trailer entry
[ Upstream commit 77715b7 ] 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 sampling 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: fcc77f5 ("s390/cpum_sf: Atomically reset trailer entry fields of sample-data-blocks") Signed-off-by: Thomas Richter <[email protected]> Reviewed-by: Hendrik Brueckner <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent af5e884 commit d5d8223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/s390/include/asm/cpu_mf.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ struct hws_trailer_entry {
132132
unsigned int f:1; /* 0 - Block Full Indicator */
133133
unsigned int a:1; /* 1 - Alert request control */
134134
unsigned int t:1; /* 2 - Timestamp format */
135-
unsigned long long:61; /* 3 - 63: Reserved */
135+
unsigned int :29; /* 3 - 31: Reserved */
136+
unsigned int bsdes:16; /* 32-47: size of basic SDE */
137+
unsigned int dsdes:16; /* 48-63: size of diagnostic SDE */
136138
};
137139
unsigned long long flags; /* 0 - 63: All indicators */
138140
};

0 commit comments

Comments
 (0)