LCOV - code coverage report
Current view: top level - strace_git/linux/x86_64 - set_scno.c (source / functions) Hit Total Coverage
Test: strace-4.16.0.69.f1ea-dirty Code Coverage Lines: 2 2 100.0 %
Date: 2017-03-18 00:38:52 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #ifndef HAVE_GETREGS_OLD
       2                 :            : # define arch_set_scno i386_set_scno
       3                 :            : # include "i386/set_scno.c"
       4                 :            : # undef arch_set_scno
       5                 :            : #endif /* !HAVE_GETREGS_OLD */
       6                 :            : 
       7                 :            : static int
       8                 :      12458 : arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
       9                 :            : {
      10                 :            : #ifdef HAVE_GETREGS_OLD
      11                 :      12458 :         return upoke(tcp->pid, 8 * ORIG_RAX, scno);
      12                 :            : #else
      13                 :            :         if (x86_io.iov_len == sizeof(i386_regs))
      14                 :            :                 return i386_set_scno(tcp, scno);
      15                 :            : 
      16                 :            :         x86_64_regs.orig_rax = scno;
      17                 :            :         return set_regs(tcp->pid);
      18                 :            : #endif
      19                 :            : }

Generated by: LCOV version 1.12