0001
0002 #ifndef __PERF_VDSO__
0003 #define __PERF_VDSO__
0004
0005 #include <linux/types.h>
0006 #include <string.h>
0007 #include <stdbool.h>
0008
0009 #define VDSO__MAP_NAME "[vdso]"
0010
0011 #define DSO__NAME_VDSO "[vdso]"
0012 #define DSO__NAME_VDSO32 "[vdso32]"
0013 #define DSO__NAME_VDSOX32 "[vdsox32]"
0014
0015 static inline bool is_vdso_map(const char *filename)
0016 {
0017 return !strcmp(filename, VDSO__MAP_NAME);
0018 }
0019
0020 struct dso;
0021
0022 bool dso__is_vdso(struct dso *dso);
0023
0024 struct machine;
0025 struct thread;
0026
0027 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
0028 void machine__exit_vdso(struct machine *machine);
0029
0030 #endif