Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1008943imm; Tue, 2 Oct 2018 00:47:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DVaMJ9PWecnQqhQuoaqDueR39NCs7OfWo/1rNmCmTglCjPNiXJ90wS62aO1nS3hK6KNp0 X-Received: by 2002:a62:9605:: with SMTP id c5-v6mr960602pfe.26.1538466440349; Tue, 02 Oct 2018 00:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538466440; cv=none; d=google.com; s=arc-20160816; b=HV/no3gKjWaVW4KFPwz4VGtafYhqwLtn7x2R3+Vf3Ef18IrQu2Nyy1e3KlC0GnbniU 1+GTyOjC3GZgJCexDr41xY3VfJ0Os7ss+STP4nu57D9j24aVXN5B0aYVJ2sgIQ6qOmbI 2hMMasrO8AuQlabhk+bnPbCf4j5AJGZnsVaoCHuSwZJLqwH0yARjocCcaFSKkHUtIcaf OdWSuQn2TT87JKxhleeGO4ELGaw30dZRHbwvLwE+f60Kkrer8e7tcvXUCQq9laD1Li4d LBOxBQza10RH2wXpGCn9TrlZv3fU8bYHmE5UEcZMlz7fozYEfZsfaZMjHnt+tmv1InHM hrsA== 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=9mUe39jOHB09ijjWk5yJBZfXCI+4OZSZhl5DosFjauQ=; b=j34J76PRk/oAbtx+jEzjprZW43322rHeuYS/ADNpEW7H+sOgmeicv1YwoNiqI9KzF2 dDyKAUnnvvE1fq294V1b3jlRU17oGW7wMAnajyBRcYV9zB7YuTSuIg5dx8KKbrdZ41IJ dvobrDdIWUfMK8h6YFleIG4lm+PjD5Q0LaTMhiLSC+SbmkNODmsBJNo/G0dFQVvTsEVk 58M09wl+5M3DiRoeGEHdmiIdUXc0/LRGK07STt2n8wBMaaJF6DcGdo7dJM9UFgJtsDQr q8c9Nvy0fLKJXUAJH7E/DS8vhDgCaKSRgZlx0ap/1aChdCCnlwxlWvuUu+UjZVk9slvA CLQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o0syyzqI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si11575195pll.485.2018.10.02.00.47.05; Tue, 02 Oct 2018 00:47:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b=o0syyzqI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbeJBO1Y (ORCPT + 99 others); Tue, 2 Oct 2018 10:27:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:43106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbeJBO1Y (ORCPT ); Tue, 2 Oct 2018 10:27:24 -0400 Received: from devbox (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 05505206B2; Tue, 2 Oct 2018 07:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538466329; bh=xI3+UCa+FjTb418OOVN7z3015McL3RY8qpPsJs7PevM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=o0syyzqISeOdfmICm09PpEANermnDo2F66KcYMej8YP6g0FMS+iQ6tHPdQD1KAxdU rulbQNC3C0/KV36oDpDI0XK9rv+mZQs7EwszKfSuZPQOcy6XRf6rUZABmQaSGKF7Xe b5BeozFr1W/ZSjvo/vaWFJnggAY0zBcCZ0KBpMXU= Date: Tue, 2 Oct 2018 16:45:26 +0900 From: Masami Hiramatsu To: Tom Zanussi Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Ingo Molnar , Ravi Bangoria Subject: Re: [RFC PATCH 0/5] tracing: Unifying dynamic event interface Message-Id: <20181002164526.09f93bffa5d543f3a00e1080@kernel.org> In-Reply-To: References: <153806391326.18458.3927382953014694981.stgit@devbox> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-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 Hi Tom, On Mon, 01 Oct 2018 08:49:24 -0500 Tom Zanussi wrote: > Hi Masami, > > On Fri, 2018-09-28 at 00:58 +0900, Masami Hiramatsu wrote: > > Hi, > > > > This is an RFC series of unifying dynamic event interface on ftrace. > > Currently ftrace has 3 dynamic event interfaces, kprobes, uprobes > > and synthetic. This series unifies kprobes and uprobes event > > interface on "dynamic_events". This enables us to add new dynamic > > events easily on same interface, e.g. function events. > > This seems like a nice idea to me and I don't see any problems with the > patches themselves, so consider it > > Acked-by: Tom Zanussi Thanks! > > > The older interfaces are left on the tracefs for backward > > compatibility at this moment. > > > > dynamic_events syntax has no different from kprobe_events and > > uprobe_events. You can use same syntax for dynamic_events interface. > > > > I think we can integrate synthetic events to this dynamic_events > > interface but it will requires new syntax. e.g. > > > > echo "s: " >> dynamic_events > > > > So that's just the existing syntax, prefaced by s: , right? Yes, just for identifying. > > If it is OK, I'll add it in next version. > > > > Makes sense to me. OK, I'll try :) > > > BTW, since this dynamic_events interface derived from *probe_events, > > it inherits "all clear when truncate file open" behavior. But if you > > think this is too aggressive, I can drop it. (even in that case, > > kprobe_events/uprobe_events behavior is not changed) > > > > I also introduced a widely used way to erase entries in other > > interfaces of ftrace, that is '!'. So you can now use '!event-name' > > or '!group/event' to erase an entry in dynamic_events. > > (Wait... it has to be '!p:event' as others do??) > > > > I'd think the full form should always be accepted, but would only be > necessary in cases requiring disambiguation. OK, I'll add full form support. Thank you, -- Masami Hiramatsu