| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de) |
| * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
| * This is in a separate file because it needs to be compiled with any |
| * extraneous gcc flags (-pg, -fprofile-arcs, -ftest-coverage) disabled |
| * Use UM_KERN_PAGE_SIZE instead of PAGE_SIZE because that calls getpagesize |
| void __attribute__ ((__section__ (".__syscall_stub"))) |
| struct stub_data *data = get_stub_data(); |
| err = stub_syscall2(__NR_clone, CLONE_PARENT | CLONE_FILES | SIGCHLD, |
| STUB_DATA_PAGES * UM_KERN_PAGE_SIZE / 2); |
| err = stub_syscall4(__NR_ptrace, PTRACE_TRACEME, 0, 0, 0); |