-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharc_snapshot.h
65 lines (59 loc) · 1.21 KB
/
arc_snapshot.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
#include <assert.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
typedef struct {
int hits;
int misses;
int demand_data_hits;
int demand_data_misses;
int demand_metadata_hits;
int demand_metadata_misses;
int prefetch_data_hits;
int prefetch_data_misses;
int prefetch_metadata_hits;
int prefetch_metadata_misses;
int mru_hits;
int mru_ghost_hits;
int mfu_hits;
int mfu_ghost_hits;
int deleted;
int mutex_miss;
int access_skip;
int evict_skip;
int evict_not_enough;
int evict_l2_cached;
int evict_l2_eligible;
int evict_l2_eligible_mfu;
int evict_l2_eligible_mru;
int evict_l2_ineligible;
int evict_l2_skip;
int hash_elements;
int hash_elements_max;
int hash_collisions;
int hash_chains;
int hash_chain_max;
int p;
int c;
int c_min;
int c_max;
} arc_snapshot;
typedef struct {
char name[100];
int value;
} arc_value;
arc_snapshot *get_kstat_snapshot();