Received: by 10.223.185.116 with SMTP id b49csp1188168wrg; Fri, 23 Feb 2018 13:34:56 -0800 (PST) X-Google-Smtp-Source: AH8x224zaRYOY2BnBFmI4MGEhNVYHcZHYMwghTgst5jmKpuU+UKqZPAAl3q9Ux1HKi+6LhpqvdTC X-Received: by 10.98.196.199 with SMTP id h68mr3051837pfk.42.1519421696594; Fri, 23 Feb 2018 13:34:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519421696; cv=none; d=google.com; s=arc-20160816; b=Gezr9guoZr4isr9Ckw9hZTSNTMkNHrSuPXrAOhGEZPHtkqkACsw0zK3fLuJWfgpPzY baYkDvrW2BYLvx/axebAmbqJXFuoQL4nSk359GxGnSTz1Ms59iWKmN/Bb2jyOD3Ws0kR 5XfhhVvqp4lYaoBTSXu6jjrxVppaWRFUaLPwxgK1nmC3HZTZ9ezexqquxgstZy/O+dvG 0q5nmpg5JshuzeFzMfycNse51u0YisipKoFsKvoMUSToWgvevN4GU9zyHiZ0wMU/894u iR/ciOTHswK83CifhNul7cU81J7yLZq+/Czohxj6tCNKcKQdkLMRoVU1LbyA166VGyWe 8wRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ngb+L3B7Clzhp61Z40KdlI8/cc6V+HX2vYHhMwbXLKc=; b=RalTzrPSnugnPEux47KacbX3MHfx9ilj5nPGCvDaaxn/howEHVD+zwcN3O7XVsX2DF fVcR2iJg3RFGK8MjO/LUTfy+SnqNUl/Tdl4mhqedsaKKZnIQRIJ5O2vxtOTIUWluKOcr FX7peET3yZ1wTJAPOECyBFDg7tGYb4P3xsikgMtKoNovFDSHmUW5z+Zv5WzwA+COYYYV Ut2ecmHcdLrsnrJGbQMcAAifeRvm/cqmpUhC+jmhFZAXEq438Dg65xsG9oqrLSiEcCiJ o2oOnx59fIg47xRybu9I2wrHnOGcsQ80gcGj8GW8RVpJim8veCSyNsZJprmDX6g43gZS NRLA== 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 w22-v6si2322007plq.605.2018.02.23.13.34.42; Fri, 23 Feb 2018 13:34:56 -0800 (PST) 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 S1752162AbeBWVd4 (ORCPT + 99 others); Fri, 23 Feb 2018 16:33:56 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:32992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751527AbeBWVdy (ORCPT ); Fri, 23 Feb 2018 16:33:54 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 47AF18185351; Fri, 23 Feb 2018 21:33:54 +0000 (UTC) Received: from jlaw-desktop.bos.com (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id C64BF10AF9E8; Fri, 23 Feb 2018 21:33:53 +0000 (UTC) From: Joe Lawrence To: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Josh Poimboeuf , Jessica Yu , Jiri Kosina , Miroslav Benes , Petr Mladek , Jason Baron , Evgenii Shatokhin Subject: [PATCH v0 0/3] additional cumulative livepatch doc/samples Date: Fri, 23 Feb 2018 16:33:47 -0500 Message-Id: <1519421630-12025-1-git-send-email-joe.lawrence@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 23 Feb 2018 21:33:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 23 Feb 2018 21:33:54 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'joe.lawrence@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miroslav, This is a follow up to my comment on "Re: [PATCH v8 8/8] livepatch: Atomic replace and cumulative patches documentation". Here's what I was working on today, I can update for v9 and squash into a single patch or two if that fits into the patchset better. (Or Petr, feel free to grab these and run with them if you prefer.) I definitely agree that the complexity of the scenarios and cornercases is starting to get out of hand, at least in keeping it all in my brain for any period of time :) I like the idea of transforming the growing sample set into a testsuite of some kind. Having regression tests would ease the burden of reviewing patches and accounting for all these use cases! Hope these help, let me know if you'd like any modification or other tests. Joe Lawrence (3): livepatch: add sample cumulative patch livepatch: update documentation/samples for callbacks livepatch: update documentation for shadow variables Documentation/livepatch/callbacks.txt | 102 ++++++++++++ Documentation/livepatch/shadow-vars.txt | 24 +++ samples/livepatch/Makefile | 2 + samples/livepatch/livepatch-callbacks-demo2.c | 162 +++++++++++++++++++ samples/livepatch/livepatch-cumulative.c | 216 ++++++++++++++++++++++++++ 5 files changed, 506 insertions(+) create mode 100644 samples/livepatch/livepatch-callbacks-demo2.c create mode 100644 samples/livepatch/livepatch-cumulative.c -- 1.8.3.1