Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp256753imm; Thu, 11 Oct 2018 20:02:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kvq7EoenXikZgh+6WtnadlXs79bYLHE89zhD8ArWyIMWJVHUpubn+WNGY6rNYLeUt6/aL X-Received: by 2002:a63:9507:: with SMTP id p7-v6mr3810096pgd.449.1539313361487; Thu, 11 Oct 2018 20:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539313361; cv=none; d=google.com; s=arc-20160816; b=glOAsWRS83Kiw+M43xDECUcBROu7kEnvASZ0FandMN+/9FTR6ak+sneqCqTBuyZa8P fL+NhffwYwo4+fJ6Vm0nPOuK3TxLE9UI03yyJMcLVbsLrWgodbIV8esUlQNVM3Oo3zr2 3+EsghZ8ymZV3D3WJLkdwRKId7mw22lUmvt5AdiUIdLiEOrl/bfS1ThrPwxQso3ZBAe0 Bp7aTPVs5shIKXqUL1ujtTEq09mGZLvBx6AGXXaB2HhuhTkk8z6HZ1ztpOOdwiMB6yLf qteX3dDrcMzQjctOodlKXV95j4y+qebaBEL9En2UpmdQOUK6NvKzE6TbOxhuEiZ5g7UX ZgPw== 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; bh=82qSKKG9A6V4hmV6ZKBmFfdjTbxw77R2eLKz4N2KoHg=; b=qZE0cM4lLf3ohX68EyCjmSeUjqm1xUXXhSY+yIg7TUosU70W5ZbTrd5MCXEdEyx/QF iGdg7LEw+LBq5XYs6Mmm9k8C4l74YVGjDujtaEzHVfjU4DZQc014/Dg58d2kBozNovum jxUbjHejhtIhcyKiteAlvZ1LzkRFCdJp9FeHaltW4wde3UbRbnYUW4i4CldVk/oZ+Bx8 8G8amrF5HvnrXeuDo9yv1FStHpe0bwbM0954rlfHk1wrMF7kVAJZ++XDB5eG2B1uqNWd RhiOtXVU9Vnf6xP66onLzp1n7aWiddAYd31vyw5xS3/Oqxbj/lVCfvYMnRQ5bQQgPI+c B3nA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u68-v6si31850741pfa.28.2018.10.11.20.02.26; Thu, 11 Oct 2018 20:02:41 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726958AbeJLKcG (ORCPT + 99 others); Fri, 12 Oct 2018 06:32:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:34084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbeJLKcF (ORCPT ); Fri, 12 Oct 2018 06:32:05 -0400 Received: from vmware.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 A02D620835; Fri, 12 Oct 2018 03:01:52 +0000 (UTC) Date: Thu, 11 Oct 2018 23:01:51 -0400 From: Steven Rostedt To: LKML Cc: Thomas Gleixner , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" , Masami Hiramatsu , Andy Lutomirski , Josh Poimboeuf Subject: Re: [RFC][PATCH] x86: ptrace: Add function argument access API Message-ID: <20181011230151.25ba36f3@vmware.local.home> In-Reply-To: <20181011230021.0a7604fa@vmware.local.home> References: <20181011230021.0a7604fa@vmware.local.home> X-Mailer: Claws Mail 3.15.1 (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 Thu, 11 Oct 2018 23:00:21 -0400 Steven Rostedt wrote: > A while ago I posted an RFC patchset for dynamic function based > events. But Masami pointed out that this could be done with kprobes > with minimal changes. He posted a patch set back in March > http://lkml.kernel.org/r/152049860385.7289.14079393589900496424.stgit@devbox > I've pulled this in locally, but haven't had the time until recently > to look at it seriously. I even plan to talk about these changes in > my talk at Open Source Summit in Edinburgh less than two weeks away > (talk about conference driven development!). > Anyway, the one patch that really needs external approval is the one > that creates a new architecture dependent API to retrieve function > arguments from pt_regs if the ip is at the start of the function call > (via a breakpoint or ftrace fentry). That's this patch. > > Anyone have any issues with it? If not, I'm going to start doing some > serious testing of this code and try to get it into the next merge > window. You can also play with the full repo here: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git branch: ftrace/kprobes -- Steve