mem2node.h 383 B

12345678910111213141516171819
  1. #ifndef __MEM2NODE_H
  2. #define __MEM2NODE_H
  3. #include <linux/rbtree.h>
  4. #include "env.h"
  5. struct phys_entry;
  6. struct mem2node {
  7. struct rb_root root;
  8. struct phys_entry *entries;
  9. int cnt;
  10. };
  11. int mem2node__init(struct mem2node *map, struct perf_env *env);
  12. void mem2node__exit(struct mem2node *map);
  13. int mem2node__node(struct mem2node *map, u64 addr);
  14. #endif /* __MEM2NODE_H */