addr_location.h 763 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __PERF_ADDR_LOCATION
  3. #define __PERF_ADDR_LOCATION 1
  4. #include <linux/types.h>
  5. struct thread;
  6. struct maps;
  7. struct map;
  8. struct symbol;
  9. struct addr_location {
  10. struct thread *thread;
  11. struct map *map;
  12. struct symbol *sym;
  13. const char *srcline;
  14. u64 addr;
  15. char level;
  16. u8 cpumode;
  17. u16 filtered;
  18. s32 cpu;
  19. s32 socket;
  20. /* Same as machine.parallelism but within [1, nr_cpus]. */
  21. int parallelism;
  22. /* See he_stat.latency. */
  23. u64 latency;
  24. };
  25. void addr_location__init(struct addr_location *al);
  26. void addr_location__exit(struct addr_location *al);
  27. void addr_location__copy(struct addr_location *dst, struct addr_location *src);
  28. #endif /* __PERF_ADDR_LOCATION */