9ab0738b6752b1fb8c9aafdd677a84c6cda11145
[firefly-linux-kernel-4.4.55.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 static inline bool is_vdso_map(const char *filename)
11 {
12         return !strcmp(filename, VDSO__MAP_NAME);
13 }
14
15 struct machine;
16
17 struct dso *vdso__dso_findnew(struct machine *machine);
18 void vdso__exit(void);
19
20 #endif /* __PERF_VDSO__ */