src: Add lookup_trace