2012-09-10 23:50:19 +07: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 17:45:23 +07:00
|
|
|
#define DSO__NAME_VDSO "[vdso]"
|
|
|
|
#define DSO__NAME_VDSO32 "[vdso32]"
|
|
|
|
#define DSO__NAME_VDSOX32 "[vdsox32]"
|
2014-07-22 20:17:57 +07:00
|
|
|
|
2012-09-10 23:50:19 +07:00
|
|
|
static inline bool is_vdso_map(const char *filename)
|
|
|
|
{
|
|
|
|
return !strcmp(filename, VDSO__MAP_NAME);
|
|
|
|
}
|
|
|
|
|
2014-07-22 20:17:57 +07:00
|
|
|
struct dso;
|
|
|
|
|
|
|
|
bool dso__is_vdso(struct dso *dso);
|
|
|
|
|
2014-07-22 20:17:53 +07:00
|
|
|
struct machine;
|
2014-07-22 20:18:00 +07:00
|
|
|
struct thread;
|
2014-07-22 20:17:53 +07:00
|
|
|
|
2014-07-22 20:18:00 +07:00
|
|
|
struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
|
2014-07-23 18:23:00 +07:00
|
|
|
void vdso__exit(struct machine *machine);
|
2012-09-10 23:50:19 +07:00
|
|
|
|
|
|
|
#endif /* __PERF_VDSO__ */
|