xref: /aosp_15_r20/external/strace/linux/arm/nr_prefix.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1 static inline const char *
nr_prefix(kernel_ulong_t scno)2 nr_prefix(kernel_ulong_t scno)
3 {
4 	/*
5 	 * For now, the set of syscalls that are shuffled is equivalent to the
6 	 * set of syscalls that have __ARM_NR_ prefix.
7 	 */
8 	if (shuffle_scno(scno) != scno)
9 		return "__ARM_NR_";
10 	else
11 		return "__NR_";
12 }
13