Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[linux-2.6-block.git] / tools / perf / util / vdso.h
CommitLineData
7dbf4dcf
JO
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
f6832e17
AH
10#define DSO__NAME_VDSO "[vdso]"
11#define DSO__NAME_VDSO32 "[vdso32]"
12#define DSO__NAME_VDSOX32 "[vdsox32]"
51682dc7 13
7dbf4dcf
JO
14static inline bool is_vdso_map(const char *filename)
15{
16 return !strcmp(filename, VDSO__MAP_NAME);
17}
18
51682dc7
AH
19struct dso;
20
21bool dso__is_vdso(struct dso *dso);
22
2a03068c 23struct machine;
5835edda 24struct thread;
2a03068c 25
9a4388c7
ACM
26struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
27void machine__exit_vdso(struct machine *machine);
7dbf4dcf
JO
28
29#endif /* __PERF_VDSO__ */