Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp555265lqp; Thu, 21 Mar 2024 08:46:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3wN8zPRW0USbXD12exOcu4hHslDtNIg+MIMYWF2dmhtLZ5nItDYGgiE93UpTJ5mmp1hh3eOX6erkkGIgbMyg+WZ8vZF/jwAzg0Mqp4Q== X-Google-Smtp-Source: AGHT+IGnNrJqqysMXrWLwBIH1H6SL0MHpPyF84pxgG6zH8cxY9aHCkX8Z/BkFCWBIH09WaqWQ0iK X-Received: by 2002:a05:6402:4485:b0:565:f9c1:d925 with SMTP id er5-20020a056402448500b00565f9c1d925mr13938528edb.0.1711035980090; Thu, 21 Mar 2024 08:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711035980; cv=pass; d=google.com; s=arc-20160816; b=IT438MYNfVrbzHRBleeKCvX8S+JRYNPoVHBOvkMDWtfcgcTQ3fb9huGHSL33Y24QUi 7Jh95WwnBPDs4virf44xSN73H6hh/Z9jKLA4qLs8ZsHH2kS4yM6eYAhPvPYyolPDe8zE EHpSb1BXkGTCoWAzjYaRO63ysnCEk682By0V2RjJq/T1g/g81Qkl3z26CkC8bDKM1zr3 CYiJ4YBk41tZQ6bOMdFEF/478TVrJWwTEfzcKOQgE53jwinFulvXce9Ay2h3bhnuOH6i VMpdd/q/D0dpfW44P6P8Ox4vtwxGRjC1JEprS2acdUiKShxBWoZsPRJLmWQODB7AkiW8 TmXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=2mJDHApDDef+Jmj3J9CKA7Qu7zJcpveLAuP3BNSHCIc=; fh=oAUG/CiQ3c1zuquJB6fiUvXT85e2e943kynEe8c2qUc=; b=lR/5WwmfPUCpxzwqq2admT7WhRTw8+mzVZDGZp3IgUoo3enZuJl8tfLTk86ZZ0jkyx o8ALyGHHYLpIesfwf0ewovPKuG8vZm2FWzaHEPCu/j350PLPGmXCE60lBj4WpGY3zzBL NcMgahrboEIdmh3JiJRtwMHS4TJVqVy9WDOPIE42PEt4mACAOdY07wEW0UyKrBKvxbxq aXN8v0miVK/txpwGuDQmkR/B1VuXvLAsA1ThG82u+QuuBpXT7OTeEZ43OYAOc1fB/2QE nPvjWr0+z1kPm6LWOfTAttDjDvlEzcjfdwqd2kBoBpjiueN1vfyy0aJCUtNbC0alQAHi Ovdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110276-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h15-20020a05640250cf00b0056bb55398f3si8723edb.268.2024.03.21.08.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 08:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110276-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BBD1E1F21813 for ; Thu, 21 Mar 2024 15:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FA4D86255; Thu, 21 Mar 2024 15:46:11 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DABD11E879; Thu, 21 Mar 2024 15:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711035970; cv=none; b=NXgmXP2ekBYlyZ0WUjGBmsRdJNWJwkHtmGVOY42Hrb2el9PC7CSg2h3p3UPJfME/h/tdc1uxCPz4/QeFhQhZabQfmdlSAgDe+/Bt7HXrNZQykfyW6HJL+BX/SgHx3lthFz2KAI07OTZUAvqwFR0qOpxZkyT1nbvw19G4F76jbSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711035970; c=relaxed/simple; bh=eaYFDO2RONWaRlBj2kDQLJYRqxq/wypK3rVS0hwhKqE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TlnbpRHEhe4ohTVdWvXRdORvMMZOMlcvRxlhY1uuY5oQGIQYAZuFW2i00rV159IShCHLX/wLgDEAGNZrdcdYHh1LkRts8CH5WseLfbbQdgtH1FC0ZeBuu/QP7Zw95Au7U4xXkC6dEM19FKBVqzutVGYMiaO1vF5h/rMjmy36XYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7A38C433F1; Thu, 21 Mar 2024 15:46:09 +0000 (UTC) Date: Thu, 21 Mar 2024 11:48:36 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Ye Bin , , , Subject: Re: [PATCH v7 1/5] tracing/probes: support '%pd' type for print struct dentry's name Message-ID: <20240321114836.2d448dd1@gandalf.local.home> In-Reply-To: <20240322002805.fbfe11e4f8f02e701d8d0c91@kernel.org> References: <20240320132924.2802187-1-yebin10@huawei.com> <20240320132924.2802187-2-yebin10@huawei.com> <20240321101547.1f4e68ab@gandalf.local.home> <20240322000759.ec04bca3bb2afdfaef37a545@kernel.org> <20240322002805.fbfe11e4f8f02e701d8d0c91@kernel.org> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 22 Mar 2024 00:28:05 +0900 Masami Hiramatsu (Google) wrote: > On Fri, 22 Mar 2024 00:07:59 +0900 > Masami Hiramatsu (Google) wrote: > > > > What would be really useful is if we had a way to expose BTF here. Something like: > > > > > > "%pB::" > > > > > > The "%pB" would mean to look up the struct/field offsets and types via BTF, > > > and create the appropriate command to find and print it. > > > > Would you mean casing the pointer to ""? > > BTW, for this BTF type casting, I would like to make it more naturally, like > ( *)$arg1-> as same as other BTF args. > Sure. I'm just interested in the functionality. I'll let others come up with the syntax. ;-) -- Steve