1 #ifndef __MEM2NODE_H 1 #ifndef __MEM2NODE_H 2 #define __MEM2NODE_H 2 #define __MEM2NODE_H 3 3 4 #include <linux/rbtree.h> 4 #include <linux/rbtree.h> 5 #include <linux/types.h> !! 5 #include "env.h" 6 6 7 struct perf_env; << 8 struct phys_entry; 7 struct phys_entry; 9 8 10 struct mem2node { 9 struct mem2node { 11 struct rb_root root; 10 struct rb_root root; 12 struct phys_entry *entries; 11 struct phys_entry *entries; 13 int cnt; 12 int cnt; 14 }; 13 }; 15 14 16 int mem2node__init(struct mem2node *map, stru 15 int mem2node__init(struct mem2node *map, struct perf_env *env); 17 void mem2node__exit(struct mem2node *map); 16 void mem2node__exit(struct mem2node *map); 18 int mem2node__node(struct mem2node *map, u64 17 int mem2node__node(struct mem2node *map, u64 addr); 19 18 20 #endif /* __MEM2NODE_H */ 19 #endif /* __MEM2NODE_H */ 21 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.