Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jiri Olsa | 7dbf4dc | 2012-09-10 18:50:19 +0200 | [diff] [blame] | 2 | #ifndef __PERF_VDSO__ |
| 3 | #define __PERF_VDSO__ |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | #include <string.h> |
| 7 | #include <stdbool.h> |
| 8 | |
| 9 | #define VDSO__MAP_NAME "[vdso]" |
| 10 | |
Adrian Hunter | f6832e17 | 2014-10-23 13:45:23 +0300 | [diff] [blame] | 11 | #define DSO__NAME_VDSO "[vdso]" |
| 12 | #define DSO__NAME_VDSO32 "[vdso32]" |
| 13 | #define DSO__NAME_VDSOX32 "[vdsox32]" |
Adrian Hunter | 51682dc | 2014-07-22 16:17:57 +0300 | [diff] [blame] | 14 | |
Jiri Olsa | 7dbf4dc | 2012-09-10 18:50:19 +0200 | [diff] [blame] | 15 | static inline bool is_vdso_map(const char *filename) |
| 16 | { |
| 17 | return !strcmp(filename, VDSO__MAP_NAME); |
| 18 | } |
| 19 | |
Adrian Hunter | 51682dc | 2014-07-22 16:17:57 +0300 | [diff] [blame] | 20 | struct dso; |
| 21 | |
| 22 | bool dso__is_vdso(struct dso *dso); |
| 23 | |
Adrian Hunter | 2a03068 | 2014-07-22 16:17:53 +0300 | [diff] [blame] | 24 | struct machine; |
Adrian Hunter | 5835edd | 2014-07-22 16:18:00 +0300 | [diff] [blame] | 25 | struct thread; |
Adrian Hunter | 2a03068 | 2014-07-22 16:17:53 +0300 | [diff] [blame] | 26 | |
Arnaldo Carvalho de Melo | 9a4388c | 2015-05-29 11:54:08 -0300 | [diff] [blame] | 27 | struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread); |
| 28 | void machine__exit_vdso(struct machine *machine); |
Jiri Olsa | 7dbf4dc | 2012-09-10 18:50:19 +0200 | [diff] [blame] | 29 | |
| 30 | #endif /* __PERF_VDSO__ */ |