Merge branches 'x86-build-for-linus', 'x86-cleanups-for-linus' and 'x86-debug-for...
[cascardo/linux.git] / tools / perf / util / vdso.h
1 #ifndef __PERF_VDSO__
2 #define __PERF_VDSO__
3
4 #include <linux/types.h>
5 #include <string.h>
6 #include <stdbool.h>
7
8 #define VDSO__MAP_NAME "[vdso]"
9
10 #define DSO__NAME_VDSO "[vdso]"
11
12 static inline bool is_vdso_map(const char *filename)
13 {
14         return !strcmp(filename, VDSO__MAP_NAME);
15 }
16
17 struct dso;
18
19 bool dso__is_vdso(struct dso *dso);
20
21 struct machine;
22 struct thread;
23
24 struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
25 void vdso__exit(struct machine *machine);
26
27 #endif /* __PERF_VDSO__ */