WIP FPC-III support
[linux/fpc-iii.git] / tools / perf / util / mem2node.h
blob8dfa2b58d0cd06beb67b811343469548814f2187
1 #ifndef __MEM2NODE_H
2 #define __MEM2NODE_H
4 #include <linux/rbtree.h>
5 #include <linux/types.h>
7 struct perf_env;
8 struct phys_entry;
10 struct mem2node {
11 struct rb_root root;
12 struct phys_entry *entries;
13 int cnt;
16 int mem2node__init(struct mem2node *map, struct perf_env *env);
17 void mem2node__exit(struct mem2node *map);
18 int mem2node__node(struct mem2node *map, u64 addr);
20 #endif /* __MEM2NODE_H */