From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075Ab2LVRN0 (ORCPT ); Sat, 22 Dec 2012 12:13:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30130 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847Ab2LVRNW (ORCPT ); Sat, 22 Dec 2012 12:13:22 -0500 Date: Sat, 22 Dec 2012 18:13:29 +0100 From: Oleg Nesterov To: Anton Arapov Cc: Srikar Dronamraju , LKML , Josh Stone , Frank Eigler Subject: Re: [RFC PATCH 5/6] uprobes: add bp_vaddr argument to consumer handler Message-ID: <20121222171329.GA20691@redhat.com> References: <1356088596-17858-1-git-send-email-anton@redhat.com> <1356088596-17858-6-git-send-email-anton@redhat.com> <20121222163545.GE18082@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121222163545.GE18082@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forgot to ask... On 12/22, Oleg Nesterov wrote: > > On 12/21, Anton Arapov wrote: > > > > struct uprobe_consumer { > > - int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); > > + int (*handler)(struct uprobe_consumer *self, unsigned long bp_vaddr, struct pt_regs *regs); > > It seems that we can do better... > > Just change regs->ip before calling ->handler(). Josh, Frank, will it work for you? I assume that stap never needs the "real" ->ip after bp, it only needs to know which bp the task hits. And once again, in any case ->ip will be changed after ->handler() is called. Oleg.