Denys Vlasenko f5730e9614 s390[x]: get rid of syscall_mode, delete code which never triggers
Before this change, the logic was as follows:
syscall entry:
  get_scno:
    syscall_mode = GPR2
    scno = syscall_mode unless syscall_mode == -ENOSYS
    (if -ENOSYS, scn is retrieved by decoding current insn)
  fixup:
    gpr2 = GPR2
    syscall_mode = scno unless syscall_mode == -ENOSYS
    if (gpr2 != syscall_mode) stray_entry
syscall exit:
  get_res:
    gpr2 = GRP2
  fixup:
    syscall_mode = scno unless syscall_mode == -ENOSYS
    if (WAITEXECVE && gpr2 in (-ENOSYS, scno)) gpr2 = 0;
  get_error:
    gpr2 is retval

Entry fixup's if() can never trigger:
regardless whether GPR2 is -ENOSYS or not, syscall_mode is always
equal to GRP2 value there. So it can be removed.

On sysexit path, syscall mode is never used.

Therefore, syscall_mode variable is deleted. grp2 is read from
GPR2 register in get_scno, redundant read in entry fixup is removed.
As a result, entry fixup's s390 code block vanishes completely.

gpr2 variable is renamed s390_gpr2 to match the convention used
by other arches.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2013-07-07 12:56:42 +02:00
2013-06-03 12:34:56 +00:00
2013-06-03 16:24:53 +00:00
2013-05-02 22:43:47 +00:00
2013-05-02 22:06:12 +00:00
2012-05-01 21:51:38 +00:00
2013-02-23 20:07:44 +01:00
2009-07-08 21:01:21 +00:00
2013-05-17 23:18:55 +00:00
2012-05-01 21:51:38 +00:00
2013-05-06 18:23:01 +00:00
2012-02-25 15:29:21 +01:00
2013-03-20 14:38:20 +00:00
2013-05-02 22:50:55 +00:00
2013-02-23 20:07:44 +01:00
2013-04-30 23:52:12 +00:00
2013-06-03 16:24:53 +00:00
2013-05-05 08:15:24 +00:00
2013-06-05 21:33:45 +00:00
2012-10-26 23:43:13 +00:00
2013-05-17 23:18:55 +00:00
2013-06-26 15:40:13 +02:00
2013-06-03 12:34:56 +00:00

This is strace, a system call tracer for Linux.

strace is released under a Berkeley-style license at the request
of Paul Kranenburg; see the file COPYING for details.

See the file CREDITS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.

See the file NEWS for information on what has changed in recent
versions.

You can get the latest version of strace from its homepage at
http://sourceforge.net/projects/strace/ .

Please send bug reports and enhancements to the strace
mailinglist at strace-devel@lists.sourceforge.net.
Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%