blob: d97da1616f0c5b658d8c1846b0285835b3a3478c [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
Adrian Hunter5835edd2014-07-22 16:18:00 +030026struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
Adrian Hunterd027b642014-07-23 14:23:00 +030027void vdso__exit(struct machine *machine);
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +020028
29#endif /* __PERF_VDSO__ */