
This is preparation for removing the global variables used in vdso.c and thereby fixing the lifetime of the VDSO temporary file. Reviewed-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1406035081-14301-45-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
21 lines
370 B
C
21 lines
370 B
C
#ifndef __PERF_VDSO__
|
|
#define __PERF_VDSO__
|
|
|
|
#include <linux/types.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
#define VDSO__MAP_NAME "[vdso]"
|
|
|
|
static inline bool is_vdso_map(const char *filename)
|
|
{
|
|
return !strcmp(filename, VDSO__MAP_NAME);
|
|
}
|
|
|
|
struct machine;
|
|
|
|
struct dso *vdso__dso_findnew(struct machine *machine);
|
|
void vdso__exit(void);
|
|
|
|
#endif /* __PERF_VDSO__ */
|