Root/
Source at commit 1319 created 12 years 11 months ago. By meklort, Makefile update | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 2007 Apple Inc. All rights reserved.␊ |
3 | */␊ |
4 | /*␊ |
5 | * FILE_ID: processor_info.h␊ |
6 | */␊ |
7 | ␊ |
8 | #ifndef _MACH_ARM_PROCESSOR_INFO_H_␊ |
9 | #define _MACH_ARM_PROCESSOR_INFO_H_␊ |
10 | ␊ |
11 | #define PROCESSOR_CPU_STAT␉0x10000003␉/* Low level cpu statistics */␊ |
12 | ␊ |
13 | struct processor_cpu_stat {␊ |
14 | ␉uint32_t␉irq_ex_cnt;␊ |
15 | ␉uint32_t␉ipi_cnt;␊ |
16 | ␉uint32_t␉timer_cnt;␊ |
17 | ␉uint32_t␉undef_ex_cnt;␊ |
18 | ␉uint32_t␉unaligned_cnt;␊ |
19 | ␉uint32_t␉vfp_cnt;␊ |
20 | ␉uint32_t␉data_ex_cnt;␊ |
21 | ␉uint32_t␉instr_ex_cnt;␊ |
22 | };␊ |
23 | ␊ |
24 | typedef␉struct processor_cpu_stat␉processor_cpu_stat_data_t;␊ |
25 | typedef struct processor_cpu_stat␉*processor_cpu_stat_t;␊ |
26 | #define PROCESSOR_CPU_STAT_COUNT␉((mach_msg_type_number_t) \␊ |
27 | ␉␉(sizeof(processor_cpu_stat_data_t)/sizeof(natural_t)))␊ |
28 | ␊ |
29 | ␊ |
30 | #endif /* _MACH_ARM_PROCESSOR_INFO_H_ */␊ |
31 |