blob: 59c4752a2181530f0a571c806199fc68e0e9d809 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001#ifndef __MEM2NODE_H
2#define __MEM2NODE_H
3
4#include <linux/rbtree.h>
5#include "env.h"
6
7struct phys_entry;
8
9struct mem2node {
10 struct rb_root root;
11 struct phys_entry *entries;
12 int cnt;
13};
14
15int mem2node__init(struct mem2node *map, struct perf_env *env);
16void mem2node__exit(struct mem2node *map);
17int mem2node__node(struct mem2node *map, u64 addr);
18
19#endif /* __MEM2NODE_H */