From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48592EB64DD for ; Fri, 7 Jul 2023 03:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231835AbjGGDGu (ORCPT ); Thu, 6 Jul 2023 23:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjGGDGr (ORCPT ); Thu, 6 Jul 2023 23:06:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F03C01BDB; Thu, 6 Jul 2023 20:06:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5841560F0E; Fri, 7 Jul 2023 03:06:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27F98C433C8; Fri, 7 Jul 2023 03:06:45 +0000 (UTC) Date: Thu, 6 Jul 2023 23:06:42 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Dan Carpenter , linux-trace-kernel@vger.kernel.org, LKML Subject: Re: [PATCH 3/3] tracing/probes: Fix return value when "(fault)" is injected Message-ID: <20230706230642.3793a593@rorschach.local.home> In-Reply-To: <20230707115128.80b6acf06f4bfa996d9d0808@kernel.org> References: <168830922841.2278819.9165254236027770818.stgit@mhiramat.roam.corp.google.com> <168830925534.2278819.7237772177111801959.stgit@mhiramat.roam.corp.google.com> <20230705224956.1c5213e6@gandalf.local.home> <20230706134036.5c074aa5fc6a55cdb5038660@kernel.org> <20230706095039.1cb9c9d1@gandalf.local.home> <20230707110210.06e81e182c775454ce86280d@kernel.org> <20230706222020.6e5c8e89@rorschach.local.home> <20230707115128.80b6acf06f4bfa996d9d0808@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Jul 2023 11:51:28 +0900 Masami Hiramatsu (Google) wrote: > Ah, I meant that your commit 2e9906f84fc7 ("tracing: Add "(fault)" name injection > to kernel probes") tries to make it '"(fault)"', So it makes > > trace-cmd-4688 [000] ...1. 466968.015879: myopen: (syscalls.sys_enter_openat) file="(fault)" > > Keeping it current '(fault)' makes easy to identify which one is failed to fetch, > but it may require user to parse both "some string" and (fault). I thought that > was the reason why you added that commit. Hmm, That commit didn't explicitly add the double quotes. That may just have been a side effect of passing back the string? But I agree, just (fault) instead of "(fault)" is more explicit that it faulted. -- Steve