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