OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pkey3
(Results
1 - 2
of
2
) sorted by null
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
ptrace-pkey.c
78
int pkey1, pkey2,
pkey3
;
local
98
pkey3
= sys_pkey_alloc(0, 0);
99
CHILD_FAIL_IF(
pkey3
< 0, &info->child_sync);
103
info->amr3 |= info->amr2 | 3ul << pkeyshift(
pkey3
);
110
info->expected_iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(
pkey3
));
118
* We won't use
pkey3
. We just want a plausible but invalid key to test
124
sys_pkey_free(
pkey3
);
126
printf("%-30s AMR: %016lx pkey1: %d pkey2: %d
pkey3
: %d\n",
127
user_write, info->amr1, pkey1, pkey2,
pkey3
);
core-pkey.c
113
int pkey1, pkey2,
pkey3
;
local
136
pkey3
= sys_pkey_alloc(0, 0);
137
FAIL_IF(
pkey3
< 0);
146
info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(
pkey3
));
150
printf("%-30s AMR: %016lx pkey1: %d pkey2: %d
pkey3
: %d\n",
151
user_write, info->amr, pkey1, pkey2,
pkey3
);
156
* We won't use
pkey3
. This tests whether the kernel restores the UAMOR
159
sys_pkey_free(
pkey3
);
Completed in 62 milliseconds