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