Home
last modified time | relevance | path

Searched refs:AREA_SIZE (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c15 #define AREA_SIZE 1024 macro
79 self->ptr_anon = mmap(NULL, AREA_SIZE, PROT_READ | PROT_WRITE, in FIXTURE_SETUP()
82 self->ptr_not_anon = mmap(NULL, AREA_SIZE, PROT_READ | PROT_WRITE, in FIXTURE_SETUP()
88 munmap(self->ptr_anon, AREA_SIZE); in FIXTURE_TEARDOWN()
89 munmap(self->ptr_not_anon, AREA_SIZE); in FIXTURE_TEARDOWN()
94 EXPECT_GE(rename_vma((unsigned long)self->ptr_anon, AREA_SIZE, GOOD_NAME), 0); in TEST_F()
98 EXPECT_EQ(rename_vma((unsigned long)self->ptr_anon, AREA_SIZE, BAD_NAME), -EINVAL); in TEST_F()
101 EXPECT_EQ(rename_vma((unsigned long) self->ptr_not_anon, AREA_SIZE, GOOD_NAME), -EINVAL); in TEST_F()