Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1153496pxb; Fri, 13 Nov 2020 05:44:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7k4pkXamtqZMiimbkMPsyqj336BMCPsBoKWVJJzwsiXcVHZCT9WfjBVOYpUA6U77NxJjR X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr1825233ejd.363.1605275080852; Fri, 13 Nov 2020 05:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275080; cv=none; d=google.com; s=arc-20160816; b=ozLTi2dB+eeCCN2kKTKbV6/WFxi3RtCF9WyPuWkMxQ4VNnHGjhgMe9sVPE1ywei8hg 5VQdQBwK2P2J1b7XejOvjVqwFKjw19FCwWvt4HCHPHHKAIscK+I39PCIWSyPP/iWIH/R uEu7iYbSl77gFzHyoRQopW0l3iFeiKFLPsuFVZzA1sQtwv8ggaQaPX9wPRVjWq9oRv10 ZiY3hQL9JDMYJ11JksZBTUkgmgNYZvO+mJFBH7RXuF7z40gHpBj7HsPrLWlMX3vxi9gO hI3WhdRuVTe1X/DeaDG4wbHK/qtnxCCzbkueRFEZ4kW3UZW49piWStPAVyIA6q7ZFT2x uL5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xeRteUYbLutGkQrrpi7H2enRNwMxf8nMPaFExxLpUmk=; b=eqJ3NE52xE1lu89yzqoSZa6xCg2vencrH6hghwFJtmEgblFo0H4mcyJNjSsxMsWUkI Wt7jEOykgjAkTBdsX8FvOZTMtUpfcBOs/Ipp3AO1IjlKDTwpCo4oJFMThZ3rhyzF5gxz pUqmXxd5L+otZFmjKA1j9loroRtR3m5rCl4R4oM8JqZZ6JjlnogO7AOs1elty/LwpKyg u/K/v/9+pl88252R5TbFyOMrQJ8WK16SaYkrKtxQMfjGDpU5I0jOUl5wqHqtY+EnNzqO HlAxsSVEH6yR/PBC9HBZebvLVSGXowIVsghW3H1zipTGtYH6YTSS3gwRyrbMUGZoAY6l v8oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=A25bqIPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si5472686ejf.614.2020.11.13.05.44.17; Fri, 13 Nov 2020 05:44:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=A25bqIPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbgKMNm4 (ORCPT + 99 others); Fri, 13 Nov 2020 08:42:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbgKMNm4 (ORCPT ); Fri, 13 Nov 2020 08:42:56 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC4E7C0617A6 for ; Fri, 13 Nov 2020 05:42:55 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id f27so7125351pgl.1 for ; Fri, 13 Nov 2020 05:42:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xeRteUYbLutGkQrrpi7H2enRNwMxf8nMPaFExxLpUmk=; b=A25bqIPX9jFZk1iMzFP0ddtBNLjKWWaHxxVsq74rjDyWqE139lDfn6UGug1+K9zZvR qLJrsCrI97d2UAIVKhY9MrsolfuQ2m1H5N9iZiplPvxKW+BCJWH+Kp8CB58Pye/CtRoa zKo1LI4D3ubRc4fYv8vYyyyh+xB0yMf04A3i00l+CRVkfF7l0EyzdQme6XLH2LaPzUsX C7rJoyE6fAhm5vYrT66fX6AM3QegDp1vgYyLkOuqNBS7iBYh3L2aiNN83Qliz5HI4wUb wM1VQycQi/hqZlLg5hZQ422NV7xJX7lt8amslmYYMY1pUzf0/OphNiKkV2i1N9R4l8eE o9sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xeRteUYbLutGkQrrpi7H2enRNwMxf8nMPaFExxLpUmk=; b=Q2dzTfjOO/aClohk4v0GazTXnduR9jHVAAJP7CmwFtONU+1i4dYEIAWHe5RPwC96kM eqRm86hE/xFful3f3H8GF4wsReuONvAryeURFKp3Es1QMCf/uU5EkFncB2g18Z7MJgNt AW7hwLd8AcMZwhEuwYRNjrAePm95RTel493T9b9xr08WbbABULn9Hmpkk04IZjrW4OQR jHo5/FgcGWc68AnIJ+XUXbkTERkA3V5CHsZN4+PDwCFIJvdpunTThqQTMPRrTQP1FRMx X7vC2KFGM+gzwIovwWUaDPmZWzwZFuffB7zaYaz8fq9X28bic3GgLYi1jomtxUvJVG4k CgCw== X-Gm-Message-State: AOAM530mD3At6TtPD3P2fZOsyJLyW0OA0J42fCvR7TPanEkWrEs/bNsH HL4QVEEwhbMIYoh5CdmtMsXCnkbnrnA1tI3mxE2SZQ== X-Received: by 2002:a05:6a00:16c4:b029:162:bf9f:6458 with SMTP id l4-20020a056a0016c4b0290162bf9f6458mr2014799pfc.55.1605274975132; Fri, 13 Nov 2020 05:42:55 -0800 (PST) MIME-Version: 1.0 References: <20201113123035.tjllvijjzd54npsf@linutronix.de> <20201113132818.zhtdhzg6ukv4wgxl@linutronix.de> In-Reply-To: <20201113132818.zhtdhzg6ukv4wgxl@linutronix.de> From: Andrey Konovalov Date: Fri, 13 Nov 2020 14:42:44 +0100 Message-ID: Subject: Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq To: Sebastian Andrzej Siewior , Greg Kroah-Hartman Cc: Dmitry Vyukov , USB list , LKML , Andrew Morton , Alan Stern , Shuah Khan , Alexander Potapenko , Marco Elver , Aleksandr Nogikh , Nazime Hande Harputluoglu , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 2:28 PM Sebastian Andrzej Siewior wrote: > > On 2020-11-13 13:51:19 [+0100], Andrey Konovalov wrote: > > Hi Sebastian, > > Hi Andrey, > > > Replaced with what and why? > > Linus requested in > https://lkml.kernel.org/r/CAHk-=wht7kAeyR5xEW2ORj7m0hibVxZ3t+2ie8vNHLQfdbN2_g@mail.gmail.com/ > > that drivers should not change their behaviour on context magic like > in_atomic(), in_interrupt() and so on. > The USB bits were posted in > https://lkml.kernel.org/r/20201019100629.419020859@linutronix.de > > and merged (which is probably the same time as this patch). > > I haven't look what this code should do or does but there are HCDs for > which this is never true like the UHCI/OHCI controller for instance. We could go back to adding softirq-specific kcov callbacks. Perhaps with a simpler implementation than what we had before to only cover this case. Something like kcov_remote_start_usb_softirq() and kcov_remote_stop_softirq() that do the softirq check internally. Greg, what would you prefer?