Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <paths.h>
#include <sys/user.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
#include <vm/vm_param.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
Macros | |
#define | CPUSTATES 5U |
#define | CP_USER 0 |
#define | CP_NICE 1 |
#define | CP_SYS 2 |
#define | CP_IDLE 3 |
#define | CP_INTR 4 |
Functions | |
int | uv__platform_loop_init (uv_loop_t *loop) |
void | uv__platform_loop_delete (uv_loop_t *loop) |
int | uv_exepath (char *buffer, size_t *size) |
uint64_t | uv_get_free_memory (void) |
uint64_t | uv_get_total_memory (void) |
uint64_t | uv_get_constrained_memory (void) |
void | uv_loadavg (double avg[3]) |
int | uv_resident_set_memory (size_t *rss) |
int | uv_uptime (double *uptime) |
int | uv_cpu_info (uv_cpu_info_t **cpu_infos, int *count) |
int | uv__sendmmsg (int fd, struct uv__mmsghdr *mmsg, unsigned int vlen) |
int | uv__recvmmsg (int fd, struct uv__mmsghdr *mmsg, unsigned int vlen) |
void uv__platform_loop_delete | ( | uv_loop_t * | loop | ) |
int uv_cpu_info | ( | uv_cpu_info_t ** | cpu_infos, |
int * | count | ||
) |
Definition at line 172 of file freebsd.c.
References count, CP_IDLE, CP_INTR, CP_NICE, CP_SYS, CP_USER, uv_cpu_info_s::cpu_times, CPUSTATES, i, uv_cpu_times_s::idle, int, uv_cpu_times_s::irq, long, uv_cpu_info_s::model, uv_cpu_times_s::nice, NULL, uv_cpu_info_s::speed, uv_cpu_times_s::sys, uv_cpu_times_s::user, UV__ERR, uv__free(), uv__malloc(), and uv__strdup().
Definition at line 59 of file freebsd.c.
References ARRAY_SIZE, assert(), memcpy(), NULL, and UV__ERR.
uint64_t uv_get_constrained_memory | ( | void | ) |
uint64_t uv_get_total_memory | ( | void | ) |
Definition at line 101 of file freebsd.c.
References ARRAY_SIZE, info(), NULL, UV__ERR, and which.
void uv_loadavg | ( | double | avg[3] | ) |
Definition at line 119 of file freebsd.c.
References ARRAY_SIZE, info(), test-lz4-speed::loadavg, NULL, and which.
int uv_uptime | ( | double * | uptime | ) |
Definition at line 160 of file freebsd.c.