]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/perf/util/vdso.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / vdso.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
7dbf4dcf
JO
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
f6832e17
AH
11#define DSO__NAME_VDSO "[vdso]"
12#define DSO__NAME_VDSO32 "[vdso32]"
13#define DSO__NAME_VDSOX32 "[vdsox32]"
51682dc7 14
7dbf4dcf
JO
15static inline bool is_vdso_map(const char *filename)
16{
17 return !strcmp(filename, VDSO__MAP_NAME);
18}
19
51682dc7
AH
20struct dso;
21
22bool dso__is_vdso(struct dso *dso);
23
2a03068c 24struct machine;
5835edda 25struct thread;
2a03068c 26
9a4388c7
ACM
27struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
28void machine__exit_vdso(struct machine *machine);
7dbf4dcf
JO
29
30#endif /* __PERF_VDSO__ */