mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
radix tree test suite: Add config option for map shift
Add config option "SHIFT=<value>" to Makefile for building test suite with any value of RADIX_TREE_MAP_SHIFT between 3 and 7 inclusive. Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> [mawilcox@microsoft.com: .gitignore, quieten grep, remove on clean] Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
This commit is contained in:
parent
7e73eb0b2d
commit
c6ce3e2fe3
4 changed files with 16 additions and 11 deletions
|
@ -12,12 +12,6 @@
|
|||
#include <linux/log2.h>
|
||||
#include "../../../include/linux/kconfig.h"
|
||||
|
||||
#ifdef BENCHMARK
|
||||
#define RADIX_TREE_MAP_SHIFT 6
|
||||
#else
|
||||
#define RADIX_TREE_MAP_SHIFT 3
|
||||
#endif
|
||||
|
||||
#define printk printf
|
||||
#define pr_debug printk
|
||||
#define pr_cont printk
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#ifndef _TEST_RADIX_TREE_H
|
||||
#define _TEST_RADIX_TREE_H
|
||||
|
||||
#include "generated/map-shift.h"
|
||||
#include "../../../../include/linux/radix-tree.h"
|
||||
|
||||
extern int kmalloc_verbose;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue