From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BAC72C60E for ; Tue, 28 Apr 2015 16:56:41 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 28 Apr 2015 07:56:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,664,1422950400"; d="scan'208";a="717151376" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 28 Apr 2015 07:56:39 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t3SEuai2028871; Tue, 28 Apr 2015 22:56:38 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t3SEuYiE006834; Tue, 28 Apr 2015 22:56:36 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t3SEuX45006830; Tue, 28 Apr 2015 22:56:33 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 28 Apr 2015 22:56:28 +0800 Message-Id: <1430232992-6798-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH 0/4] Support debug mode in DTS X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 14:56:42 -0000 From: Marvin Liu This patch support debug mode in dts. In debug mode, user can directly take operation on ssh connections or call python debug interpreter. DTS can enter debug mode by input keyboard interrupt "ctrl+c" at anytime. Then user can take ownership of session by command like "connect("dut")". The connected session can be listed by command "list()". After debug done, can return from ssh connection to debug mode by command "ctrl+]". Debug mode can also return to normal mode by command "quit()". There's one bug in pexpect module need manually fixed. /usr/lib/python2.7/site-packages/pexpect/__init__.py should changed as below. # if err.errno == errno.EINTR: if err[0] == errno.EINTR: Marvin Liu (4): framework: add debugger module for enable debug in the running process framework: maintain connected session list and disable debug mode in send_expect framework: change alt session name for easy to distinguish framework: enlarge hugepage number for dpdk2.0 request more memory framework/debugger.py | 147 ++++++++++++++++++++++++++++++++++++++++++++ framework/dut.py | 4 +- framework/project_dpdk.py | 4 +- framework/ssh_connection.py | 7 +++ framework/ssh_pexpect.py | 10 ++- framework/tester.py | 2 +- 6 files changed, 166 insertions(+), 8 deletions(-) create mode 100644 framework/debugger.py -- 1.9.3