2012-09-10 16:50:19 +00:00
|
|
|
#ifndef __PERF_VDSO__
|
|
|
|
#define __PERF_VDSO__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#define VDSO__MAP_NAME "[vdso]"
|
|
|
|
|
2014-10-23 10:45:23 +00:00
|
|
|
#define DSO__NAME_VDSO "[vdso]"
|
|
|
|
#define DSO__NAME_VDSO32 "[vdso32]"
|
|
|
|
#define DSO__NAME_VDSOX32 "[vdsox32]"
|
2014-07-22 13:17:57 +00:00
|
|
|
|
2012-09-10 16:50:19 +00:00
|
|
|
static inline bool is_vdso_map(const char *filename)
|
|
|
|
{
|
|
|
|
return !strcmp(filename, VDSO__MAP_NAME);
|
|
|
|
}
|
|
|
|
|
2014-07-22 13:17:57 +00:00
|
|
|
struct dso;
|
|
|
|
|
|
|
|
bool dso__is_vdso(struct dso *dso);
|
|
|
|
|
2014-07-22 13:17:53 +00:00
|
|
|
struct machine;
|
2014-07-22 13:18:00 +00:00
|
|
|
struct thread;
|
2014-07-22 13:17:53 +00:00
|
|
|
|
2014-07-22 13:18:00 +00:00
|
|
|
struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
|
2014-07-23 11:23:00 +00:00
|
|
|
void vdso__exit(struct machine *machine);
|
2012-09-10 16:50:19 +00:00
|
|
|
|
|
|
|
#endif /* __PERF_VDSO__ */
|