vdso.h 600 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __PERF_VDSO__
  2. #define __PERF_VDSO__
  3. #include <linux/types.h>
  4. #include <string.h>
  5. #include <stdbool.h>
  6. #define VDSO__MAP_NAME "[vdso]"
  7. #define DSO__NAME_VDSO "[vdso]"
  8. #define DSO__NAME_VDSO32 "[vdso32]"
  9. #define DSO__NAME_VDSOX32 "[vdsox32]"
  10. static inline bool is_vdso_map(const char *filename)
  11. {
  12. return !strcmp(filename, VDSO__MAP_NAME);
  13. }
  14. struct dso;
  15. bool dso__is_vdso(struct dso *dso);
  16. struct machine;
  17. struct thread;
  18. struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
  19. void machine__exit_vdso(struct machine *machine);
  20. #endif /* __PERF_VDSO__ */