Dmitry V. Levin
7273c6fb3c
* defs.h (audit_arch): New prototype. * process.c: Include "ptrace_syscall_info.h". (SYS_FUNC(ptrace)) <PTRACE_GET_SYSCALL_INFO>: Call print_ptrace_syscall_info on exiting syscall. * ptrace_syscall_info.h (print_ptrace_syscall_info): New prototype. * ptrace_syscall_info.c: Include "print_fields.h" and "xlat/ptrace_syscall_info_op.h". (print_ptrace_syscall_info): New function. * xlat/ptrace_syscall_info_op.in: New file. * tests/ptrace_syscall_info.c: New file. * tests/gen_tests.in (ptrace_syscall_info): New test. * tests/pure_executables.list: Add ptrace_syscall_info. * tests/.gitignore: Likewise.
17 lines
456 B
C
17 lines
456 B
C
/*
|
|
* Copyright (c) 2018 Dmitry V. Levin <ldv@altlinux.org>
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#ifndef STRACE_PTRACE_SYSCALL_INFO_H
|
|
#define STRACE_PTRACE_SYSCALL_INFO_H
|
|
|
|
extern bool ptrace_get_syscall_info_supported;
|
|
extern bool test_ptrace_get_syscall_info(void);
|
|
extern void print_ptrace_syscall_info(struct tcb *, kernel_ulong_t addr,
|
|
kernel_ulong_t len);
|
|
|
|
#endif /* !STRACE_PTRACE_SYSCALL_INFO_H */
|