]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - tools/perf/util/vdso.h
perf probe: Make error messages thread-safe
[mirror_ubuntu-artful-kernel.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
51682dc7
AH
10#define DSO__NAME_VDSO "[vdso]"
11
7dbf4dcf
JO
12static inline bool is_vdso_map(const char *filename)
13{
14 return !strcmp(filename, VDSO__MAP_NAME);
15}
16
51682dc7
AH
17struct dso;
18
19bool dso__is_vdso(struct dso *dso);
20
2a03068c 21struct machine;
5835edda 22struct thread;
2a03068c 23
5835edda 24struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
d027b640 25void vdso__exit(struct machine *machine);
7dbf4dcf
JO
26
27#endif /* __PERF_VDSO__ */