vdso.h 639 B

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