Received: by 10.213.65.68 with SMTP id h4csp3629876imn; Tue, 10 Apr 2018 01:59:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49fz5Bvsh9IceGtRG0cxV4OqymOkJyJUmX+cs9Pv5O9N5qCw8RpeSrph0SzyxK8qOLaBup7 X-Received: by 10.167.128.207 with SMTP id a15mr2059467pfn.116.1523350767264; Tue, 10 Apr 2018 01:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523350767; cv=none; d=google.com; s=arc-20160816; b=VNXL1QoucwVf3tVzGlunX1mtcd0n2bAzf+Jng/x4hyrVIdmLrpuFQcOep6ZlzFCYDy jJKJDUBHvxt9Ha/JHSFuR0zUvWhYAQkRIcWWy9kUip/1IswPURX6ROKKdcxF3H22sxYa qIAXJKmx/gs7PbAKnPo1nzX97Ln++ecQGeQyF+Qqy6+tXqeQkSaRpeCpP5Yt48d6wR8Q XYvpe3wjL5PxHM9C+Fe37StnEoCZl28ohvXgjuo/hT1r0ERynozKwAsokbjTAxrvF36i Zo9mDEhhICXUNaCL1KNCyzmwBhU99DHuvw+dV0tPTEvLvBZSJk5fAKxPBF08Kz1ltHHW NixQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=070vst0FpykHA1it8dXYawHLme5ydqiyGR7t7KQHmsw=; b=pjvinGnF4IeF/zFWr4HO0L6LffNzgwJh43k5H/Y0KHRXhOic9hdM0UFWgzJyWlXAkc RQPH/fn+TG9Mxl/BuXvLawYmyZTFOibUKzsozCLChrpVg3jHUHhLGkbMmxaTV5aQsETt SUEc7P8qrW0Hac6vU2Llw2KHXAYUTIkZRyzLaxzhMMlO97Gjb3MQwW+mwd/wiATqZ//l IMJkIUgXa07GLjcZtN4sglZT9J0Bc2UuoypLyflgfMvkd+g6mrAfUk0DIEBH44BxZoaZ ONkojSnnDz8uzPUgp4+3sfsxURx4IhpJBljfBe65tbgYPEnZ0Gc97fj+K6eaJjeALoat 4Hmg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si1740363pfh.242.2018.04.10.01.58.49; Tue, 10 Apr 2018 01:59:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbeDJIzp (ORCPT + 99 others); Tue, 10 Apr 2018 04:55:45 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48508 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752666AbeDJIzo (ORCPT ); Tue, 10 Apr 2018 04:55:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 682EB40201A3; Tue, 10 Apr 2018 08:55:43 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4C7702026DFD; Tue, 10 Apr 2018 08:55:42 +0000 (UTC) Date: Tue, 10 Apr 2018 10:55:40 +0200 From: Cornelia Huck To: Dong Jia Shi Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, borntraeger@de.ibm.com, pasic@linux.vnet.ibm.com, pmorel@linux.vnet.ibm.com Subject: Re: [PATCH 4/4] vfio: ccw: add traceponits for interesting error paths Message-ID: <20180410105540.310ea82a.cohuck@redhat.com> In-Reply-To: <20180410021639.GN5428@bjsdjshi@linux.vnet.ibm.com> References: <20180321020822.86255-1-bjsdjshi@linux.vnet.ibm.com> <20180321020822.86255-5-bjsdjshi@linux.vnet.ibm.com> <20180326155902.12bed785.cohuck@redhat.com> <20180327075114.GK12194@bjsdjshi@linux.vnet.ibm.com> <20180327120723.192f7577.cohuck@redhat.com> <20180410021639.GN5428@bjsdjshi@linux.vnet.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 10 Apr 2018 08:55:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 10 Apr 2018 08:55:43 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Apr 2018 10:16:39 +0800 Dong Jia Shi wrote: > Does the following effect make sense? > > # tracer: nop > # > # _-----=> irqs-off > # / _----=> need-resched > # | / _---=> hardirq/softirq > # || / _--=> preempt-depth > # ||| / delay > # TASK-PID CPU# |||| TIMESTAMP FUNCTION > # | | | |||| | | > qemu-system-s39-4252 [006] .... 231.457214: vfio_ccw_cp_prefetch: schid=0.0.013f errno=0 > qemu-system-s39-4252 [006] .... 231.457222: vfio_ccw_fsm_io_helper: schid=0.0.013f errno=0 > qemu-system-s39-4252 [006] .... 231.457223: vfio_ccw_io_fctl: schid=0.0.013f fctl=4 errno=0 > ... ... I would likely find this useful for following a code path and making sure the right things are called. We certainly want error conditions traced as well (although the code has been working too well for me to trigger that easily :)