That doesn't mean that code pages couldn't be shared. The data that differs per process is a single number in this case.
Having said that I agree that it's probably not worth it to put getpid() into vDSO.
Having said that I agree that it's probably not worth it to put getpid() into vDSO.
If we're going to add all sorts of dross to the vdso, like getpid(), who knows what else will end up there?