2019-01-28 23:01:47 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
2019-11-28 20:59:11 +01:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
int module_load(const char* path, size_t path_length);
|
|
|
|
|
int module_unload(const char* name, size_t name_length);
|
|
|
|
|
|
2019-12-11 20:36:56 +01:00
|
|
|
int profiling_enable(pid_t);
|
|
|
|
|
int profiling_disable(pid_t);
|
|
|
|
|
|
2019-12-30 18:46:17 +01:00
|
|
|
#define THREAD_PRIORITY_MIN 1
|
|
|
|
|
#define THREAD_PRIORITY_LOW 10
|
|
|
|
|
#define THREAD_PRIORITY_NORMAL 30
|
|
|
|
|
#define THREAD_PRIORITY_HIGH 50
|
|
|
|
|
#define THREAD_PRIORITY_MAX 99
|
|
|
|
|
|
2019-12-30 19:23:13 +01:00
|
|
|
int set_thread_boost(int tid, int amount);
|
2019-12-30 20:10:00 +01:00
|
|
|
int set_process_boost(pid_t, int amount);
|
2019-12-30 19:23:13 +01:00
|
|
|
|
2019-12-22 21:29:47 +01:00
|
|
|
#define FUTEX_WAIT 1
|
|
|
|
|
#define FUTEX_WAKE 2
|
|
|
|
|
|
|
|
|
|
int futex(int32_t* userspace_address, int futex_op, int32_t value, const struct timespec* timeout);
|
|
|
|
|
|
2020-01-02 13:37:02 +01:00
|
|
|
#define PURGE_ALL_VOLATILE 0x1
|
|
|
|
|
#define PURGE_ALL_CLEAN_INODE 0x2
|
|
|
|
|
|
|
|
|
|
int purge(int mode);
|
|
|
|
|
|
2019-11-28 20:59:11 +01:00
|
|
|
__END_DECLS
|