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
1313 void *kmalloc(size_t size, gfp_t gfp);
1414 void kfree(void *p);
1515
16+bool slab_is_available(void);
17+
18+enum slab_state {
19+ DOWN,
20+ PARTIAL,
21+ PARTIAL_NODE,
22+ UP,
23+ FULL
24+};
25+
1626 static inline void *kzalloc(size_t size, gfp_t gfp)
1727 {
1828 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