[PATCH] Fix sys_ipc/sys_semtimedop decoding on s390x

Heiko Carstens heiko.carstens at de.ibm.com
Wed Dec 19 09:50:37 UTC 2012


On Mon, Dec 10, 2012 at 08:18:49PM +0100, Stanislav Brabec wrote:
> The s390 and s390x passes semtimedop arguments differently. It was fixed
> for s390 in commit e0f5fd8, but s390x is affected as well. See e0f5fd8
> for more.
> 
> Signed-off-by: Stanislav Brabec <sbrabec at suse.cz>
> ---
>  ipc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ipc.c b/ipc.c
> index 0bde1cf..f52fbe6 100644
> --- a/ipc.c
> +++ b/ipc.c
> @@ -327,7 +327,7 @@ int sys_semtimedop(struct tcb *tcp)
>  		if (indirect_ipccall(tcp)) {
>  			tprint_sembuf(tcp, tcp->u_arg[3], tcp->u_arg[1]);
>  			tprints(", ");
> -#if defined(S390)
> +#if defined(S390) || defined(S390X)
>  			printtv(tcp, tcp->u_arg[2]);

Oh yes, thanks! That was stupid to forget S390X...





More information about the Strace-devel mailing list