this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update mach/task_info.h

+32 -2
+32 -2
platform-include/mach/task_info.h
··· 1 1 /* 2 - * Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2 + * Copyright (c) 2000-2007, 2015 Apple Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 5 * ··· 321 321 mach_vm_size_t compressed; 322 322 mach_vm_size_t compressed_peak; 323 323 mach_vm_size_t compressed_lifetime; 324 + 325 + /* added for rev1 */ 326 + mach_vm_size_t phys_footprint; 327 + 328 + /* added for rev2 */ 329 + mach_vm_address_t min_address; 330 + mach_vm_address_t max_address; 324 331 }; 325 332 typedef struct task_vm_info task_vm_info_data_t; 326 333 typedef struct task_vm_info *task_vm_info_t; 327 334 #define TASK_VM_INFO_COUNT ((mach_msg_type_number_t) \ 328 335 (sizeof (task_vm_info_data_t) / sizeof (natural_t))) 329 - 336 + #define TASK_VM_INFO_REV2_COUNT TASK_VM_INFO_COUNT 337 + #define TASK_VM_INFO_REV1_COUNT /* doesn't include min and max address */ \ 338 + ((mach_msg_type_number_t) (TASK_VM_INFO_REV2_COUNT - 4)) 339 + #define TASK_VM_INFO_REV0_COUNT /* doesn't include phys_footprint */ \ 340 + ((mach_msg_type_number_t) (TASK_VM_INFO_REV1_COUNT - 2)) 330 341 331 342 typedef struct vm_purgeable_info task_purgable_info_t; 332 343 ··· 373 384 #define TASK_POWER_INFO_V2_COUNT ((mach_msg_type_number_t) \ 374 385 (sizeof (task_power_info_v2_data_t) / sizeof (natural_t))) 375 386 387 + 388 + #define TASK_VM_INFO_PURGEABLE_ACCOUNT 27 /* Used for xnu purgeable vm unit tests */ 389 + 390 + 391 + #define TASK_FLAGS_INFO 28 /* return t_flags field */ 392 + struct task_flags_info { 393 + uint32_t flags; /* task flags */ 394 + }; 395 + typedef struct task_flags_info task_flags_info_data_t; 396 + typedef struct task_flags_info * task_flags_info_t; 397 + #define TASK_FLAGS_INFO_COUNT ((mach_msg_type_number_t) \ 398 + (sizeof(task_flags_info_data_t) / sizeof (natural_t))) 399 + 400 + #define TF_LP64 0x00000001 /* task has 64-bit addressing */ 401 + 402 + #define TASK_DEBUG_INFO_INTERNAL 29 /* Used for kernel internal development tests. */ 403 + 404 + 376 405 /* 377 406 * Obsolete interfaces. 378 407 */ ··· 386 415 #pragma pack() 387 416 388 417 #endif /* _MACH_TASK_INFO_H_ */ 418 +