summaryrefslogtreecommitdiff
path: root/include/windows/sys
Commit message (Collapse)AuthorAgeFilesLines
* windows: Add definition of getrusageAlin Serdean2017-03-071-1/+3
| | | | | | | | | | | getrusage is implemented in lib/getrusage-windows.c. This patch just adds its definition to include/windows/sys/resource.h, which serves for files that include <sys/resource.h>. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* Prepare include headersAlin Serdean2014-08-131-0/+31
| | | | | | | Preparing the include headers needed to compile dpif-linux.c with MSVC. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* No newline at end of fileAlin Serdean2014-08-131-1/+1
| | | | | | | Adding newline at end of the following files: packet.h, uio.h. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Add defines, enums and headers for MSVCAlin Serdean2014-07-291-0/+22
| | | | | | | | | | | Add defines needed to compile netlink-socket.c and netlink.c. Add a wrapper and the functionality behind it for syconf. Add the newly created files to the noinst_HEADERS in windows/automake.mk Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* windows/sys: Define sa_family_t for easy compilation.Gurucharan Shetty2014-03-131-0/+22
| | | | Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* windows: Add stub headers for windows.Gurucharan Shetty2014-03-116-0/+0
| | | | | | | | | Windows does not have a bunch of headers that are available in Linux. Instead of littering the code with #ifndef _WIN32, add stub headers. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* getrusage-windows: getrusage() for Windows.Gurucharan Shetty2014-03-061-0/+51
We use getrusage mainly to get user CPU time and system CPU time. Windows has a GetProcessTimes and GetThreadTimes that does the same job. So use them. We also use getrusage to get page faults. Use GetProcessMemoryInfo() for that. We also get number of context switches, block i/o times and use it for debug information when we wake up from poll_block late. I haven't found functions for that in Windows. We only use it for debug information, so it should be okay not implementing it. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Co-authored-by: Linda Sun <lsun@vmware.com> Signed-off-by: Linda Sun <lsun@vmware.com> Acked-by: Ben Pfaff <blp@nicira.com>