[CRIU] [PATCH 4/4] Add initial AArch64 VDSO definitions

Alexander Kartashov alekskartashov at parallels.com
Wed Apr 9 08:19:28 PDT 2014


On 04/09/2014 07:13 PM, Christopher Covington wrote:
> Based on the x86_64 definitions, filtered to just those functions
> provided by the 3.13 arm64 Linux kernel port.
>
> Signed-off-by: Christopher Covington <cov at codeaurora.org>
> ---
>   arch/aarch64/include/asm/vdso.h | 29 +++++++++++++++++++++++++++++
>   1 file changed, 29 insertions(+)
I presume I may incorporate these changes (#3 and #4)
into the upcoming AArch64 patch?
>
> diff --git a/arch/aarch64/include/asm/vdso.h b/arch/aarch64/include/asm/vdso.h
> index a702471..83d4d1d 100644
> --- a/arch/aarch64/include/asm/vdso.h
> +++ b/arch/aarch64/include/asm/vdso.h
> @@ -5,6 +5,35 @@
>   
>   #include "protobuf/vma.pb-c.h"
>   
> +
> +/*
> + * This is a minimal amount of symbols
> + * we should support at the moment.
> + */
> +enum {
> +	VDSO_SYMBOL_CLOCK_GETTIME,
> +	VDSO_SYMBOL_GETTIMEOFDAY,
> +
> +	VDSO_SYMBOL_MAX
> +};
> +
> +#define VDSO_SYMBOL_CLOCK_GETTIME_NAME	"__kernel_clock_gettime"
> +#define VDSO_SYMBOL_GETTIMEOFDAY_NAME	"__kernel_gettimeofday"
> +
> +
> +#define DECLARE_VDSO(ident_name, symtab_name)					\
> +										\
> +char ident_name[] = {								\
> +	0x7f, 0x45, 0x4c, 0x46, 0x02, 0x01, 0x01, 0x00,				\
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,				\
> +};										\
> +										\
> +char *symtab_name[VDSO_SYMBOL_MAX] = {						\
> +	[VDSO_SYMBOL_CLOCK_GETTIME]	= VDSO_SYMBOL_CLOCK_GETTIME_NAME,	\
> +	[VDSO_SYMBOL_GETTIMEOFDAY]	= VDSO_SYMBOL_GETTIMEOFDAY_NAME,	\
> +};
> +
> +
>   struct vdso_symtable;
>   struct parasite_ctl;
>   struct vm_area_list;


-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list