From patchwork Tue Jan 25 11:24:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 106498 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3A193A0352; Tue, 25 Jan 2022 12:25:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B56A426DC; Tue, 25 Jan 2022 12:25:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id D86C0426D8 for ; Tue, 25 Jan 2022 12:25:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643109934; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YWfYPf0WzS9D56s5IWAUEeHe3bkQk0di2ZfaqRkVkXU=; b=UZcerbWsksrJtUAlKn+bNRCNFYs+jMVM2Ezdm4PGaFyQQmia7t3gUx/RmvT1GBSpRQmwIv uEI8IK5rF1/Y2OKkRvv/kdYjyKlsp5w/vDhVH2gp7KzcX40WaQtG5ztJgJZJk6AQfOXfHF fHEF57GkwdgOLbDseCPtPF7TO12lGYM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-228-VTWNU1BQN6WXpXuRnXuqvw-1; Tue, 25 Jan 2022 06:25:33 -0500 X-MC-Unique: VTWNU1BQN6WXpXuRnXuqvw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 53F051006AA4; Tue, 25 Jan 2022 11:25:32 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE6B266E14; Tue, 25 Jan 2022 11:24:59 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com Cc: Maxime Coquelin Subject: [PATCH v2 0/9] vhost: improve logging Date: Tue, 25 Jan 2022 12:24:48 +0100 Message-Id: <20220125112457.166434-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series aims at easing Vhost logs analysis, by prepending the Vhost-user socket path to all logs and to remove multi-line comments. Doing so, filtering Vhost-user ports logs is much easier. Changes in v2: ============== - Add missing socket paths (David) - avoid identical logs in iotlb code (David) - Use data log type when used in datapath (David) Maxime Coquelin (9): vhost: improve IOTLB logs vhost: improve vDPA registration failure log vhost: improve Vhost layer logs vhost: improve Vhost-user layer logs vhost: improve socket layer logs vhost: improve Virtio-net layer logs vhost: remove multi-line logs vhost: differentiate IOTLB logs vhost: use proper logging type for data path lib/vhost/iotlb.c | 30 +- lib/vhost/iotlb.h | 10 +- lib/vhost/socket.c | 148 ++++----- lib/vhost/vdpa.c | 4 +- lib/vhost/vhost.c | 108 ++++--- lib/vhost/vhost_user.c | 679 ++++++++++++++++++++--------------------- lib/vhost/vhost_user.h | 4 +- lib/vhost/virtio_net.c | 165 +++++----- 8 files changed, 548 insertions(+), 600 deletions(-)