Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp961142imi; Fri, 22 Jul 2022 13:38:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIqmFB7g66JucynbNpm5GuTKi6v8DUtVY4CptYDlZ+/bkD0WuRj5iKQl8XEZLrxr8EUGlv X-Received: by 2002:a17:907:3e21:b0:72f:87c:efeb with SMTP id hp33-20020a1709073e2100b0072f087cefebmr1260900ejc.528.1658522329212; Fri, 22 Jul 2022 13:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658522329; cv=none; d=google.com; s=arc-20160816; b=LQF6fy/NDXcYQ207mAaUOJUArzpnVoITll2wKtqfdQRe01IZeOZ1E229WjhN3DA2A1 q6yfn9KN67lnX4YnRicUQSTSrAPL4XNqNvFTS/EEKq+jcWr3Cda+ibYXNnbPqNel5T61 fFYpLbq/ZLM3haOS/1i244gZFpSKut2sgSBNlCRRSM1hRzPyTrEtUbxOiNByb41R5ywt YxfVLdeoI+WoNBUjiYj0tQvK8WHflzVGngqerNpJcn4WVmaJWZgomNhKhyCsXunJnJmE e071dq9OBa3lgQGJnHWKWjiPp1QcS15G3/yVTO+h4OX5xMeqDxgf+FHvjjLjpkhNRy/b Mkdw== 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=Xp7S1frpHwB8/aMIMi+WcY0qOdVrM9gOZctzrR5bEtw=; b=JgL/CsRvEHTjG5FlkDtyjoiYIjQ12A6WzFkPR7DgAVfzZDWJsBLGI6Zlo5kY+gRpd8 TnxiYBvRWEdjYkbX1G/Bkrzvb79adDCPHsohkcuzfafq/68A1RO34uJ/+ESqQ20OYNmC fdEPHsSSmOEQq7GPWlRIc/T3IqDhsuj2IVK/PnPVneJufogZI4omGei0TEpqoBTdSuvy StXnUE9nKU0miSKRiiJX9FMShP4CIY3CmTbbCKwDguruFlsJ51hwiFJlGwY0jOGdKr8X KY0yJxliLqF7FYdysM5LQZrBlR1e1tgCChWyEnWJYOUJLS/8n+tKxRau6kXPrwU2gkSI 2gRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 jg25-20020a170907971900b0072f97d98a50si7901820ejc.945.2022.07.22.13.38.24; Fri, 22 Jul 2022 13:38:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236266AbiGVUWS (ORCPT + 99 others); Fri, 22 Jul 2022 16:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233195AbiGVUWR (ORCPT ); Fri, 22 Jul 2022 16:22:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43522326E8; Fri, 22 Jul 2022 13:22:17 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 03584B82A6E; Fri, 22 Jul 2022 20:22:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 978EDC341C6; Fri, 22 Jul 2022 20:22:13 +0000 (UTC) Date: Fri, 22 Jul 2022 16:22:12 -0400 From: Steven Rostedt To: Chuck Lever III Cc: Trond Myklebust , Anna Schumaker , Linux NFS Mailing List , LKML , Arnaldo Carvalho de Melo , Ingo Molnar , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org Subject: Re: [PATCH 3/4] SUNRPC: Replace dprintk() call site in xs_data_ready Message-ID: <20220722162212.3d080c23@gandalf.local.home> In-Reply-To: <9FDA46D8-4D6E-49B0-A583-D0FF739111BF@oracle.com> References: <165851065336.361126.17865870911497306083.stgit@morisot.1015granger.net> <165851074247.361126.17205394769981595871.stgit@morisot.1015granger.net> <66371b9db4210fe853e98a8ec68b0f780ba886af.camel@hammerspace.com> <9FDA46D8-4D6E-49B0-A583-D0FF739111BF@oracle.com> 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-nfs@vger.kernel.org [ Added the user space perf folks ] On Fri, 22 Jul 2022 18:45:30 +0000 Chuck Lever III wrote: > >> +TRACE_EVENT(xs_data_ready, > >> + TP_PROTO( > >> + const struct rpc_xprt *xprt > >> + ), > >> + > >> + TP_ARGS(xprt), > >> + > >> + TP_STRUCT__entry( > >> + __sockaddr(addr, xprt->addrlen) > >> + ), > >> + > >> + TP_fast_assign( > >> + __assign_sockaddr(addr, &xprt->addr, xprt->addrlen); > >> + ), > >> + > >> + TP_printk("peer=%pISpc", __get_sockaddr(addr)) > > > > NACK. Please resolve and store the string up front instead of storing > > the sockaddr. Most versions of perf can't resolve those kernel-specific > > %p printks and just end up barfing on them. > > Interesting. We added get_sockaddr() to avoid this issue in > trace-cmd. Sounds like perf needs to be fixed up too, or > maybe this is another case of having an old libtraceevent? > > Meanwhile, I can revert this back to the old way of handling > presentation addresses. > Hmm, I thought that perf now uses the external libtraceevent. Perhaps it hasn't been updated to the latest release that has the ability to parse this. Maybe just install git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git ? -- Steve