History

memblock tests: Add skeleton of the memblock simulator

Add basic project files, together with local stubs of required headers. Update tools/include/slab.h to include definitions used by memblock.

Karolina Drobnik committed 4 years ago

Commit 16802e51 parent 621832716 files · +279 −0Browse files

Showing the changes to tools/include/linux (1 of 16 files). Show all

Unified · Split

tools/include/linux/slab.h+10−0
@@ -13,6 +13,16 @@ · 12 unmodified lines
13void *kmalloc(size_t size, gfp_t gfp);13void *kmalloc(size_t size, gfp_t gfp);
14void kfree(void *p);14void kfree(void *p);
15 15
16bool slab_is_available(void);
17
18enum slab_state {
19 DOWN,
20 PARTIAL,
21 PARTIAL_NODE,
22 UP,
23 FULL
24};
25
16static inline void *kzalloc(size_t size, gfp_t gfp)26static inline void *kzalloc(size_t size, gfp_t gfp)
17{27{
18 return kmalloc(size, gfp | __GFP_ZERO);28 return kmalloc(size, gfp | __GFP_ZERO);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t