6b13f685e
김민수
BSP 최초 추가
|
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#ifndef _LINUX_SLUB_DEF_H
#define _LINUX_SLUB_DEF_H
#include <linux/kobject.h>
enum stat_item {
ALLOC_FASTPATH,
ALLOC_SLOWPATH,
FREE_FASTPATH,
FREE_SLOWPATH,
FREE_FROZEN,
FREE_ADD_PARTIAL,
FREE_REMOVE_PARTIAL,
ALLOC_FROM_PARTIAL,
ALLOC_SLAB,
ALLOC_REFILL,
ALLOC_NODE_MISMATCH,
FREE_SLAB,
CPUSLAB_FLUSH,
DEACTIVATE_FULL,
DEACTIVATE_EMPTY,
DEACTIVATE_TO_HEAD,
DEACTIVATE_TO_TAIL,
DEACTIVATE_REMOTE_FREES,
DEACTIVATE_BYPASS,
ORDER_FALLBACK,
CMPXCHG_DOUBLE_CPU_FAIL,
CMPXCHG_DOUBLE_FAIL,
CPU_PARTIAL_ALLOC,
CPU_PARTIAL_FREE,
CPU_PARTIAL_NODE,
CPU_PARTIAL_DRAIN,
NR_SLUB_STAT_ITEMS };
struct kmem_cache_cpu {
void **freelist;
unsigned long tid;
struct page *page;
struct page *partial;
#ifdef CONFIG_SLUB_STATS
unsigned stat[NR_SLUB_STAT_ITEMS];
#endif
};
struct kmem_cache_order_objects {
unsigned long x;
};
struct kmem_cache {
struct kmem_cache_cpu __percpu *cpu_slab;
unsigned long flags;
unsigned long min_partial;
int size;
int object_size;
int offset;
int cpu_partial;
struct kmem_cache_order_objects oo;
struct kmem_cache_order_objects max;
struct kmem_cache_order_objects min;
gfp_t allocflags;
int refcount;
void (*ctor)(void *);
int inuse;
int align;
int reserved;
const char *name;
struct list_head list;
#ifdef CONFIG_SYSFS
struct kobject kobj;
#endif
#ifdef CONFIG_MEMCG_KMEM
struct memcg_cache_params *memcg_params;
int max_attr_size;
#endif
#ifdef CONFIG_NUMA
int remote_node_defrag_ratio;
#endif
struct kmem_cache_node *node[MAX_NUMNODES];
};
#endif /* _LINUX_SLUB_DEF_H */
|