do_linetrace