Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3671272rwb; Sun, 25 Sep 2022 10:25:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6D10RIbUJSYAK+Ve5KFwYc65BcLGrIvU8Exm1HXAm2dEa3Rb9QqA8yoICyxcJmlYTTeDO9 X-Received: by 2002:aa7:da8c:0:b0:453:7d19:8b3a with SMTP id q12-20020aa7da8c000000b004537d198b3amr19145639eds.103.1664126736703; Sun, 25 Sep 2022 10:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664126736; cv=none; d=google.com; s=arc-20160816; b=iuAeKJEwwrtvK/Iwtl/Ue4NkPj3LCM8OWMCpirO7p7bIQAYEPNS2nWziGdNgcQf5Dk suui3oawnggXEfwJWKXavHYb/K3jrmDw3+QA34YDEYTJ2naMUpPMKhIFJaCLXQ/87wQZ Pm7QTWoOM0j9X62Ahp28t7M9h++P21twPyVlSq6EFIC0s/2WjkhzcTrPv9GiyvZksDFl lDKJJ2ikIOYtUV+Be+Y0Xexj2rJTxfhs6nAYBhDJGaqbORfKhsOLhEX6id9Ic+Xf2uQm z3xwpiaO7q0iqc2uGmNKtMLLSVV25UI2NuUVQEPXzqJagOhX7Z9FUL/0NWWz1SzhemS5 8Ndw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ky5Adl6C+4aX3Brpf29Pzd/6UXQ2gwW9189O0+AcBu4=; b=E4nExNW94LaHOpoE2aM38l1JBu3rmigtIuuGoJ7MZN6dRbtDQUt57n6+4NBzw52VCa gvpaXIkcgLQ7muGSN2C3Q8h2XeBFSpuhdQyWMeP5+xHgwF946xWXKa8c7Lh/opx27KHK cGkESr99nu7opWUQRcLitP2TIy9U5jyKnjguS2ejfrOWH1eo9IaadYTh5ybKTB9BaHwe cl46HVtW9OSZGAJvF7okhRkrJ2u2F2iXBFe/tuAOQAXJthpbVJxCU5o6eKYAS6p/P93q aZWqPzyJYNNz2tPvt+edj7LhHhJMudsqIYdD+lPjxBvS/Uwee7Q1F75bVNAVNpzhMsRv zPAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Zw/6SNPl"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt22-20020a170906b15600b007417c184ea5si11812049ejb.628.2022.09.25.10.25.08; Sun, 25 Sep 2022 10:25:36 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Zw/6SNPl"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232888AbiIYQuM (ORCPT + 99 others); Sun, 25 Sep 2022 12:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231805AbiIYQuJ (ORCPT ); Sun, 25 Sep 2022 12:50:09 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8880F1929A for ; Sun, 25 Sep 2022 09:50:08 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d10so3460570pfh.6 for ; Sun, 25 Sep 2022 09:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ky5Adl6C+4aX3Brpf29Pzd/6UXQ2gwW9189O0+AcBu4=; b=Zw/6SNPliN4Fe5XyZ1d+VE8fT6X2mSHXbuYtpmc6vjjwCnEU2V1R+CVRzjQPP5151t JF9Mc9xqm/0qNdafsTsfDn1jJvmf/DCTZCpbct6wJJy6fbWJhYXiekdFoA131N+5Sgdk UPxJ8ZzVsmGB2p0uUbY5cL9YMkghkyRKi/8ejuuEF7bOLW9jXxwoTVIaC4Kqr4YIf0Bs CVEERVJxVgEVuQ51XIB/O8JzhNKwARdfZKM80wnEA1jElP60OYwoVey5Fk/kKJUe2fNJ QnMzaExxCMnQNH8J69u/fmJIjtJPK2wFt2IjW5x4bFUXQDNn/e0JXMNtw183rvxzRI3r 5nMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ky5Adl6C+4aX3Brpf29Pzd/6UXQ2gwW9189O0+AcBu4=; b=2qQpwqFroUVTse3rsKReb64DHUsgnEI6ObF2t95Wqg0kJidmlYwxcVMdGs4ZCJNfqd 4EBVwyDX8zmecx2Q7wjdew8c+MSO1GWI/SMw4iPhZhLrvrqgevy3gpo0CxQ2+R3RyYM/ Eime/fTk//HCKGryYj1KbnZv+43sA5byza+8/VULTTffBJNWAZiFrf5Cw9MuiB9LpvSI 6U+KPEdSnOsNTHUPECSf6GQOFhgu0+Hb0SdPW0XY1iQGNWIsIRZxzw6bbWttmc/GAkZW oJ7K8Vn4hiGOOoowO16BTbXPA/u2JgFfxZLqPshdxEAgdm577G5eIgHdmhdr/xnvC5+c GD0w== X-Gm-Message-State: ACrzQf2N9k916rA6P2GgA3MplJhKS7psYoU//rfcxZdU13m+lQlxm8hp xmkLaIxr6idg2ljjn6fl+j5hqDDcJ4dQ6gArQnM= X-Received: by 2002:a05:6a00:16c8:b0:53b:3b9f:7283 with SMTP id l8-20020a056a0016c800b0053b3b9f7283mr19567668pfc.46.1664124608056; Sun, 25 Sep 2022 09:50:08 -0700 (PDT) MIME-Version: 1.0 References: <20220819032706.695212-1-xiehuan09@gmail.com> <20220819032706.695212-3-xiehuan09@gmail.com> <20220924160136.5029e942@rorschach.local.home> <20220925115335.44b58732@rorschach.local.home> In-Reply-To: <20220925115335.44b58732@rorschach.local.home> From: Jeff Xie Date: Mon, 26 Sep 2022 00:49:56 +0800 Message-ID: Subject: Re: [PATCH v15 2/4] trace/objtrace: Get the value of the object To: Steven Rostedt Cc: mingo@redhat.com, mhiramat@kernel.org, zanussi@kernel.org, linux-kernel@vger.kernel.org, chensong_2000@189.cn Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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, Sep 25, 2022 at 11:53 PM Steven Rostedt wrote: > > 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. Thanks a lot ;-) > > > > > > > > > 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. Nevermind, I've always been a fan of ftrace. > > -- Steve -- Thanks, JeffXie