-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathevtloop.h
72 lines (65 loc) · 1.57 KB
/
evtloop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*-
* xnumon - monitor macOS for malicious activity
* https://www.roe.ch/xnumon
*
* Copyright (c) 2017-2019, Daniel Roethlisberger <[email protected]>.
* All rights reserved.
*
* Licensed under the Open Software License version 3.0.
*/
#ifndef EVTLOOP_H
#define EVTLOOP_H
#include "config.h"
#include "kqueue.h"
#include "aupipe.h"
#include "kextctl.h"
#include "procmon.h"
#include "hackmon.h"
#include "filemon.h"
#include "sockmon.h"
#include "log.h"
#include "work.h"
#include "cachehash.h"
#include "cachecsig.h"
#include "cacheldpl.h"
#include "logevt.h"
#include "attrib.h"
typedef struct {
logevt_header_t hdr;
procmon_stat_t pm;
hackmon_stat_t hm;
filemon_stat_t fm;
sockmon_stat_t sm;
xnumon_stat_t ke;
uint64_t el_aueunknowns;
uint64_t el_aupclobbers;
uint64_t el_failedsyscalls;
uint64_t el_radar38845422_fatal;
uint64_t el_radar38845422;
uint64_t el_radar38845784;
uint64_t el_radar39267328_fatal;
uint64_t el_radar39267328;
uint64_t el_radar39623812_fatal;
uint64_t el_radar39623812;
uint64_t el_radar42770257_fatal;
uint64_t el_radar42770257;
uint64_t el_radar42783724_fatal;
uint64_t el_radar42783724;
uint64_t el_radar42784847_fatal;
uint64_t el_radar42784847;
uint64_t el_radar42946744_fatal;
uint64_t el_radar42946744;
uint64_t el_radar43151662_fatal;
uint64_t el_radar43151662;
uint64_t el_missingtoken;
uint64_t el_ooms;
aupipe_stat_t ap;
work_stat_t wq;
log_stat_t lq;
lrucache_stat_t ch;
lrucache_stat_t cc;
lrucache_stat_t cl;
} evtloop_stat_t;
int evtloop_run(config_t *) NONNULL(1);
void evtloop_stats(evtloop_stat_t *) NONNULL(1);
#endif