blob: bc74ace603ae701cadb32e0e9041bf05e0fc50c7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +02002#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
Adrian Hunterf6832e172014-10-23 13:45:23 +030011#define DSO__NAME_VDSO "[vdso]"
12#define DSO__NAME_VDSO32 "[vdso32]"
13#define DSO__NAME_VDSOX32 "[vdsox32]"
Adrian Hunter51682dc2014-07-22 16:17:57 +030014
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +020015static inline bool is_vdso_map(const char *filename)
16{
17 return !strcmp(filename, VDSO__MAP_NAME);
18}
19
Adrian Hunter51682dc2014-07-22 16:17:57 +030020struct dso;
21
22bool dso__is_vdso(struct dso *dso);
23
Adrian Hunter2a030682014-07-22 16:17:53 +030024struct machine;
Adrian Hunter5835edd2014-07-22 16:18:00 +030025struct thread;
Adrian Hunter2a030682014-07-22 16:17:53 +030026
Arnaldo Carvalho de Melo9a4388c2015-05-29 11:54:08 -030027struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
28void machine__exit_vdso(struct machine *machine);
Jiri Olsa7dbf4dc2012-09-10 18:50:19 +020029
30#endif /* __PERF_VDSO__ */