LCOV - code coverage report
Current view: top level - arch/x86/um - ptrace_user.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 6 0.0 %
Date: 2023-03-27 20:00:47 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*
       2             :  * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
       3             :  * Licensed under the GPL
       4             :  */
       5             : 
       6             : #include <errno.h>
       7             : #include <ptrace_user.h>
       8             : 
       9           0 : int ptrace_getregs(long pid, unsigned long *regs_out)
      10             : {
      11           0 :         if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
      12           0 :                 return -errno;
      13             :         return 0;
      14             : }
      15             : 
      16           0 : int ptrace_setregs(long pid, unsigned long *regs)
      17             : {
      18           0 :         if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
      19           0 :                 return -errno;
      20             :         return 0;
      21             : }

Generated by: LCOV version 1.14