Tidy the naming convention for compat syscall subs. Hints which describe the purpose of the stub go in front and receive a double underscore to denote that they are generated on-the-fly by the SYSCALL_DEFINEx() macro. For the generic case, this means (0xffffffff prefix removed): 810f08d0 t kernel_waitid # common C function (see kernel/exit.c) <inline> __do_sys_waitid # inlined helper doing the actual work # (takes original parameters as declared) 810f1aa0 T __se_sys_waitid # sign-extending C function calling inlined # helper (takes parameters of type long; # casts them to the declared type) 810f1aa0 T sys_waitid # alias to __se_sys_waitid() (taking # parameters as declared), to be included # in syscall table For x86, the naming is as follows: 810efc70 t kernel_waitid # common C function (see kernel/exit.c) <inline> __do_sys_waitid # inlined helper doing the actual work # (takes original parameters as declared) 810efd60 t __se_sys_waitid # sign-extending C function calling inlined # helper (takes parameters of type long; # casts them to the declared type) 810f1140 T __ia32_sys_waitid # IA32_EMULATION 32-bit-ptregs -> C stub, # calls __se_sys_waitid(); to be included # in syscall table 810f1110 T sys_waitid # x86 64-bit-ptregs -> C stub, calls # __se_sys_waitid(); to be included in # syscall table For x86, sys_waitid() will be re-named to __x64_sys_waitid in a follow-up patch.
Showing the changes to scripts (1 of 4 files). Show all
Unified · Split
| @@ -30,7 +30,7 @@ def getsizes(file, format): · 29 unmodified lines | ||
| 30 | 30 | if type in format: |
| 31 | 31 | # strip generated symbols |
| 32 | 32 | if name.startswith("__mod_"): continue |
| 33 | − if name.startswith("SyS_"): continue | |
| 33 | + if name.startswith("__se_sys"): continue | |
| 34 | 34 | if name.startswith("compat_SyS_"): continue |
| 35 | 35 | if name == "linux_banner": continue |
| 36 | 36 | # statics and some other optimizations adds random .NUMBER |