Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp717614rwb; Wed, 28 Sep 2022 08:15:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yIR9YaAxhYf5jXMx+v7RuS0hVwFTy7ad0uV/fPjK4zJxwOfVw6pUr3yWYA2BNK65JkQso X-Received: by 2002:a17:902:b68f:b0:178:627d:b38d with SMTP id c15-20020a170902b68f00b00178627db38dmr288237pls.87.1664378109485; Wed, 28 Sep 2022 08:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664378109; cv=none; d=google.com; s=arc-20160816; b=JxztqwJlSF8ZQBEqbKPv8UCTVTid4W8XqqDmP+tCWSw5YzEQY/46G16AU5HgHMAYsv lX8/uXwej8MvUvTzOY0QfXbLRsREMUsErpvnaxP4GYo7vA2v6dX2ThhqeH3NjJfUnrbG vD9PiOsw1j6/a10/Psdl2es68gRutNAATIRyCWTq99aoTSDf3gt7PTtA0AHg9lck0E7N HjGOMROxtV6Jr1QskRdfYiKy3cFQ+KfPBtRNO0j+UnDlIWXmeRFfXCiZoM7M0DvRz7FR 2WTSyF6XwtqdRnmrbRZ0xDThB8QRpM5uDcHRkfJ2yy/r5yHemF/WcTmhR2iCPpoKVLrI eAqg== 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=hktgs1ApCFso4Lgx9S/kJQ05/BGQ8OgyJMNxMyrvQBs=; b=zUi4CiQap+QIRP5x9iNRdr1nPlYt73Pjxp64CMSHGbhACgyZVVKanqLg9WDRjrHESX korfgIBdNheemOeyTlF/yt8NmeQHMKTTZm+kwpXIuALrbsYcapAVMkk4WROImhUbImU7 f4gdNAOooitJtghkXX167WMNpajvqvLRWQJbiH2mFcUSriXqpgl7nnpLVSqA7ynyMEYB EWaIg4geapS4828ywOU70AbwoKpcLG+wTfuCkNi/ur4abVMkvrfr7JX8bCoZa/7jZZj1 qPwrAaI/p+szn8LZ4PbBVoaDMKmYZYxz4x8FqGpk/fjQLH31OqjObr8/7w+QRqlq/kS4 TqxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="F/6RrXPN"; 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 u18-20020a170902e5d200b001752c126e5fsi5930894plf.111.2022.09.28.08.14.56; Wed, 28 Sep 2022 08:15:09 -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="F/6RrXPN"; 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 S234254AbiI1OPl (ORCPT + 99 others); Wed, 28 Sep 2022 10:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233482AbiI1OPj (ORCPT ); Wed, 28 Sep 2022 10:15:39 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE97F5F22E for ; Wed, 28 Sep 2022 07:15:37 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id i15-20020a17090a4b8f00b0020073b4ac27so1821741pjh.3 for ; Wed, 28 Sep 2022 07:15:37 -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=hktgs1ApCFso4Lgx9S/kJQ05/BGQ8OgyJMNxMyrvQBs=; b=F/6RrXPN2Oh00MjZTjWUsUmGG7qMPExV/sPvicQ1PPTbu6hbeu6/yb9iMjMeubGQK3 9ge9yEp0QjKJQ2RF+MCAo7wZtkh4ertFYACSS1KE84tGVhMGdvkFipbkACSgBrCod9ZX eHRMTY5kv3GZ3X4Wu1Lrj7oRakgo4PKOartXs0AxAILL+fZsy4nz4lbqMhADKVurrLLb VSsuqlKDxQVWhDau0rveQ3WOMuKK6SdWPTdp+SICBF0VllWW0ej+gsfnPOe9xKmgIHWy 02RtBjxNFfp2ZSce/juDLS0h0O68Gtfr56PMu7G6j04b5Z2IIuWKExodhEDsYOaio+8L ADyQ== 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=hktgs1ApCFso4Lgx9S/kJQ05/BGQ8OgyJMNxMyrvQBs=; b=70nK0TuuYl6hXxA6EEFMc8VwAuG/+xW45sBe0EYDXnmdnXZUBnO2TA0bL8peiykcTc hcUElZQ/DIC4d85ejSzj5mh6dgL8LUBmqdFmlI6llDkGID2lO/AmTfcIxXyBjsLnmA/A 26eejKMCmz6y6Wt8BjDRLRnm7GtL2bOj+Qp9H1su2MZhxJfrsYds9wAct6xwBCurhT4F J+AYvitb2kIJDnWDwq/TMGF3rcKEXcA8r7qDQdvXoQMIvbGbnd2Yzq0l7PwkqlRlFimh PGAQkw5s9I+CWPNfNpYEGTVbRdet+vXuDQyX85+GYQu6wK4Qj51iC9Al0T517ImlN4C2 OEjQ== X-Gm-Message-State: ACrzQf0tfrbxwFJbpYZuSNlDIHHQT4YdMIx9lNaBGRaCcx1cZamjS0PF R/wj/IzF4srPUVF4hK3RUVAfcoBjdD8E1fr8UR0= X-Received: by 2002:a17:902:6b8b:b0:178:7cf5:ad62 with SMTP id p11-20020a1709026b8b00b001787cf5ad62mr48527plk.13.1664374537372; Wed, 28 Sep 2022 07:15:37 -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: From: Jeff Xie Date: Wed, 28 Sep 2022 22:15:24 +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 Mon, Sep 26, 2022 at 12:49 AM Jeff Xie wrote: > > 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() I guess I won't be able to finish it until the next merge window, I've been trying it for a few days In my spare time recently, with no progress, it looks like it's really more complicated to implement ;-) > > > > > > 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 -- Thanks, JeffXie