From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a5d:6089:0:0:0:0:0 with SMTP id w9csp3413132wrt; Fri, 30 Nov 2018 02:36:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XqQ+bqmOLPmf5KSKbXRTI+UDGKCNYr8ArVhAmDaE2AIxI2PuZPDsBDfr6Bhb5E/PaZrSeh X-Received: by 2002:a25:20c6:: with SMTP id g189-v6mr4819988ybg.196.1543574165308; Fri, 30 Nov 2018 02:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543574165; cv=none; d=google.com; s=arc-20160816; b=aWFcC4FwwUieezXhcPtwEpD+jYDfGE34AqAHJO1rTNzzEEhRj8PaENdZ1wGJCCk5Uo nwWzliFCbiQHv8IJSFhWl51oQLJ1J6fGliM7i8ZlP9FCyYNuqQSBrhGbjF5A3ge/bauF X8YMzlJfxk+Eab7V90y0GoST3XI1Y1vX2CTc8Jy/oVTckWAR90udIzmp4BojZ9UL0U2m Fh6p/bf+2PsrlYdKEru/d4h7xUWj09RlxMOgiavHjeOmCi5SeonIuOSYNBwPysROwzSP a6YX1v7Bba1pkqFmG6SusKo7orTuc7shnTZ9yekTjcl+lm7qvAwmsviX2/ACgkj878Vy NWew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:to:from:date:dkim-signature; bh=jiv5nqLGSSP+PhkqaLwS4Zlm7bs28sWKUP+w/dHRdv0=; b=o27VhH1Mcnkv2C9CwWXQZtIzfVeZwGth45taPNGtVRUckprSQZX1A7fCAU48D2z2j5 6qfZj2AxXS9e5MfjYfOCMxO+e3HbmSCcAM9Ojf81Nr4ERUBz0uzss7c5fFl6D+B0oGzG 4EXEFyYtpXSb4L3Sq3LCwKTKX42xfKiQbdiAYI4G0d7JtUVx5eNHn+Ud6jm0ebpzF199 cfqOy5/rLjL7N2grwQLWQvbiGONtfRE+txTsHQUlg2LP/jPqJlKxLmt7+/QuKDiRwwfE YH3z/YccM1OKi8Ql/nbGpKzYLIOshvdwlwWbW7IAVsC1blnTg52bgN1EvyKukIMq/POl iB9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b="oLh9/yfq"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z16-v6si2813240ybg.136.2018.11.30.02.36.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Nov 2018 02:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b="oLh9/yfq"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:59267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSg9U-00059F-QC for alex.bennee@linaro.org; Fri, 30 Nov 2018 05:36:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSg9M-00058x-Hi for qemu-arm@nongnu.org; Fri, 30 Nov 2018 05:35:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSg9H-0000RJ-Om for qemu-arm@nongnu.org; Fri, 30 Nov 2018 05:35:56 -0500 Received: from mail-eopbgr790080.outbound.protection.outlook.com ([40.107.79.80]:47712 helo=NAM03-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSg9E-00009I-D0; Fri, 30 Nov 2018 05:35:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=muvel7qc6jal/3rwiRC0aQGx74wmxDaJnP5UI4KbopA=; b=oLh9/yfqD8IV8vxp51yd7S3zv1GyBkbyhU5h+guGICuXDTfN9nWhaiow/X0CrJyrvhQH5/+z68Khj9pdHyXddXZtcAytcgiXfSCb4GZuh1bCH4G8sbT0CWDbhMxPm/q0wCroz/DEXpQHR5t9b1qLapJUTqarZ0QjIeOpTNFXHuw= Received: from BN6PR02CA0083.namprd02.prod.outlook.com (2603:10b6:405:60::24) by DM6PR02MB4332.namprd02.prod.outlook.com (2603:10b6:5:2a::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18; Fri, 30 Nov 2018 10:35:13 +0000 Received: from BL2NAM02FT010.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by BN6PR02CA0083.outlook.office365.com (2603:10b6:405:60::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18 via Frontend Transport; Fri, 30 Nov 2018 10:35:13 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT010.mail.protection.outlook.com (10.152.77.53) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1382.18 via Frontend Transport; Fri, 30 Nov 2018 10:35:12 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:51579 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1gSg8e-00047V-2r; Fri, 30 Nov 2018 02:35:12 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1gSg8Y-0002tc-Vh; Fri, 30 Nov 2018 02:35:07 -0800 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id wAUAZ53I009756; Fri, 30 Nov 2018 02:35:05 -0800 Received: from [10.23.116.230] (helo=xsjedgari31.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1gSg8W-0002pS-N9; Fri, 30 Nov 2018 02:35:05 -0800 Date: Fri, 30 Nov 2018 11:35:03 +0100 From: "Edgar E. Iglesias" To: Luc Michel Message-ID: <20181130103503.GI20151@toto> References: <20181123091729.29921-1-luc.michel@greensocs.com> <20181123091729.29921-8-luc.michel@greensocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181123091729.29921-8-luc.michel@greensocs.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7916004)(376002)(346002)(39860400002)(136003)(396003)(2980300002)(438002)(199004)(189003)(5024004)(9786002)(50466002)(478600001)(33656002)(36386004)(47776003)(1076002)(76176011)(186003)(33716001)(26005)(77096007)(5660300001)(23756003)(106466001)(106002)(8676002)(81156014)(81166006)(58126008)(54906003)(8936002)(2906002)(6246003)(486006)(63266004)(316002)(356004)(229853002)(2870700001)(426003)(6916009)(9686003)(336012)(305945005)(446003)(11346002)(4326008)(476003)(126002)(18370500001)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR02MB4332; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT010; 1:sSd6iJEEEnSnIaWruOuusHay0j+OkWUVlLzHqTPYyPAhUcHdOLGO4jTzGIuuP/pVDeUqCO6mo9kgwV2G5AWJlHMhrUIxDhWhHGPCYET6RrmHlrkMrmIZJS5NEuEQGGtB X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 724195f0-8107-4cf9-b0f9-08d656af8288 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4608076)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060); SRVR:DM6PR02MB4332; X-Microsoft-Exchange-Diagnostics: 1; DM6PR02MB4332; 3:UsCK8DSNcS/0e8mjWB+s9A8SDbTsp4g69ykwG2cESipL2kxvIScSFDOKf1E9UC3iT9hhXP92PCP8J7DzbdrB0FTPmqE3w3FafZBOJ6IDHjkVq7jYWbGfXJORW73pQrxP3cAvMg8mQT8HywqwDj2TXP/ks30wBvujK5shkIcV1g4c66VXleBIounD6mMoyG6QLU3lRH7yEkysY0vqGsWkKCWAAETCLbyUEMpcYF3Se4oMx09InG/aLWvK30HWPVBc4NIaygB6p4yGgG9CjMrDu3fDsO/+5TEPbUHrMeg8KcPW/Ba/B3874iCnROJGZ0IZRX7VtFq8FGKDDiErIAKi94f3gXgETxHkHsBu5VdQHR0=; 25:JtjoSUZQJ7qFy6B8iS76L0mgnisichx+k9931k53tz+NQZgKR86n9uWrHU0uXRNAgvgVMAhLdGRdO0hG5z3ubmukN12oBbnz8BwZ3HCzxwYE2uTd2eTz85UMl8W5shmNsvO8XSZaq8DWpRt4txMZBSWnEQUch43929x1iBWrix0X0Nd1XiOx2SIS5vdNdiEoJGlKR8q2u1aXtmJKt5tJQ3eYxtAwwvNdZFZX6PYkIjCCcQdoXo2CStyxxYjDot8sSTE+zPbWAa7nVdCxvsDjfr1HH+iO/mp+TYVmN1JNEnAOpCrtRgCzSU2BFXAlUsWbAlElrygxCa/Z7QJ2cZMlhhYUUiCKYoP9uWCnSdVC5VY= X-MS-TrafficTypeDiagnostic: DM6PR02MB4332: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DM6PR02MB4332; 31:CWDcvwZjgq/6Mtdks/dl8a9AMVBR8bjO6+WeSrgoJ8tyUeWH7nRHR4jA1spe0NVTq/+BMA+dHAkuv7zQmWY/k5NF2C6PamwnEh5cStB1dimfnngn173BR0gfL1/JfWz6VvZOqhVCcO1rXKPyVINHShdcmyBdFxtRul2QOe8+6vVSE0pgpCeUhT8DSuLQEnCZ6Yab42XcLbo9lHGo/b2WcWX4/FkZcsMzpOG0HZBafOc=; 20:25CS8S7QqHZ6Em/oq6x6hJj3splWPdA1OLrEQjvgknGqMWWatHMAHptxcNMY3IdT+KXBcB0V3W+VAGMaMphu1T7lppvX+NXsPe5LjFeOByUlj1/D1FejzCzdmKRCbXxZ7YcgPg275BNvp9o4tM3HPHNfksCjfcZy7woI3yyxl6Msy2F6ddsEe91lqmJP8/x/1aSSkFPipktc90qnZXqnFNjnL113Q/8+JmznvX/XhWmG0gpLlyjPvPuETuCTM+/+pSLTMQQ4NWcyO7mUdPnP2V0/Kuersyai9SvX3Rrulgf2piGRbJlfdldxz2dNz5SBOX40qHsl1LYDARfjHafxClISQIRWCBecAKNR/vRl4DAMBFBA0XjaLmt1mpNziiltnW06RIDBOqi8inQ01D1Ha1IByyvl4VLKSIZomtlEEs77vmsVNPylLyCCtiGuhBGD+Mn387kT0efs+I9g2kYDhsSBM2etBVMSBBc1Hs75j6C6HPXGUwUa5sSoluLe9Sjl X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231453)(999002)(944501466)(52105112)(93006095)(93004095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:DM6PR02MB4332; BCL:0; PCL:0; RULEID:; SRVR:DM6PR02MB4332; X-Microsoft-Exchange-Diagnostics: 1; DM6PR02MB4332; 4:8zKKseJUjpq3oo4rQkqeWWCjQ5M7ChkjPaLDVzZ/xKfAbKeceRl/LDUxxwg2JT6fBAKhxeTzzXPgmKT8d8rykheMO0j1S2sSu0nEQLfcHbBZS5QGtGJE/cxSH8e9Rw589QIeqZB/uCuuClstIWI6OSGAUMaQT/ginbvEqcfBnk13iYhOz+9sURVu026dLdMd8QBRIsLNgDMTvW9x/Du+4jDaZ12BKNEr7Bj5cKkyMRZ575snig12bgrQmSRzvFFrprHALqEqgJj/dcCtaARKSw== X-Forefront-PRVS: 087223B4DA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR02MB4332; 23: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WPcSYTl44OFQWhVo5XyR9qtg6TKe4fi9LGrYKTKaELwvkDiIV0SY4m4jXLUWHG6H3cSWzpl9x5GI+/Tt+hwFGv6sm01i9PDmG3oV9MFaqZfMSqmn9DyLTOoal0ZVqLjTKCpuEGku4Z2Y2lQ8VTqQFNyCDEMcSxVmrtbxFwwwQTx0L0zVNLzy8mgeksHbB4B6M7QzsDE+9TC8ZDHdlzT6+OoWLpDHLBV6QRJMBhbqjcWR0dCdWBQ==; 5:037WxbCXNzomRwviWMzj47fnKIbJLm6tKqv23QH/GcqcxDElkY/cF6HS0OEcCAc5QHJv2VncTcf9Edm8Pe/Efi88KV6lJIkMmnjX99JdEN/FG6zgJWrR+nTO3dKr3O7reB6z2EHakbagSMfY5WQqTk2q10LyA6HeOWlJO+wKnoM=; 7:MR0XJgJQ4VKbr20drfoKb/ffMGQSKJnm4gMQ1b75HgP6kTXRgUq+8wGMWOdGyTyEfGgbekej734Fr2z757CBT21rEhOc8sp7I7wDc7CF/cUeiTLrM9XiU/tS9CkiCITyULjYzp/qtl37jddtp17dRg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2018 10:35:12.6421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 724195f0-8107-4cf9-b0f9-08d656af8288 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4332 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.79.80 Subject: Re: [Qemu-arm] [PATCH v7 07/16] gdbstub: add multiprocess support to (f|s)ThreadInfo and ThreadExtraInfo X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Eduardo Habkost , alistair@alistair23.me, mark.burton@greensocs.com, qemu-devel@nongnu.org, Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: jaLTrhJTwM8U On Fri, Nov 23, 2018 at 10:17:20AM +0100, Luc Michel wrote: > Change the thread info related packets handling to support multiprocess > extension. >=20 > Add the CPUs class name in the extra info to help differentiate > them in multiprocess mode. Reviewed-by: Edgar E. Iglesias >=20 > Signed-off-by: Luc Michel > Reviewed-by: Philippe Mathieu-Daud=E9 > --- > gdbstub.c | 37 +++++++++++++++++++++++++++---------- > 1 file changed, 27 insertions(+), 10 deletions(-) >=20 > diff --git a/gdbstub.c b/gdbstub.c > index 728efdabee..12d4e33c40 100644 > --- a/gdbstub.c > +++ b/gdbstub.c > @@ -1262,11 +1262,10 @@ out: > static int gdb_handle_packet(GDBState *s, const char *line_buf) > { > CPUState *cpu; > CPUClass *cc; > const char *p; > - uint32_t thread; > uint32_t pid, tid; > int ch, reg_size, type, res; > uint8_t mem_buf[MAX_PACKET_LENGTH]; > char buf[sizeof(mem_buf) + 1 /* trailing NUL */]; > char thread_id[16]; > @@ -1558,30 +1557,48 @@ static int gdb_handle_packet(GDBState *s, const c= har *line_buf) > snprintf(buf, sizeof(buf), "QC%s", > gdb_fmt_thread_id(s, cpu, thread_id, sizeof(thread_= id))); > put_packet(s, buf); > break; > } else if (strcmp(p,"fThreadInfo") =3D=3D 0) { > - s->query_cpu =3D first_cpu; > + s->query_cpu =3D gdb_first_attached_cpu(s); > goto report_cpuinfo; > } else if (strcmp(p,"sThreadInfo") =3D=3D 0) { > report_cpuinfo: > if (s->query_cpu) { > - snprintf(buf, sizeof(buf), "m%x", cpu_gdb_index(s->query= _cpu)); > + snprintf(buf, sizeof(buf), "m%s", > + gdb_fmt_thread_id(s, s->query_cpu, > + thread_id, sizeof(thread_id))); > put_packet(s, buf); > - s->query_cpu =3D CPU_NEXT(s->query_cpu); > + s->query_cpu =3D gdb_next_attached_cpu(s, s->query_cpu); > } else > put_packet(s, "l"); > break; > } else if (strncmp(p,"ThreadExtraInfo,", 16) =3D=3D 0) { > - thread =3D strtoull(p+16, (char **)&p, 16); > - cpu =3D find_cpu(thread); > + if (read_thread_id(p + 16, &p, &pid, &tid) =3D=3D GDB_READ_T= HREAD_ERR) { > + put_packet(s, "E22"); > + break; > + } > + cpu =3D gdb_get_cpu(s, pid, tid); > if (cpu !=3D NULL) { > cpu_synchronize_state(cpu); > - /* memtohex() doubles the required space */ > - len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > - "CPU#%d [%s]", cpu->cpu_index, > - cpu->halted ? "halted " : "running"); > + > + if (s->multiprocess && (s->process_num > 1)) { > + /* Print the CPU model and name in multiprocess mode= */ > + ObjectClass *oc =3D object_get_class(OBJECT(cpu)); > + const char *cpu_model =3D object_class_get_name(oc); > + char *cpu_name =3D > + object_get_canonical_path_component(OBJECT(cpu))= ; > + len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > + "%s %s [%s]", cpu_model, cpu_name, > + cpu->halted ? "halted " : "running"); > + g_free(cpu_name); > + } else { > + /* memtohex() doubles the required space */ > + len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > + "CPU#%d [%s]", cpu->cpu_index, > + cpu->halted ? "halted " : "running"); > + } > trace_gdbstub_op_extra_info((char *)mem_buf); > memtohex(buf, mem_buf, len); > put_packet(s, buf); > } > break; > --=20 > 2.19.1 >=20 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSg9U-0005CZ-JJ for qemu-devel@nongnu.org; Fri, 30 Nov 2018 05:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSg9O-0000Ta-Io for qemu-devel@nongnu.org; Fri, 30 Nov 2018 05:36:04 -0500 Date: Fri, 30 Nov 2018 11:35:03 +0100 From: "Edgar E. Iglesias" Message-ID: <20181130103503.GI20151@toto> References: <20181123091729.29921-1-luc.michel@greensocs.com> <20181123091729.29921-8-luc.michel@greensocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181123091729.29921-8-luc.michel@greensocs.com> Subject: Re: [Qemu-devel] [PATCH v7 07/16] gdbstub: add multiprocess support to (f|s)ThreadInfo and ThreadExtraInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luc Michel Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Peter Maydell , saipava@xilinx.com, edgari@xilinx.com, alistair@alistair23.me, Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , mark.burton@greensocs.com, Eduardo Habkost On Fri, Nov 23, 2018 at 10:17:20AM +0100, Luc Michel wrote: > Change the thread info related packets handling to support multiprocess > extension. >=20 > Add the CPUs class name in the extra info to help differentiate > them in multiprocess mode. Reviewed-by: Edgar E. Iglesias >=20 > Signed-off-by: Luc Michel > Reviewed-by: Philippe Mathieu-Daud=E9 > --- > gdbstub.c | 37 +++++++++++++++++++++++++++---------- > 1 file changed, 27 insertions(+), 10 deletions(-) >=20 > diff --git a/gdbstub.c b/gdbstub.c > index 728efdabee..12d4e33c40 100644 > --- a/gdbstub.c > +++ b/gdbstub.c > @@ -1262,11 +1262,10 @@ out: > static int gdb_handle_packet(GDBState *s, const char *line_buf) > { > CPUState *cpu; > CPUClass *cc; > const char *p; > - uint32_t thread; > uint32_t pid, tid; > int ch, reg_size, type, res; > uint8_t mem_buf[MAX_PACKET_LENGTH]; > char buf[sizeof(mem_buf) + 1 /* trailing NUL */]; > char thread_id[16]; > @@ -1558,30 +1557,48 @@ static int gdb_handle_packet(GDBState *s, const c= har *line_buf) > snprintf(buf, sizeof(buf), "QC%s", > gdb_fmt_thread_id(s, cpu, thread_id, sizeof(thread_= id))); > put_packet(s, buf); > break; > } else if (strcmp(p,"fThreadInfo") =3D=3D 0) { > - s->query_cpu =3D first_cpu; > + s->query_cpu =3D gdb_first_attached_cpu(s); > goto report_cpuinfo; > } else if (strcmp(p,"sThreadInfo") =3D=3D 0) { > report_cpuinfo: > if (s->query_cpu) { > - snprintf(buf, sizeof(buf), "m%x", cpu_gdb_index(s->query= _cpu)); > + snprintf(buf, sizeof(buf), "m%s", > + gdb_fmt_thread_id(s, s->query_cpu, > + thread_id, sizeof(thread_id))); > put_packet(s, buf); > - s->query_cpu =3D CPU_NEXT(s->query_cpu); > + s->query_cpu =3D gdb_next_attached_cpu(s, s->query_cpu); > } else > put_packet(s, "l"); > break; > } else if (strncmp(p,"ThreadExtraInfo,", 16) =3D=3D 0) { > - thread =3D strtoull(p+16, (char **)&p, 16); > - cpu =3D find_cpu(thread); > + if (read_thread_id(p + 16, &p, &pid, &tid) =3D=3D GDB_READ_T= HREAD_ERR) { > + put_packet(s, "E22"); > + break; > + } > + cpu =3D gdb_get_cpu(s, pid, tid); > if (cpu !=3D NULL) { > cpu_synchronize_state(cpu); > - /* memtohex() doubles the required space */ > - len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > - "CPU#%d [%s]", cpu->cpu_index, > - cpu->halted ? "halted " : "running"); > + > + if (s->multiprocess && (s->process_num > 1)) { > + /* Print the CPU model and name in multiprocess mode= */ > + ObjectClass *oc =3D object_get_class(OBJECT(cpu)); > + const char *cpu_model =3D object_class_get_name(oc); > + char *cpu_name =3D > + object_get_canonical_path_component(OBJECT(cpu))= ; > + len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > + "%s %s [%s]", cpu_model, cpu_name, > + cpu->halted ? "halted " : "running"); > + g_free(cpu_name); > + } else { > + /* memtohex() doubles the required space */ > + len =3D snprintf((char *)mem_buf, sizeof(buf) / 2, > + "CPU#%d [%s]", cpu->cpu_index, > + cpu->halted ? "halted " : "running"); > + } > trace_gdbstub_op_extra_info((char *)mem_buf); > memtohex(buf, mem_buf, len); > put_packet(s, buf); > } > break; > --=20 > 2.19.1 >=20