map_symbol.h 713 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: GPL-2.0
  2. #ifndef __PERF_MAP_SYMBOL
  3. #define __PERF_MAP_SYMBOL 1
  4. #include <linux/types.h>
  5. struct thread;
  6. struct maps;
  7. struct map;
  8. struct symbol;
  9. struct map_symbol {
  10. struct thread *thread;
  11. struct map *map;
  12. struct symbol *sym;
  13. };
  14. struct addr_map_symbol {
  15. struct map_symbol ms;
  16. u64 addr;
  17. u64 al_addr;
  18. char al_level;
  19. u64 phys_addr;
  20. u64 data_page_size;
  21. };
  22. void map_symbol__exit(struct map_symbol *ms);
  23. void addr_map_symbol__exit(struct addr_map_symbol *ams);
  24. void map_symbol__copy(struct map_symbol *dst, struct map_symbol *src);
  25. void addr_map_symbol__copy(struct addr_map_symbol *dst, struct addr_map_symbol *src);
  26. #endif // __PERF_MAP_SYMBOL