mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
zdtm/vdso01: move vdso_symbols upper
Remove not needed VDSO_SYMBOL_*_NAME defines. Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
a206326396
commit
6ae6cbdf46
@@ -51,10 +51,12 @@ enum {
|
||||
VDSO_SYMBOL_MAX
|
||||
};
|
||||
|
||||
#define VDSO_SYMBOL_CLOCK_GETTIME_NAME "__vdso_clock_gettime"
|
||||
#define VDSO_SYMBOL_GETCPU_NAME "__vdso_getcpu"
|
||||
#define VDSO_SYMBOL_GETTIMEOFDAY_NAME "__vdso_gettimeofday"
|
||||
#define VDSO_SYMBOL_TIME_NAME "__vdso_time"
|
||||
const char *vdso_symbols[VDSO_SYMBOL_MAX] = {
|
||||
[VDSO_SYMBOL_CLOCK_GETTIME] = "__vdso_clock_gettime",
|
||||
[VDSO_SYMBOL_GETCPU] = "__vdso_getcpu",
|
||||
[VDSO_SYMBOL_GETTIMEOFDAY] = "__vdso_gettimeofday",
|
||||
[VDSO_SYMBOL_TIME] = "__vdso_time",
|
||||
};
|
||||
|
||||
struct vdso_symtable {
|
||||
unsigned long vma_start;
|
||||
@@ -116,13 +118,6 @@ static int vdso_fill_symtable(char *mem, size_t size, struct vdso_symtable *t)
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
const char *vdso_symbols[VDSO_SYMBOL_MAX] = {
|
||||
[VDSO_SYMBOL_CLOCK_GETTIME] = VDSO_SYMBOL_CLOCK_GETTIME_NAME,
|
||||
[VDSO_SYMBOL_GETCPU] = VDSO_SYMBOL_GETCPU_NAME,
|
||||
[VDSO_SYMBOL_GETTIMEOFDAY] = VDSO_SYMBOL_GETTIMEOFDAY_NAME,
|
||||
[VDSO_SYMBOL_TIME] = VDSO_SYMBOL_TIME_NAME,
|
||||
};
|
||||
|
||||
char *dynsymbol_names;
|
||||
unsigned int i, j, k;
|
||||
|
||||
|
Reference in New Issue
Block a user