LCOV - code coverage report
Current view: top level - strace - utime.c (source / functions) Hit Total Coverage
Test: strace-4.18.0.129.97bbb Code Coverage Lines: 10 10 100.0 %
Date: 2017-07-31 03:46:08 Functions: 2 3 66.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : #include "defs.h"
       2                 :            : 
       3                 :            : #include DEF_MPERS_TYPE(utimbuf_t)
       4                 :            : 
       5                 :            : #include <utime.h>
       6                 :            : 
       7                 :            : typedef struct utimbuf utimbuf_t;
       8                 :            : 
       9                 :            : #include MPERS_DEFS
      10                 :            : 
      11                 :          8 : SYS_FUNC(utime)
      12                 :            : {
      13                 :            :         utimbuf_t u;
      14                 :            : 
      15                 :          8 :         printpath(tcp, tcp->u_arg[0]);
      16                 :          8 :         tprints(", ");
      17         [ +  + ]:          8 :         if (!umove_or_printaddr(tcp, tcp->u_arg[1], &u)) {
      18                 :          2 :                 tprintf("{actime=%lld", (long long) u.actime);
      19                 :          2 :                 tprints_comment(sprinttime(u.actime));
      20                 :          2 :                 tprintf(", modtime=%lld", (long long) u.modtime);
      21                 :          2 :                 tprints_comment(sprinttime(u.modtime));
      22                 :          2 :                 tprints("}");
      23                 :            :         }
      24                 :            : 
      25                 :          8 :         return RVAL_DECODED;
      26                 :            : }

Generated by: LCOV version 1.11