Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp485012yba; Fri, 12 Apr 2019 07:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqSLZKkpP2IMDZlqXndgEZSXPAizzoaK/Bze+Wt+q6gXOvra/zXWbf7R+uawoJudL4QATw X-Received: by 2002:a63:cf:: with SMTP id 198mr2541022pga.228.1555079456997; Fri, 12 Apr 2019 07:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555079456; cv=none; d=google.com; s=arc-20160816; b=0yy+MX8TK1v5JIltLw+KpqUIBHbuvN3qoJIvE1DRKq4swFbr1e2nu7PY1+AiEE01jC FWPIEXow1NKIApT3eAVWPMGH1OEQV4uTfivfRytuT+xp3Gtkr7/NK/lvPUUaeGBXPO1Y pCr689Kw6iVZLXcEYp1SwTiXpn+w1LTTE4tRbv808y4CNHIK6UDmVtGMEkcAM+Z54A2v Xgrzj77pGwWNZcVGkyB5u1/UCPaOud9ppoXHFYON03rjSho9Hcqm3fdTuBBTZfun1pJp edEELGXk46JxhfoESWrpMG4rL2hx5SKNy4wm8bbPP1lZR5VIR48dDxSH4o31T8PRJslY Y40A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5xniIlvkmagPJwTlFT546r9sgv4cMSsFmSYiCWGSBqI=; b=es8F/ZUdSRtA/CqJVLIBqPuWoMDQ7CAwv5UBnqIL2ExorQehugxIQBpxaWxRRLiBUa CfNrfeN/RTCNj5tWZzdG6Cxd1mEpI711zXNn/hzAW2qzZXlg9xd3NxvVW7yeC1EwvorC a7IMPRn2+T6YWg63wg6qXZWQo4t/IwfE5EQEmLoPqmlNFLQoaE9LIMVyCVmRTGp0EFYl GZUoC93K1bIwsMpqJisHMa/UBGoD6/o6kDMGmieTlcg3/fKLdaKtH8YwnneEUCf1pA5n e9SsZFEoBfRMz47eviTxUIkBsQ9+UAZgvYFlxptf/hF/Z3mW+BMr/Ul1EOmpAf7HmDAT cYkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si27758492plk.221.2019.04.12.07.30.40; Fri, 12 Apr 2019 07:30:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbfDLO2y (ORCPT + 99 others); Fri, 12 Apr 2019 10:28:54 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:8229 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbfDLO2y (ORCPT ); Fri, 12 Apr 2019 10:28:54 -0400 X-IronPort-AV: E=Sophos;i="5.60,341,1549929600"; d="scan'208";a="83442245" Date: Fri, 12 Apr 2019 15:28:51 +0100 From: Wei Liu To: Dongli Zhang CC: , , , , , , , , Subject: Re: [PATCH 1/1] xen-netback: add reference from xenvif to backend_info to facilitate coredump analysis Message-ID: <20190412142851.GK30543@zion.uk.xensource.com> References: <1555052004-31855-1-git-send-email-dongli.zhang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1555052004-31855-1-git-send-email-dongli.zhang@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 12, 2019 at 02:53:24PM +0800, Dongli Zhang wrote: > During coredump analysis, it is not easy to obtain the address of > backend_info in xen-netback. > > So far there are two ways to obtain backend_info: > > 1. Do what xenbus_device_find() does for vmcore to find the xenbus_device > and then derive it from dev_get_drvdata(). > > 2. Extract backend_info from callstack of xenwatch (e.g., netback_remove() > or frontend_changed()). > > This patch adds a reference from xenvif to backend_info so that it would be > much more easier to obtain backend_info during coredump analysis. > > Signed-off-by: Dongli Zhang Acked-by: Wei Liu