Received: by 10.213.65.68 with SMTP id h4csp3727955imn; Tue, 10 Apr 2018 03:52:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gS94sesEesZoVfJtqSPeglDzK3QHh5TivRL+Z6k/Sp7EA1GO73rH7NTSp5EUoHj59O3tB X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr42248574pli.50.1523357540088; Tue, 10 Apr 2018 03:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523357540; cv=none; d=google.com; s=arc-20160816; b=oq+trTqpKSGBk3LwmrAkk0+2on/3yAYIoo1UkH+GG/ITtm1tJrRa6SZbUVWWqZqapo NRA8E16h0H2MCq3ZgFMowtOhnnfRYAhNeFRNp2f15AaRRzL/5/LpHSPhi9sqF2tKcgf0 Jg1aM31Og9vmtWxirZ82Hdyt+/2BYyFi+PZtEhLbVOpebXxH3nQ8sCMGqqI2Timk4Q58 g7tdCo2VlPZAXHeb8guLXrAqeobamh5TuVB3i4QdzPNZicheOQLQXdu/lMAKEEf2SQu3 99vfpaF36eoLDw8TIdDyeJyUA3fTkBbgwT8CL2n3U5YXCZk+3P0PLweYE3joIOMfaEA+ jMyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:openpgp :from:references:cc:to:subject:arc-authentication-results; bh=IeG2Pr/wsU7X6CwlUtCGJkEmxqB9S1Yph/nfMNP5Z00=; b=0mcTuECGrtqJaq+BnQvQZgwWLKCZUm0mRLAfwnMaAKQOiwZVRt4Zi7kU+0vJZ3yiNw /yuyOr2sh+GakT9O011rWAbFpC/5fo/42cj7PnLq9vRtz85gKP63bOtOvFqVvjS0hSuq PIadfB6dJs+Q6/C9nqXB0TiERYRfHq+j+WiylqdNOn59b9H/xtpo8WBSJpsa53KeoHBx l6C1sB+GwER6wsPjscbPv+3vAPvImr4oYJG44pd4UefXjPj00XQo0RoZRAmjW9C15jSl hM9luiLhEZtYX2l7eQ3Itug5Ofmw4Ox/d9Whk7Z0lrrvR0gt/DruGISoi4T6Bpjny8Wp gIcg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si1654526pgq.548.2018.04.10.03.51.43; Tue, 10 Apr 2018 03:52:20 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbeDJKsW (ORCPT + 99 others); Tue, 10 Apr 2018 06:48:22 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34170 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323AbeDJKsT (ORCPT ); Tue, 10 Apr 2018 06:48:19 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3AAjMMm068545 for ; Tue, 10 Apr 2018 06:48:19 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2h8thebma0-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 10 Apr 2018 06:48:18 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Apr 2018 11:48:15 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Apr 2018 11:48:13 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3AAmCLR45482052; Tue, 10 Apr 2018 10:48:12 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 001145203F; Tue, 10 Apr 2018 10:39:11 +0100 (BST) Received: from oc3836556865.ibm.com (unknown [9.152.224.207]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id B191C52045; Tue, 10 Apr 2018 10:39:11 +0100 (BST) Subject: Re: [PATCH 4/4] vfio: ccw: add traceponits for interesting error paths To: Cornelia Huck , Dong Jia Shi Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, borntraeger@de.ibm.com, pmorel@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> <20180410105540.310ea82a.cohuck@redhat.com> From: Halil Pasic Openpgp: preference=signencrypt Date: Tue, 10 Apr 2018 12:48:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180410105540.310ea82a.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18041010-0044-0000-0000-0000054580C4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041010-0045-0000-0000-00002885B058 Message-Id: <578ce588-b738-4df5-f2d9-7db98a2c0b41@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-10_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804100108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2018 10:55 AM, Cornelia Huck wrote: > 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 :) > Looks interesting. The approach is to trace (all) exits from selected functions, or? It is an interesting approach. Function entry could probably be traced with the function tracer (if we should ever need that, although relating the two unambiguously may not be possible -- I don't know). I'm still not completely in clear how do we want to do error reporting. Using traces as means of error reporting smells like abuse to me. @Dong Jia: could you help me get an overview? I'm thinking of something like a matrix of type: error | handler | action (propagate as / report / try recover / discard silently) I'm mostly interested in what gets reported and if there is stuff that should be reported. Other than that I'm in favor. And having traces for tracking error condition is clearly better than having nothing. Regards, Halil