vdso.h 510 B

123456789101112131415161718192021222324252627
  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. static inline bool is_vdso_map(const char *filename)
  9. {
  10. return !strcmp(filename, VDSO__MAP_NAME);
  11. }
  12. struct dso;
  13. bool dso__is_vdso(struct dso *dso);
  14. struct machine;
  15. struct thread;
  16. struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
  17. void vdso__exit(struct machine *machine);
  18. #endif /* __PERF_VDSO__ */