kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).
This commit is contained in:
Pawel Dziepak
2013-12-16 04:53:46 +01:00
parent 1bc7045fdf
commit d02aaee17e
15 changed files with 55 additions and 106 deletions
-2
View File
@@ -521,8 +521,6 @@ extern status_t _kern_get_cpu_topology_info(
cpu_topology_node_info* topologyInfos,
uint32* topologyInfoCount);
extern status_t _kern_get_system_info_etc(int32 id, void *buffer,
size_t bufferSize);
extern status_t _kern_analyze_scheduling(bigtime_t from, bigtime_t until,
void* buffer, size_t size,
struct scheduling_analysis* analysis);
-16
View File
@@ -9,21 +9,6 @@
#include <OS.h>
#define B_MEMORY_INFO 'memo'
struct system_memory_info {
uint64 max_memory;
uint64 free_memory;
uint64 needed_memory;
uint64 max_swap_space;
uint64 free_swap_space;
uint64 block_cache_memory;
uint32 page_faults;
// TODO: add active/inactive page counts, swap in/out, ...
};
enum {
// team creation or deletion; object == -1; either one also triggers on
// exec()
@@ -67,7 +52,6 @@ status_t __get_system_info(system_info* info);
status_t __get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info);
status_t __get_cpu_topology_info(cpu_topology_node_info* topologyInfos,
uint32* topologyInfoCount);
status_t __get_system_info_etc(int32 id, void* buffer, size_t bufferSize);
status_t __start_watching_system(int32 object, uint32 flags, port_id port,
int32 token);