blob: cdc4fabfc2124efa9c2c497dc35a5f6b77840a85 [file] [log] [blame]
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +02001#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
Adrian Hunterf6832e172014-10-23 13:45:23 +030010#define DSO__NAME_VDSO "[vdso]"
11#define DSO__NAME_VDSO32 "[vdso32]"
12#define DSO__NAME_VDSOX32 "[vdsox32]"
Adrian Hunter51682dc2014-07-22 16:17:57 +030013
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +020014static inline bool is_vdso_map(const char *filename)
15{
16 return !strcmp(filename, VDSO__MAP_NAME);
17}
18
Adrian Hunter51682dc2014-07-22 16:17:57 +030019struct dso;
20
21bool dso__is_vdso(struct dso *dso);
22
Adrian Hunter2a030682014-07-22 16:17:53 +030023struct machine;
Adrian Hunter5835edd2014-07-22 16:18:00 +030024struct thread;
Adrian Hunter2a030682014-07-22 16:17:53 +030025
Arnaldo Carvalho de Melo9a4388c2015-05-29 11:54:08 -030026struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
27void machine__exit_vdso(struct machine *machine);
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +020028
29#endif /* __PERF_VDSO__ */