From nobody Fri May 3 10:51:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1642508707; cv=none; d=zohomail.com; s=zohoarc; b=lkbMRPi3XnH9QhJSwKU33XVERe9vsEuQyExKYYsrfUF004O5YzgVQudgH11mR05kMB1pKABTJ+uumRIsN9i4gY98IScrqn9UnrvF9ibriI4JLUH6IfE4kCcwL6dwYmWDlGdKl1fHZvzS9EOBy6TR+tts1fpNEtX6T5u2ebHBZs4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642508707; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=4dG9bOgwc7u64QOwV0yPxfHAEqz49aLK9pqO8A3peUs=; b=oIeJPR6hFPhIPb1GtK3mhS4qH32Jz9xOSjoX21PReDlwj3LpqiyP7tLTtf+7E60C9+Itig0ZY/iDa/Rp0e9o3GlDF+yKDAcpA9S+ShliwTSd6Zha+2MSYP71HK9QdBh0kvHPFNfXi2PkkLFedd6i0VR7LTE6SCCiKbT79myMQAg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1642508707661303.1461439155647; Tue, 18 Jan 2022 04:25:07 -0800 (PST) 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-124-lpo-01GEP52DXv-q5LFKYQ-1; Tue, 18 Jan 2022 07:25:03 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EFF9618C89CC; Tue, 18 Jan 2022 12:24:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 939187D57E; Tue, 18 Jan 2022 12:24:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id F34A14BB7C; Tue, 18 Jan 2022 12:24:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20ICOsBS004748 for ; Tue, 18 Jan 2022 07:24:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0161178A91; Tue, 18 Jan 2022 12:24:54 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CAC6B76117 for ; Tue, 18 Jan 2022 12:24:50 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 1BE9B24016F; Tue, 18 Jan 2022 13:24:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642508706; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4dG9bOgwc7u64QOwV0yPxfHAEqz49aLK9pqO8A3peUs=; b=QQKNzcMA04Yj24DwQ+o9zmQqEoxhHrVdkpyCBtgiQYDG9QnUz+Fm9qvSA5PidsL0uGu6DW bIqdiv7pmLjMFwzeQc/ZZtWlNF0ItbMQC1zPFcVZNJgPIHTPtxRQsGZTMXIQMcGfQkIKij WqZCv0SXsxfo0wr+4LpgBofqLSouT7U= X-MC-Unique: lpo-01GEP52DXv-q5LFKYQ-1 From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] qemu: Log which API is trying to acquire a job Date: Tue, 18 Jan 2022 13:24:46 +0100 Message-Id: <3b79b652b42bf643b4049d67fdcd2659b0d2de42.1642508686.git.jdenemar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1642508709129100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_domainjob.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_domainjob.c b/src/qemu/qemu_domainjob.c index c8fe8ad555..1ecde5af86 100644 --- a/src/qemu/qemu_domainjob.c +++ b/src/qemu/qemu_domainjob.c @@ -827,9 +827,11 @@ qemuDomainObjBeginJobInternal(virQEMUDriver *driver, unsigned long long duration =3D 0; unsigned long long agentDuration =3D 0; unsigned long long asyncDuration =3D 0; + const char *currentAPI =3D virThreadJobGet(); =20 - VIR_DEBUG("Starting job: job=3D%s agentJob=3D%s asyncJob=3D%s " + VIR_DEBUG("Starting job: API=3D%s job=3D%s agentJob=3D%s asyncJob=3D%s= " "(vm=3D%p name=3D%s, current job=3D%s agentJob=3D%s async=3D= %s)", + NULLSTR(currentAPI), qemuDomainJobTypeToString(job), qemuDomainAgentJobTypeToString(agentJob), qemuDomainAsyncJobTypeToString(asyncJob), @@ -931,13 +933,14 @@ qemuDomainObjBeginJobInternal(virQEMUDriver *driver, if (priv->job.asyncJob && priv->job.asyncStarted) asyncDuration =3D now - priv->job.asyncStarted; =20 - VIR_WARN("Cannot start job (%s, %s, %s) for domain %s; " + VIR_WARN("Cannot start job (%s, %s, %s) in API %s for domain %s; " "current job is (%s, %s, %s) " "owned by (%llu %s, %llu %s, %llu %s (flags=3D0x%lx)) " "for (%llus, %llus, %llus)", qemuDomainJobTypeToString(job), qemuDomainAgentJobTypeToString(agentJob), qemuDomainAsyncJobTypeToString(asyncJob), + NULLSTR(currentAPI), obj->def->name, qemuDomainJobTypeToString(priv->job.active), qemuDomainAgentJobTypeToString(priv->job.agentActive), --=20 2.34.1