Received: by 10.213.65.68 with SMTP id h4csp3988238imn; Tue, 10 Apr 2018 07:37:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tJdgujXg9YEwualcXQxV6bWTrmayJ6zsS5jLSN4BwNs60sQJH3TOEiScCVzQB2t5FVj/3 X-Received: by 10.99.171.11 with SMTP id p11mr519300pgf.176.1523371061796; Tue, 10 Apr 2018 07:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523371061; cv=none; d=google.com; s=arc-20160816; b=XUF+6f02GfbK3Oy2jkKJG8U8IPS0nCghBDFwTU8+QHyIpsknCGoS0vexjFjdQd0EO8 Bf1E5X1v/U8M0O1wtVRo+olktglDXoYTqB/RwttaG8Eyak+Hss2o+X5dXo1BCWECjpOw sdyfyE8ElsEVy537qzJHdaIk4yMZ1BoV9QoITEjfMTEaEJmzNF5aFT5Y1ir8qLFSigSP uzULI+w3YsHZCjBK6AfbwNVvedQqLQqhr4I/4qRpP7cYNH29vkqYD4obt/oACEwhf/AJ a4hXgdPXwO+ze8ttMFObMEGeaoLCOzWTo8LXVRsX2Zp2V6D/p4JzHPfWasbbrkqm9Oga 04pw== 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 :arc-authentication-results; bh=xc2mZjzVct0xCRiT3UEfLmphaCOE6UbXvK+yGuQjKEA=; b=o8DLqonhNje3CiP3tYyFlrIce1hj15Z9bw1/n7ei+P5D756n4NmgMQsRipwn4Ze0Ha 0/eTYJO3nhoopPnjHFqJvYZTVY4fvhj5qvaqNSIm3LQrzgjG66eXC1pNoyAunaH/3kuF lVjRhfTJIchpQUTFfFSDFMgqnCVsO7gjlwvY8jA4aumNqzCig6RpPofLUhZ7MNOvLRlj mhHwQ2xytUHzw+VUvu/54tUH+188pKZt2gX2OAnOsNODsTRnt+eQ+5MgPS/L3Mu9i/ai fPngAwah4UUwyols9TLwEqd5DAGcypJNG3hCJ/q/ohKlDIaS4QQkhnQnzUVCmNC3cMEu Wemw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si1914654pgr.63.2018.04.10.07.37.04; Tue, 10 Apr 2018 07:37:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754081AbeDJObI (ORCPT + 99 others); Tue, 10 Apr 2018 10:31:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:56118 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753047AbeDJObH (ORCPT ); Tue, 10 Apr 2018 10:31:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9F003AFB5; Tue, 10 Apr 2018 14:31:05 +0000 (UTC) Date: Tue, 10 Apr 2018 16:31:05 +0200 (CEST) From: Miroslav Benes To: Petr Mladek cc: Joe Lawrence , Josh Poimboeuf , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, lpechacek@suse.com, nstange@suse.de Subject: Re: [PATCH] selftests/livepatch: introduce tests In-Reply-To: <20180409140549.q6jybx3zirnsl2pp@pathway.suse.cz> Message-ID: References: <1522266588-11806-1-git-send-email-joe.lawrence@redhat.com> <1522266588-11806-2-git-send-email-joe.lawrence@redhat.com> <20180407023646.k3gjrgjwzhwgu6fq@treble> <20180408154231.ihnglqyya5nric4q@redhat.com> <20180409140549.q6jybx3zirnsl2pp@pathway.suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > I love this. Nice work! Yes, it looks really good. > > > As you and Petr discussed, it would be nice to get rid of some of the > > > delays, and also the callback tests will be very important. > > > > I've got v2 WIP that minimizes the delays, cleans up build flags, and > > adds a basic shadow variable test. > > Sounds great. > > > Since these tests are based on top of Petr's current patchsets for > > atomic replace and shadow variables, it probably makes sense for those > > to merge first. I can post test results to his patchsets if that helps. > > Sounds good to me. We could synchronize the merge. But I think that it > will not be a big deal if we would merge the atomic replace slightly > earlier if the tests needed some more love. Well, it depends. Josh wants the patch first and then atomic replace. So we can merge selftests for all features we currently have and tests for atomic replace could go with it. > > These tests are basically a mash up of some of the tedious callback > > Documentation and shadow variable sample livepatches. Since there will > > be a lot of duplication, should we just remove redundant doc/samples in > > favor of these tests? > > Yup, it does not make sense to maintain two copies of basically > the same modules. Yes, but I'd leave a basic sample module there (that is, the first sample we had should stay). Libor and Nicolai from SUSE CCed. We have some internal tests as well and it would be great to join forces. Regards, Miroslav