Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp552023lqp; Thu, 21 Mar 2024 08:41:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSSFe9Q1p9uqTpjY9WMIiLjuJ/TYDeU7u50fGY8wrgKm3QlpeU4VqidFjL8zbNR49IurpemjJiprJuW9jKBYzzp9i/WUOEU7sGV9NTeg== X-Google-Smtp-Source: AGHT+IHaX67k/JBj9HM5yfB5aX8zhnUzEHZGj5/bdcvTW0Y4/NtC7Gh+lFmp/VZCyHwQQzSv4fHR X-Received: by 2002:a17:90a:bb04:b0:29b:aea0:1883 with SMTP id u4-20020a17090abb0400b0029baea01883mr8319222pjr.2.1711035660229; Thu, 21 Mar 2024 08:41:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711035660; cv=pass; d=google.com; s=arc-20160816; b=b5r94sbELfrdv1yaDz0EU34PJ4tB4+llMzl6mqpyT98WXODh2nOWvljE6D3OTyjjlD 22Wh+9sj5F2+aExaQqX0rWUk01KjbEW58ZNfp8UD7SAvdMyfnQ1VqH2B+axChBH0BO9e yKNL7LMczsd+Rt3wQ0s91IbdUwq4ylkcBY11JbFB0sLxBcfl7ITnbYgHkVZ8pHUpf1O7 N28c0E3LruEe1myjZImPZUpGUg/HhXO9lUHMW8FcDbLpnU78puee43HDo34WLv0ZF+0T Km6xUsvNahwoqcYVjJICruui9G+L6RT0e1mbWvQplJQiIlKpLrZVHg9A3Mowqt7siC03 MELg== 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:dkim-signature; bh=Wekyz0kfGpXfUH6AEpff/l3q3hHJM2DOtnTXfCH+3pE=; fh=4UC51sLYtpfvoDBPJRL8Nnn27ziQnewBrvszYAOKRRQ=; b=psj1TkeqZSeWVIuA5nV0VkaCacNKWaR3cTHX6e9iYeHdJk2zD1U2TuICI3lbwkKIA7 yAHokA9r84UoDPl5ocfods1HDwQoJuG/PbfAXJ+wGWrLIebN3nA6a0yNIYpG0ud1Mddw Ks0RB4r9/rbuCTOGxXm/pNayesqJePoNW26h0mTShbirFzlXTD772aJ307pQzxG+cDKL wRd1ZlzluTlGoQxlhPP/w73ztJOOwI8fSBgK2kqXjHvTjmmq9CTn6OPe+pUc0fa4q71D 4AOLZ97G1Lw3gwYxAUWrV4IVUI96NEwN1YWADRoEHEM6a5woQDmj4eXwm3HDnYtp56Ew EFfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLq5z8wf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x20-20020a17090a8a9400b0029bf9be6b4dsi81171pjn.30.2024.03.21.08.40.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 08:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLq5z8wf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 599FDB22305 for ; Thu, 21 Mar 2024 15:28:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1B2486255; Thu, 21 Mar 2024 15:28:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CLq5z8wf" 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 D59C51E879; Thu, 21 Mar 2024 15:28:09 +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=1711034890; cv=none; b=hcuBMyNnmR8j2VOx57JQpbVFc51Vd78cScQGDRwyJxNZ+Mlck8zRFZrzBMpGVRhtk0PUR5uCOhhor8KA0VoOBihhp+aqsNKFXDWvYkMd4Y+3KNWL+LPPomU8wYx34HzdRx9d3PoiR+Ls6obiLSxsBGqtRQJVgvIwsUgf0GYpbfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711034890; c=relaxed/simple; bh=uDFfsk3vgPN/8cj/h+YlAvJXbZrXFKL6S457kdKJW+c=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=lfPip68YpQiBlwFVI0LJv8Tdw2elcwEMgJgzpXGugHXumuEBwcA2K81qSySBH7CH2TpAcalD2toTDJ/IwppgfWTgkVuvUngU3crULN6YdL7Bwm089Jn/4UclgCsVKvRmD9qesHf2oju6H1S9RO253UGW78f96iwMqaZUeAs+BLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CLq5z8wf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3A41C433C7; Thu, 21 Mar 2024 15:28:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711034889; bh=uDFfsk3vgPN/8cj/h+YlAvJXbZrXFKL6S457kdKJW+c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CLq5z8wfYykUrqZZoFQlnhW0BgzSYZrO38glLtRa/v/pS17IrOVNGO244lOyLgTjT VhRsPgD2SirVcIWL1nbie7Lt/ybve06PHZP7cED2wvFOW91pCBr3yyiRkvmyKycbLM 9wNea0q92MZrBfuKIYUhf9MQUYSGxj/pL+6m6eQ2UFfp9SgBDwqlCDn/IEOp7XJh9X vO3NtHTevPZdD0EIjt2ULwNfHY31jM8EB1slyB4ec7kipsSy32B3mOKsEznFkMHA1y XyPe7HmYPwWO1dZv/Z7zA3+Y7SM/UwObx2Dh/CcE1a16AGESNVUylwwDBoFSwYQeH/ dq2X/T1EOqv0w== Date: Fri, 22 Mar 2024 00:28:05 +0900 From: Masami Hiramatsu (Google) To: Masami Hiramatsu (Google) Cc: Steven Rostedt , Ye Bin , , , Subject: Re: [PATCH v7 1/5] tracing/probes: support '%pd' type for print struct dentry's name Message-Id: <20240322002805.fbfe11e4f8f02e701d8d0c91@kernel.org> In-Reply-To: <20240322000759.ec04bca3bb2afdfaef37a545@kernel.org> References: <20240320132924.2802187-1-yebin10@huawei.com> <20240320132924.2802187-2-yebin10@huawei.com> <20240321101547.1f4e68ab@gandalf.local.home> <20240322000759.ec04bca3bb2afdfaef37a545@kernel.org> X-Mailer: Sylpheed 3.7.0 (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: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. Thank you, -- Masami Hiramatsu (Google)