LCOV - code coverage report
Current view: top level - source/common/api/posix - os_sys_calls_impl_linux.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 4 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #if !defined(__linux__)
       2             : #error "Linux platform file is part of non-Linux build."
       3             : #endif
       4             : 
       5             : #include <sched.h>
       6             : 
       7             : #include <cerrno>
       8             : 
       9             : #include "source/common/api/os_sys_calls_impl_linux.h"
      10             : 
      11             : namespace Envoy {
      12             : namespace Api {
      13             : 
      14             : SysCallIntResult LinuxOsSysCallsImpl::sched_getaffinity(pid_t pid, size_t cpusetsize,
      15           0 :                                                         cpu_set_t* mask) {
      16           0 :   const int rc = ::sched_getaffinity(pid, cpusetsize, mask);
      17           0 :   return {rc, errno};
      18           0 : }
      19             : 
      20             : } // namespace Api
      21             : } // namespace Envoy

Generated by: LCOV version 1.15