authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:04:04-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 11:04:04-07:00
log942848de582f3b8bd81dc71d67190cee44e68c7c
tree951842b30dd837f5bc8a1a18590294d9b4d1efcb
parent0043cdbecad72993214fa58b69767eba2a4fa189

Revert "std.c: adding basic darwin's host_statistics data."

This reverts commit 6547d233125199b16644c0f7504793490af67926.

1 files changed, 0 insertions(+), 56 deletions(-)

lib/std/c/darwin.zig-56
......@@ -3994,9 +3994,6 @@ pub const HOST = struct {
39943994 pub const DEBUG_INFO_INTERNAL = 10;
39953995 pub const CAN_HAS_DEBUGGER = 11;
39963996 pub const PREFERRED_USER_ARCH = 12;
3997 pub const LOAD_INFO = 1;
3998 pub const VM_INFO = 2;
3999 pub const CPU_LOAD_INFO = 3;
40003997 pub const CAN_HAS_DEBUGGER_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_can_has_debugger_info_data_t) / @sizeOf(integer_t));
40013998 pub const SCHED_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_sched_info_data_t) / @sizeOf(integer_t));
40023999 pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t));
......@@ -4004,7 +4001,6 @@ pub const HOST = struct {
40044001 pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t));
40054002 pub const LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_load_info_data_t) / @sizeOf(integer_t));
40064003 pub const PREFERRED_USER_ARCH_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_preferred_user_arch_data_t) / @sizeOf(integer_t));
4007 pub const VM_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(vm_statistics_data_t) / @sizeOf(integer_t));
40084004};
40094005
40104006pub const host_basic_info = packed struct(u32) {
......@@ -4022,55 +4018,3 @@ pub const host_basic_info = packed struct(u32) {
40224018};
40234019
40244020pub extern "c" fn host_info(host: host_t, flavor: host_flavor_t, info_out: host_info_t, info_outCnt: [*]mach_msg_type_number_t) kern_return_t;
4025pub extern "c" fn host_statistics(priv: host_t, flavor: host_flavor_t, info_out: host_info_t, info_outCnt: [*]mach_msg_type_number_t) kern_return_t;
4026
4027pub const vm_statistics = extern struct {
4028 free_count: natural_t,
4029 active_count: natural_t,
4030 inactive_count: natural_t,
4031 wire_count: natural_t,
4032 zero_fill_count: natural_t,
4033 reactivations: natural_t,
4034 pageins: natural_t,
4035 pageouts: natural_t,
4036 faults: natural_t,
4037 cow_faults: natural_t,
4038 lookups: natural_t,
4039 hits: natural_t,
4040 purgeable_count: natural_t,
4041 purges: natural_t,
4042 speculative_count: natural_t,
4043};
4044
4045pub const vm_statistics_t = *vm_statistics;
4046pub const vm_statistics_data_t = vm_statistics;
4047
4048pub const vm_statistics64 align(8) = extern struct {
4049 free_count: natural_t,
4050 active_count: natural_t,
4051 inactive_count: natural_t,
4052 wire_count: natural_t,
4053 zero_fill_count: u64,
4054 reactivations: u64,
4055 pageins: u64,
4056 pageouts: u64,
4057 faults: u64,
4058 cow_faults: u64,
4059 lookups: u64,
4060 hits: u64,
4061 purges: u64,
4062 purgeable_count: natural_t,
4063 speculative_count: natural_t,
4064 decompressions: u64,
4065 compressions: u64,
4066 swapins: u64,
4067 swapouts: u64,
4068 compressor_page_count: natural_t,
4069 throttled_count: natural_t,
4070 external_page_count: natural_t,
4071 internal_page_count: natural_t,
4072 total_uncompressed_pages_in_compressor: u64,
4073};
4074
4075pub const vm_statistics64_t = *vm_statistics64;
4076pub const vm_statistics64_data_t = vm_statistics64;