Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
[linux-2.6-block.git] / tools / perf / util / mem2node.h
CommitLineData
4acf6142
JO
1#ifndef __MEM2NODE_H
2#define __MEM2NODE_H
3
4#include <linux/rbtree.h>
b6b5574b 5#include <linux/types.h>
4acf6142 6
b6b5574b 7struct perf_env;
4acf6142
JO
8struct phys_entry;
9
10struct mem2node {
11 struct rb_root root;
12 struct phys_entry *entries;
13 int cnt;
14};
15
16int mem2node__init(struct mem2node *map, struct perf_env *env);
17void mem2node__exit(struct mem2node *map);
18int mem2node__node(struct mem2node *map, u64 addr);
19
20#endif /* __MEM2NODE_H */