New option -E for ps that prints endpoint numbers instead of pids.