LCOV - code coverage report
Current view: top level - strace_git - getrandom.c (source / functions) Hit Total Coverage
Test: strace-4.16.0.69.f1ea-dirty Code Coverage Lines: 8 8 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: 4 4 100.0 %

           Branch data     Line data    Source code
       1                 :            : #include "defs.h"
       2                 :            : #include "xlat/getrandom_flags.h"
       3                 :            : 
       4                 :         36 : SYS_FUNC(getrandom)
       5                 :            : {
       6         [ +  + ]:         36 :         if (exiting(tcp)) {
       7         [ +  + ]:         18 :                 if (syserror(tcp))
       8                 :          6 :                         printaddr(tcp->u_arg[0]);
       9                 :            :                 else
      10                 :         12 :                         printstr_ex(tcp, tcp->u_arg[0], tcp->u_rval,
      11                 :            :                                     QUOTE_FORCE_HEX);
      12                 :         18 :                 tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
      13                 :         18 :                 printflags(getrandom_flags, tcp->u_arg[2], "GRND_???");
      14                 :            :         }
      15                 :         36 :         return 0;
      16                 :            : }

Generated by: LCOV version 1.12