Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751496AbaKFUCe (ORCPT ); Thu, 6 Nov 2014 15:02:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751051AbaKFUCa (ORCPT ); Thu, 6 Nov 2014 15:02:30 -0500 Date: Thu, 6 Nov 2014 14:02:00 -0600 From: Josh Poimboeuf To: Steven Rostedt Cc: Christoph Hellwig , Vojtech Pavlik , Seth Jennings , Jiri Kosina , live-patching@vger.kernel.org, kpatch@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Kernel Live Patching Message-ID: <20141106200200.GB16347@treble.redhat.com> References: <1415284748-14648-1-git-send-email-sjenning@redhat.com> <20141106184446.GA12779@infradead.org> <20141106185157.GB29272@suse.cz> <20141106185857.GA7106@infradead.org> <20141106193433.GA16347@treble.redhat.com> <20141106144926.01441bdc@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20141106144926.01441bdc@gandalf.local.home> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 06, 2014 at 02:49:26PM -0500, Steven Rostedt wrote: > On Thu, 6 Nov 2014 13:34:33 -0600 > Josh Poimboeuf wrote: > > > On Thu, Nov 06, 2014 at 10:58:57AM -0800, Christoph Hellwig wrote: > > > On Thu, Nov 06, 2014 at 07:51:57PM +0100, Vojtech Pavlik wrote: > > > > I don't think this specific example was generated. > > > > So there are two ways to use this live patching API: using a generated > > module (e.g., using the kpatch-build tool) or manually compiling a > > module via kbuild. > > > > Vojtech's right, the provided example was not generated. Maybe it > > belongs in samples/livepatch? > > > > I understand that there is two methods in doing this. Is it possible to > create a "simple generator" that only does the simple case. Perhaps can > detect non simple cases where it rejects the change and tells the user > they need to reboot. > > Something that isn't really related to either kpatch or kGraft, but can > be used for testing purposes? For basic testing, a generator isn't needed. You can just use kbuild to compile a kmod from a human-created source file, a la kGraft. For example: https://github.com/spartacus06/livepatch/blob/master/patch/patch.c -- Josh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/