mem2node.h 408 B

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