kernel: scheduling fix for ARM
[minix.git] / commands / swifi / swifi-user.h
blob995112df64182db14ee65056b226b2c485697425
1 #ifndef _SWIFI_USER_H
2 #define _SWIFI_USER_H
5 #define TEXT_FAULT 0
6 #define STACK_FAULT 1
7 #define HEAP_FAULT 2
8 #define INIT_FAULT 3
9 #define NOP_FAULT 4
10 #define DST_FAULT 5
11 #define SRC_FAULT 6
12 #define BRANCH_FAULT 7
13 #define PTR_FAULT 8
14 #define FREE_FAULT 9
15 #define BCOPY_FAULT 10
16 #define SYNC_FAULT 11
17 #define LOOP_FAULT 12
18 #define MEM_LEAK_FAULT 13
19 #define INTERFACE_FAULT 14
20 #define DIRECT_FAULT 15
21 #define DIRECT_FAULT1 16
22 #define STATS 17
23 #define WP_FAULT 19
24 #define PANIC_FAULT 20
25 #define WHILE1_FAULT 21
26 #define DEBUGGER_FAULT 22
27 #define CPU_RESET_FAULT 23
28 #define PAGE_REG_DUMP 24
29 #define COW_FAULT 25
30 #define IRQ_FAULT 26
31 #define ALLOC_FAULT 27
32 #define DISK_TEST 100
35 #define SWIFI_MAX_FAULTS 1000
37 typedef struct swifi_result {
38 unsigned long address;
39 unsigned long old;
40 unsigned long new;
41 } swifi_result_t, *pswifi_result_t;
43 long
44 sys_inject_fault(char * module,
45 unsigned long argFaultType,
46 unsigned long argRandomSeed,
47 unsigned long argNumFaults,
48 pswifi_result_t result_record,
49 unsigned long argInjectFault);
52 #endif /* _SWIFI_USER_H */