diff options
Diffstat (limited to 'src/linux/arm/nr_prefix.c')
-rw-r--r-- | src/linux/arm/nr_prefix.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/linux/arm/nr_prefix.c b/src/linux/arm/nr_prefix.c new file mode 100644 index 000000000..bbbcf80b3 --- /dev/null +++ b/src/linux/arm/nr_prefix.c @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +static inline const char * +nr_prefix(kernel_ulong_t scno) +{ + /* + * For now, the set of syscalls that are shuffled is equivalent to the + * set of syscalls that have __ARM_NR_ prefix. + */ + if (shuffle_scno(scno) != scno) + return "__ARM_NR_"; + else + return "__NR_"; +} |