(root)/
strace-6.5/
src/
linux/
s390/
get_scno.c
       1  /*
       2   * Copyright (c) 2015-2021 The strace developers.
       3   * All rights reserved.
       4   *
       5   * SPDX-License-Identifier: LGPL-2.1-or-later
       6   */
       7  
       8  #ifndef ARCH_REGSET
       9  # define ARCH_REGSET s390_regset
      10  #endif
      11  
      12  /* Return codes: 1 - ok, 0 - ignore, other - error. */
      13  static int
      14  arch_get_scno(struct tcb *tcp)
      15  {
      16  	tcp->scno = ARCH_REGSET.gprs[2] ?
      17  		    ARCH_REGSET.gprs[2] : ARCH_REGSET.gprs[1];
      18  	return 1;
      19  }