8 int main(int argc
, char const *argv
[]) {
9 if (!(getauxval(AT_HWCAP2
) & HWCAP2_MTE
))
12 int got
= prctl(PR_SET_TAGGED_ADDR_CTRL
, PR_TAGGED_ADDR_ENABLE
, 0, 0, 0);
16 void *the_page
= mmap(0, sysconf(_SC_PAGESIZE
), PROT_MTE
,
17 MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
18 if (the_page
== MAP_FAILED
)
21 return 0; // Set break point at this line.