<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:14pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">this isn't dave and stop sending these emails<VAR id=yui-ie-cursor></VAR><BR style="RIGHT: auto" class=yui-cursor></SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 14pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Dave Anderson <anderson@redhat.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> holzheu@linux.vnet.ibm.com<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> crash <crash-utility@redhat.com><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, September 15, 2011 8:24 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Crash-utility] [PATCH] s390: Fix printing of control and floating point registers<BR></FONT><BR><BR><BR>----- Original Message -----<BR>> Hi Dave,<BR>> <BR>> Control registers 8-15 (s390x and s390) and floating
 point registers 8-15<BR>> (s390x only) are not printed correctly because the we copy the content from<BR>> the wrong location of the save area.<BR>> <BR>> Looks like nobody has realized this problem in the past because those<BR>> registers are not too important for debugging kernel problems...<BR>> <BR>> This patch fixes this problem and now control and floating point registers<BR>> are printed correctly.<BR>> <BR>> Signed-off-by: Michael Holzheu <<A href="mailto:holzheu@linux.vnet.ibm.com" ymailto="mailto:holzheu@linux.vnet.ibm.com">holzheu@linux.vnet.ibm.com</A>><BR><BR>Hi Michael,<BR><BR>The "ULONG(ptr + 8)" below doesn't seem right:<BR><BR>> --- a/s390.c<BR>> +++ b/s390.c<BR>> @@ -861,16 +861,16 @@ s390_print_lowcore(char* lc, struct bt_i<BR>> fprintf(fp," %#010lx %#010lx %#010lx %#010lx\n",<BR>> tmp[0], tmp[1], tmp[2], tmp[3]);<BR>> <BR>> - tmp[0]=ULONG(ptr);<BR>> - tmp[1]=ULONG(ptr +
 S390_WORD_SIZE);<BR>> - tmp[2]=ULONG(ptr + 2 * S390_WORD_SIZE);<BR>> - tmp[3]=ULONG(ptr + 3 * S390_WORD_SIZE);<BR>> + tmp[0]=ULONG(ptr + 8);<BR>> + tmp[1]=ULONG(ptr + 9 * S390_WORD_SIZE);<BR>> + tmp[2]=ULONG(ptr + 10 * S390_WORD_SIZE);<BR>> + tmp[3]=ULONG(ptr + 11 * S390_WORD_SIZE);<BR><BR>And here as well:<BR><BR>> --- a/s390x.c<BR>> +++ b/s390x.c<BR>> @@ -1184,16 +1184,16 @@ s390x_print_lowcore(char* lc, struct bt_<BR>> tmp[3]=ULONG(ptr + 7 * S390X_WORD_SIZE);<BR>> fprintf(fp," %#018lx %#018lx\n", tmp[0],tmp[1]);<BR>> fprintf(fp," %#018lx %#018lx\n", tmp[2],tmp[3]);<BR>> - tmp[0]=ULONG(ptr);<BR>> - tmp[1]=ULONG(ptr + S390X_WORD_SIZE);<BR>> - tmp[2]=ULONG(ptr + 2 * S390X_WORD_SIZE);<BR>> - tmp[3]=ULONG(ptr + 3 * S390X_WORD_SIZE);<BR>> + tmp[0]=ULONG(ptr + 8);<BR>> + tmp[1]=ULONG(ptr + 9 * S390X_WORD_SIZE);<BR>> + tmp[2]=ULONG(ptr + 10 * S390X_WORD_SIZE);<BR>> + tmp[3]=ULONG(ptr + 11 *
 S390X_WORD_SIZE);<BR><BR>Shouldn't they both be:<BR><BR>  tmp[0]=ULONG(ptr + 8 * S390_WORD_SIZE);<BR><BR>Dave<BR><BR><BR>--<BR>Crash-utility mailing list<BR><A href="mailto:Crash-utility@redhat.com" ymailto="mailto:Crash-utility@redhat.com">Crash-utility@redhat.com</A><BR><A href="https://www.redhat.com/mailman/listinfo/crash-utility" target=_blank>https://www.redhat.com/mailman/listinfo/crash-utility</A><BR><BR><BR></DIV></DIV></div></body></html>