Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5032431ybb; Tue, 24 Mar 2020 09:41:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt5KHuIxFqtJ6FpIKimS/kkbzXyWLInz9WKPxllOHsVidlqt6B5e3dk2TtPqwMxMFHp62US X-Received: by 2002:a9d:228:: with SMTP id 37mr23711861otb.52.1585068112658; Tue, 24 Mar 2020 09:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585068112; cv=none; d=google.com; s=arc-20160816; b=tBywuDes2iA/VBspwvTCfI2nT0sAKlAwDKm3gkgW1hbYdXLWW8eNRYJvXTpIOy/QK1 kXRVHpJjTfvHj8hw9DlHIik//W3hLtcg/dBA6cUNbg5jCOtysg6exkMXuKYMD23ZZxQ1 eNFxnSJjYzzRXG2/Lup4KRp+IJUAEvCBC2hny+W0H3lotJk6GZ2YFRgI7nWWjWgS6Nsu EcC8HtN1q93R/ICs1eB6sTIB1HsDYsgzZ6PiVc25RTo5rnNYSNfr7hNbRh5t0ibb3kYj zWwkE8M7Jas51RTzV3SaHBZuPHapSKIHWT79GUs0Lm5DemfkPcVI3/PLyEn7RCz8QDYv MKNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Z05suOHf2IDzsq2FPAO2+DX7KrqPxW6csjVKUUkFIXw=; b=igNmGurz6b+MkLocyrUJAjwWknRqIxuFHQORIEpt8M4nnPuIUaCdoIOs42posuufsZ qXsv8EwP+wyab03SBBTxcUGQSz3JzK7kPJZD8v4cmNN1+JV0EeeslqqcXtLP7IWfcMiQ YpljIQhRmCeYm0YdSmERA8vlkoTlKaW3YPOfqJ9V3fuh7YVpVUWQdjJ/WQEjgqh5+Vu9 yhYLwp5dVu8qgX0k2iKAJsAIFIhYTfk4KixAkYHq45DqpA+RdRKUMB+UvWEupoNL1HR+ w2nrA+Hm2JdzOYsYxka+/6XI4g5EFLHrDU3VPeTFiMlRSmVNJ8mXDWyzall0vGx/CNHN 8smg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=gg6emeKg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si9177490otf.196.2020.03.24.09.41.39; Tue, 24 Mar 2020 09:41:52 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=gg6emeKg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727600AbgCXQkS (ORCPT + 99 others); Tue, 24 Mar 2020 12:40:18 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:42170 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbgCXQkS (ORCPT ); Tue, 24 Mar 2020 12:40:18 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02OGdEdY166419; Tue, 24 Mar 2020 16:40:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : in-reply-to : message-id : references : mime-version : content-type; s=corp-2020-01-29; bh=Z05suOHf2IDzsq2FPAO2+DX7KrqPxW6csjVKUUkFIXw=; b=gg6emeKgunC7p7RGjiJUerU/Uwo15KfvFn7XDFj7zqxWTZtUfQ2n9Yje4bU4h1+j+76q PGp3iuGJgG5dzy/WLXkJuNPFHDpLpLLVewOFZN9o6/JetCpGQg/6ikDOHd8VyjqYQ9rA 0X2qlZf7dOsrQBitgGr2hpQCI4ql2BtpRwztJcKA4L9qX0nOiy0I4B0fD6Ls/SNzSXQl Tnmwpywnw7kGUYUrkXPm+1/46hwiepQECpIY6b3SXoJs+yuqb1Yt3vS1OZWhVHYImhYt HcdpATyKFquNpnEwBl3dMk79FdK+ZOhxZ6wNh6rADwnYpYDdEPSOhMeALIaTBcRkSRnu KA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2ywabr5ef0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Mar 2020 16:40:00 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02OGKTKa091634; Tue, 24 Mar 2020 16:40:00 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2yxw4pmjd7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Mar 2020 16:40:00 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 02OGdwIG007862; Tue, 24 Mar 2020 16:39:58 GMT Received: from dhcp-10-175-162-99.vpn.oracle.com (/10.175.162.99) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Mar 2020 09:39:57 -0700 Date: Tue, 24 Mar 2020 16:39:50 +0000 (GMT) From: Alan Maguire X-X-Sender: alan@localhost To: Patricia Alfonso cc: davidgow@google.com, brendanhiggins@google.com, aryabinin@virtuozzo.com, dvyukov@google.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org Subject: Re: [RFC PATCH v2 1/3] Add KUnit Struct to Current Task In-Reply-To: <20200319164227.87419-2-trishalfonso@google.com> Message-ID: References: <20200319164227.87419-1-trishalfonso@google.com> <20200319164227.87419-2-trishalfonso@google.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9570 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=3 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003240087 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9570 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=3 lowpriorityscore=0 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1015 adultscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003240087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Mar 2020, Patricia Alfonso wrote: > In order to integrate debugging tools like KASAN into the KUnit > framework, add KUnit struct to the current task to keep track of the > current KUnit test. > > Signed-off-by: Patricia Alfonso > --- > include/linux/sched.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/sched.h b/include/linux/sched.h > index 04278493bf15..1fbfa0634776 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1180,6 +1180,10 @@ struct task_struct { > unsigned int kasan_depth; > #endif > > +#if IS_BUILTIN(CONFIG_KUNIT) This patch set looks great! You might have noticed I refreshed the kunit resources stuff to incorporate feedback from Brendan, but I don't think any API changes were made that should have consequences for your code (I'm building with your patches on top to make sure). I'd suggest promoting from RFC to v3 on the next round unless anyone objects. As Dmitry suggested, the above could likely be changed to be "#ifdef CONFIG_KUNIT" as kunit can be built as a module also. More on this in patch 2.. > + struct kunit *kunit_test; > +#endif /* IS_BUILTIN(CONFIG_KUNIT) */ > + > #ifdef CONFIG_FUNCTION_GRAPH_TRACER > /* Index of current stored address in ret_stack: */ > int curr_ret_stack; > -- > 2.25.1.696.g5e7596f4ac-goog > >