From nobody Tue Nov 11 07:09:27 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1569565677; cv=none; d=zoho.com; s=zohoarc; b=j3jPCS+0TVckM8ORl1y5YF6Sdp/y20bR5iKgZtT+IPllRYyFuMVJVPMvfJSKQUWh9JLLmsDPq7D1kSj7EEphYeLSB+Eegd/n2kK/OfnBUZ7258/tS7jFVlwDmgvfFPPQlWiWvhd4AphsDzJqhlNiy8LSLmmWYlvhhKC1z8RwF/M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569565677; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=sI+qpq7km+28yI9eLtx5Irf+HIOhB/lLlhNI3vXB4U0=; b=EpIV9UnP9cYtLmOxLa20EvxkprQp+EN88AIW1KXataJHQclEcru2M/jrvUCutSVYiKW5El1f6n22e+UZK+6DPXra2QgIii9E42B90zdM9kzLnUvb17SRbXHyyjkDe967+UAJbjqnACBo+8EqcGgbNY4p4TYshrgW/MKmvICLwHg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1569565677007905.5968847157127; Thu, 26 Sep 2019 23:27:57 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDjN9-0005wZ-M9; Fri, 27 Sep 2019 06:04:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDjN8-0005wU-Ai for xen-devel@lists.xenproject.org; Fri, 27 Sep 2019 06:04:54 +0000 Received: from mx1.suse.de (unknown [195.135.220.15]) by localhost (Halon) with ESMTPS id b8e6cc3a-e0ec-11e9-966b-12813bfff9fa; Fri, 27 Sep 2019 06:04:53 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 65EFFAF13; Fri, 27 Sep 2019 06:04:52 +0000 (UTC) X-Inumbo-ID: b8e6cc3a-e0ec-11e9-966b-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Fri, 27 Sep 2019 08:04:48 +0200 Message-Id: <20190927060448.7056-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Subject: [Xen-devel] [PATCH] xen/debugtrace: fix buffer allocation X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Commit 6338c9ead9ff9ef6 ("debugtrace: add per-cpu buffer option") had a rebase error when using per-cpu buffers: the global buffer address would always be set to the one of the last per-cpu buffer allocated. The result would be that when dumping the buffers the last cpu's buffer is always shown as empty as those entries are printed in the global buffer's dump already. Fix that. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- xen/common/debugtrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/common/debugtrace.c b/xen/common/debugtrace.c index 7313e89389..a788e55b4c 100644 --- a/xen/common/debugtrace.c +++ b/xen/common/debugtrace.c @@ -259,7 +259,6 @@ static void debugtrace_alloc_buffer(struct debugtrace_d= ata **ptr, =20 memset(data, '\0', debugtrace_bytes + sizeof(*data)); =20 - dt_data =3D data; *ptr =3D data; } =20 --=20 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel