Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757072AbcCCJzA (ORCPT ); Thu, 3 Mar 2016 04:55:00 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:45217 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756583AbcCCJyy (ORCPT ); Thu, 3 Mar 2016 04:54:54 -0500 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: kamalesh@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;live-patching@vger.kernel.org Date: Thu, 3 Mar 2016 15:23:53 +0530 From: Kamalesh Babulal To: Balbir Singh Cc: linuxppc-dev@ozlabs.org, duwe@lst.de, linux-kernel@vger.kernel.org, rostedt@goodmis.org, pmladek@suse.com, jeyu@redhat.com, jkosina@suse.cz, live-patching@vger.kernel.org, mbenes@suse.cz, Torsten Duwe Subject: Re: [RFC][PATCH][v2] Enable livepatching for powerpc Message-ID: <20160303095352.GA21283@linux.vnet.ibm.com> Reply-To: Kamalesh Babulal References: <1456988454-26437-1-git-send-email-bsingharora@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1456988454-26437-1-git-send-email-bsingharora@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16030309-0005-0000-0000-0000036FC067 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 38 * Balbir Singh [2016-03-03 18:00:54]: > Changelog: > 1. Implement review comments by Michael > 2. The previous version compared _NIP from the > wrong location to check for whether we > are going to a patched location > > This applies on top of the patches posted by Michael > https://patchwork.ozlabs.org/patch/589791/ > > It enables livepatching. This takes patch 6/8 and 7/8 of v8 as the base. > Removes the extra strict check in gcc-profile-kernel-notrace.sh > and adds logic for checking offsets in livepatch. The patch > for HAVE_C_RECORDMCOUNT is not required and not used here. > > Depending on whether or not a TOC is generated, the offset > for _mcount can be +16,+12,+8,+4. The changes are such that the > offset checks are specific to powerpc. > > TODOs > 1. Build a version with offsets removed and rebuild > ftrace_location() sort of functionality > 2. Make livepatching experimental on powerpc > > Comments? Testing? I tested the sample in the livepatch > directory > > References > > 1. https://patchwork.ozlabs.org/patch/581521/ > 2. https://patchwork.ozlabs.org/patch/587464/ > > Signed-off-by: Torsten Duwe > Signed-off-by: Balbir Singh Tested-by: Kamalesh Babulal