Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7647073rwb; Wed, 23 Nov 2022 09:01:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf73exFBmGjmedQT4fQL3+SbzAApM1cEQn6mQQ+7qPXWFvzRAfixlhXMnZOEaNKApEjqMWuu X-Received: by 2002:a17:907:7670:b0:78d:b713:7247 with SMTP id kk16-20020a170907767000b0078db7137247mr2051458ejc.706.1669222917492; Wed, 23 Nov 2022 09:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669222917; cv=none; d=google.com; s=arc-20160816; b=kSxj1//MyajEBaldPOC6IlrDXNBVFLYkyW4FgoV2/5VM5Yk8O3RaHyfd5xtc+C/1OI +e8YEEGSfBgfGPfvdce/yLCEdVPFkSC+3z7oB2w2fsptBsFMRLCza9QbkGDOWWEIEwmG B9P3tdYD4Rd8VC3Gr/S+jcdWa/6QUl/DLUXqOBa+CzZePlK3sNrVhwTk61TeEnSwErOQ TRObyGTpAMdOUuR2Fjs0K8VIikwVfkSctGg1SL5dDDOqqhysh5S3BUTsLJ6WkNmEC6Rs bvWtSCPvkk9JBO9t9u2QvN6e+kpeK7oIdkGiwwBLBHvVqE5h405DP0INxcgFi2eSNUUp 1F/w== 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=CxSAt+xHJ7gkOmEsuiKUBzxBkrat7nKXDYXZYDKxWnM=; b=Tv1t53UrVUxAkGlbgHdfNcuf2cmn9HVel4PdliL9qnS++PCCGC4m5UNCLN88JXXNfs lqMGOiHhqF6GCDikyflDizEpa3n730rxUKQpYbiK0u22LuOwqOJ6+tlU7Qottu1jbmYi qnuhHkiQbBSh4CZArCel8uCuZ1kdKLmp+1rxe97Ueybeh7vBx/A1X31wBXVrPJY/Bhdy tDe3aMaLGnwUzsEcfyAIoVCbWZCKdIVHXXTy2k0cGm2agru1vhBUbbgoFCCKYpvQSMTD 2hboVa+5Lk3+4fohqKIY89UIafWkzbj8ISZ6NDQmrsdOxnATYIR67lCayq7hhzdlP8h6 1Smg== 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 qw25-20020a1709066a1900b007836227b96fsi63810ejc.888.2022.11.23.09.01.31; Wed, 23 Nov 2022 09:01:57 -0800 (PST) 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 S237877AbiKWQdK (ORCPT + 88 others); Wed, 23 Nov 2022 11:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235641AbiKWQdI (ORCPT ); Wed, 23 Nov 2022 11:33:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DCD22515; Wed, 23 Nov 2022 08:33:07 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 744EA61DF6; Wed, 23 Nov 2022 16:33:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E966C433D6; Wed, 23 Nov 2022 16:33:05 +0000 (UTC) Date: Wed, 23 Nov 2022 11:33:04 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Rafael Mendonca , "Tzvetomir Stoyanov (VMware)" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Tom Zanussi Subject: Re: [PATCH] tracing/eprobe: Update cond flag before enabling trigger Message-ID: <20221123113304.3f41ff1b@gandalf.local.home> In-Reply-To: <20221124010152.75846db3bc63a5c6c109945f@kernel.org> References: <20221116192552.1066630-1-rafaelmendsr@gmail.com> <20221117211726.4bbbb96a@gandalf.local.home> <20221117213109.6119750e@gandalf.local.home> <20221118111940.1268da2b@gandalf.local.home> <20221124010152.75846db3bc63a5c6c109945f@kernel.org> 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 Thu, 24 Nov 2022 01:01:52 +0900 Masami Hiramatsu (Google) wrote: > On Fri, 18 Nov 2022 11:19:40 -0500 > Steven Rostedt wrote: > > > On Fri, 18 Nov 2022 10:34:40 -0300 > > Rafael Mendonca wrote: > > > > > It did not trigger the NULL pointer issue to be more specific. When > > > creating event probe for all events I was unable to create any event for > > > the xhci-hcd system: > > > > > > root@localhost:/sys/kernel/tracing# echo 'e xhci-hcd/xhci_add_endpoint' > dynamic_events > > > -bash: echo: write error: Invalid argument > > > > > > Debugging the issue it seems that the problem is in the is_good_name() > > > check, which returns false for "xhci-hcd". Should we sanitize it by > > > > Ouch. I didn't realize that. > > Maybe we need better error message so that user can notice which character > caused the error. > > > > > > converting '-' into '_'? > > > > Actually, it's just the system name that's an issue. I tested this patch > > and it appears to work. > > Ah, the system name is more flexible than the event name because it has > TRACE_SYSTEM_VAR. > > Steve, can you send me the below patch? I already did ;-) https://patchwork.kernel.org/project/linux-trace-kernel/patch/20221122122345.160f5077@gandalf.local.home/ > > BTW, TRACE_DEFINE_ENUM() and TRACE_DEFINE_SIZEOF() macros are using > TRACE_SYSTEM instead of TRACE_SYSTEM_VAR. Should those use TRACE_SYSTEM_VAR > for defining a variable? Hmm, good question. Probably. But since nothing that has a bad name uses it, we can fix that whenever (but before a system with a hyphen uses those macros). Do you want to make the change, or shall I? -- Steve