Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2326741ybh; Fri, 24 Jul 2020 09:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywbhH8fWe3N1AJkVqbVdnLcsrOZ0bLhWFGlPjQztm5yKq67djTbSNNgRTAF6oqsr9OYQSG X-Received: by 2002:aa7:da0c:: with SMTP id r12mr7934454eds.109.1595609880779; Fri, 24 Jul 2020 09:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595609880; cv=none; d=google.com; s=arc-20160816; b=mb+E2o/MMm9ndIVRoVpeZYihORo1QGgzRUOqU311WCmEev8tydjhyMKzruAPNBIEzR /v0FrVxG7cQccgfbEa5mhw2pQISw8h3xd6PRoT8wxaiL8Dmrs6m/48MuCuuC84W1NaCt 7QdqGz8C+LnO9pG2gRQkbfVikXSs1WIV+LVMzmfQ/lYwHmLzEQlJQdCKQJTENf8tbl1f 1ddLjtraCAl+i3AdxIzwR205+8ThvK4/d7s1SBQNpWHXtZ311xl88YmJIaUmaOFclrw1 6hboY5ogPnw0VqDCVqT0K6iRzlYxE7FvXxPNU5CFk8YDtbdipTZ2q6eiGnTg5qholVdv /vkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=uoehgkrAqINDH0LzbpO5JCDBhRCdIMOcm5xc/D7Rx7A=; b=SULEeVcpgxTr8/MIHubHjxT55SxCkfsybZQLEfKEfu6/P0PDUKecE+LOo9FmGOC1s/ Q/by6NnXggJKd2/sfULogukwMpsLN11sBDyEBHUtPzDNjQ+Si85H3HBs6x9b6ojTqUq+ EsD3ymJAtl9hyJXl7+CRUCxKhtrKKwN/EQRcmarg0kicyOcMIeBuVGVRhWhK2EREJ0wP AkK7nNiY5ynOnsepST6u0e2NTWkV4s0odLbP4Wi3q39LeAsGNNhDRQ+LNjdqFauJYL4G kJU6WLEbxKi4P9IXpjUGUgKD/kvDz6ql/KliMuIKZSqB1T4darxvAfPPnMBg/zefeOXE yapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zloXNCE9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re8si889581ejb.627.2020.07.24.09.57.38; Fri, 24 Jul 2020 09:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zloXNCE9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbgGXQyw (ORCPT + 99 others); Fri, 24 Jul 2020 12:54:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:60664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbgGXQyw (ORCPT ); Fri, 24 Jul 2020 12:54:52 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E05642067D; Fri, 24 Jul 2020 16:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595609691; bh=azXTuPtD0wyxhJb8+S80ttgXv1X66U18s0TnoZF41UA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zloXNCE9NRhNj/XI9NCCd6p1AAExb8vucsyQl478RGtY28vDzOVkDucgKtkbl8La8 ibNTj5s/UOlYsUTV0n7bVo5QY7ig4T2uODiZsILUzoTZuQJUHnsEnH+2hrNdH4jtC4 p92gnj/uPjhZ6Pe74RteAMaWm7x0NS99W8shLD2M= Date: Sat, 25 Jul 2020 01:54:45 +0900 From: Masami Hiramatsu To: Jisheng Zhang Cc: Mark Rutland , Jonathan Corbet , Catalin Marinas , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Anil S Keshavamurthy , Ingo Molnar , Steven Rostedt , "Naveen N. Rao" , Will Deacon , "David S. Miller" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v7 3/3] arm64: implement KPROBES_ON_FTRACE Message-Id: <20200725015445.d789abc36fcef2d7bd3436dd@kernel.org> In-Reply-To: <20200724150611.40b17827@xhacker.debian> References: <20191225172625.69811b3e@xhacker.debian> <20191225173001.6c0e3fb2@xhacker.debian> <20191226115707.902545688aa90b34e2e550b3@kernel.org> <20191226110348.146bb80b@xhacker.debian> <20191226121108.0cd1b078@xhacker.debian> <20191226182607.06770598a00507090a046951@kernel.org> <20200721222455.e99fb8660f69f61ad1bc8942@kernel.org> <20200724150611.40b17827@xhacker.debian> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Jul 2020 15:06:11 +0800 Jisheng Zhang wrote: > > On Tue, 21 Jul 2020 22:24:55 +0900 Masami Hiramatsu wrote: > > > > > > > Hi Jisheng, > > Hi, > > > > > Would you be still working on this series? > > I will rebase the implementation on the latest code, then try to address > your comments and Mark's comments. I will send out patches in this weekend. > > > > > If you are still want to put a probe on func+4, it is OK if you can > > completely emulate the 1st instruction. (lr save on the stack and > > change the regs->sp) > > Will check which is the better solution. Thanks Jisheng! What I'm considering is the consistency of pre_handler()@addr and post_handler()@addr+4. Also, whether the value of regs (and stacks) is same as the user expected. Thank you, -- Masami Hiramatsu