def METHOD_NAME(self, orc):
    old_orc = int(os.environ.get("DRGN_PREFER_ORC_UNWINDER", "0")) != 0
    with setenv("DRGN_PREFER_ORC_UNWINDER", "1" if orc else "0"):
        if orc == old_orc:
            prog = self.prog
        else:
            prog = Program()
            prog.set_kernel()
            self._load_debug_info(prog)
        self._test_drgn_test_kthread_trace(
            prog.stack_trace(prog["drgn_test_kthread"].pid)
        )