Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3620237rwb; Sun, 25 Sep 2022 09:32:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CcA+a8vrZ6G8ZZf6hx0uKwSXHBCTAZrBvyrJt/QxYk5GLm7lckBHltplAMIvrjoZHv7gp X-Received: by 2002:a05:6402:f10:b0:455:224a:c339 with SMTP id i16-20020a0564020f1000b00455224ac339mr18375568eda.307.1664123537564; Sun, 25 Sep 2022 09:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664123537; cv=none; d=google.com; s=arc-20160816; b=KagbGKuJB/GoLjQQms90CTmEWometI3PGlVje+eFi/9vBOIiqjjvFC1YxJX3c7k/gA F2OnYAU++64JUfCAiILqNC74LrMeEML7XHyfqasPrZwixmfdQSRSE0n0Mf+KnOp4u2XX QD9imUl14k/5BztYjZGuEqEh76pTTm6RclhaEpy6L/HchMuxKZ5Kjh+zEPYNr0oPBruU WiApZ+Q/2HnVxa7AMlEzWchCkBxvg4DFL2WlmAF+iwkRVxFLptyPbzznY67QI4N9m8T1 UdeP6+70Gg0xdM4r6OVbpDAef9NLhQ/QjmkGw+VM4bSb6jUs9+p4QMANYicEeB323L10 SNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+fhCBThyWnOV+Dn2pOL10BxMCaiK6niePLyIZcs/jBE=; b=ZZxialmDPDwmJfIkSTFSaxlrUYsx9sEM8EBta/FmSEt0lXljoVlra3a2xiPJAWYwQM AV+V7fQcxGbPrQynEK2EKwUtJo3TRjWNlWMkh+Fch81obZPVJJar8lIFEe41r+dPB8Ht Yb3jsfjQkvSLtvO8tjihrio20fzwiAiiN6HbXTUnHBXtYnfT/LrDfP7bm+fowYFTnJ2U xK0ArA4sAiSqGEtqvhnqfd2uwBEkSs7e2DAXVQtJR8MajDyvdDv+P/kQx7X/voGPwaQM F33jiZaxmvc1L/8MCsk5j/I4FuswJ/JYqz1Eo1kW9Aa33hJ31yKUHll+QLxenNw+k4If T4BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id er21-20020a056402449500b004573f60f27csi964754edb.440.2022.09.25.09.31.52; Sun, 25 Sep 2022 09:32:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232707AbiIYPxn (ORCPT + 99 others); Sun, 25 Sep 2022 11:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231332AbiIYPxl (ORCPT ); Sun, 25 Sep 2022 11:53:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C96D92C11F for ; Sun, 25 Sep 2022 08:53:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7D109B81259 for ; Sun, 25 Sep 2022 15:53:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 624BDC433C1; Sun, 25 Sep 2022 15:53:36 +0000 (UTC) Date: Sun, 25 Sep 2022 11:53:35 -0400 From: Steven Rostedt To: Jeff Xie Cc: mingo@redhat.com, mhiramat@kernel.org, zanussi@kernel.org, linux-kernel@vger.kernel.org, chensong_2000@189.cn Subject: Re: [PATCH v15 2/4] trace/objtrace: Get the value of the object Message-ID: <20220925115335.44b58732@rorschach.local.home> In-Reply-To: References: <20220819032706.695212-1-xiehuan09@gmail.com> <20220819032706.695212-3-xiehuan09@gmail.com> <20220924160136.5029e942@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 25 Sep 2022 13:27:10 +0800 Jeff Xie wrote: > > It also looks like the "add" command field has been removed, > Masami previously suggested I to add a reserved command field for the > future (see [1] and [2]): > > [1]: > https://lore.kernel.org/lkml/20211026225234.549ec8e9eb59f1fd1671edbc@kernel.org/ > > [2]: > https://lore.kernel.org/lkml/20211105004704.3f4aa456c2c537a56f64e65a@kernel.org/ Ah, I see. add means enable the tracing and del means disable. Masami, perhaps we should call it "enable/disable" instead? Because, to me "del" means to remove it (permanently), where as "enable/disable" matches other triggers like the "enable/disable event" that starts and stops another event. > > > > This code is available in the kprobe code that eprobes also uses: > > > > See process_fetch_insn() in kernel/trace/trace_eprobe.c > > > > and the parsing of the string is in kernel/trace/trace_probe.c: > > > > parse_probe_arg() > > > > Thanks for your guidance, but the next merge window is coming soon, > and since I'm not doing full-time kernel development, > I can't guarantee that the development and testing of this change will > be completed before the next window merge. > > Anyone familiar with this code providing a patch is welcome ;-) If I get a chance, I may see if I can quickly implement it. > > > > > I think doing this will make it much more extensive, not to mention it > > will match the syntax of other code in the tracing infrastructure. > > I super agree. Thanks for you patience, and I'm sorry it took so long for me to review it. -- Steve