Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp2164401otr; Mon, 25 Jul 2022 08:51:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfxoMR916zmDbwuq6TAEXriiFCWBwiZkag24xhvswxHElJsxaS2jUyMFjNF1ArAPrmLNm8 X-Received: by 2002:a17:902:cf12:b0:16c:a263:62b8 with SMTP id i18-20020a170902cf1200b0016ca26362b8mr12615926plg.31.1658764318637; Mon, 25 Jul 2022 08:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658764318; cv=none; d=google.com; s=arc-20160816; b=ILoZHkF5vxtTfisCuLzPRYLWVoJxXzVf545LX7IfYnznhm2pEzxLgliNkFJ6l4jXUH XOxYRl4GjCMz2SWj3GLqFxCsFkS+yxCZ86aodpswnt/mM6uo8T1H4oiMmiT8f5YgHAnW K2erfZkEHBk8WJLP2NSyJ1MkHNDDbxlRJT7n2eeg6tbTkAReh0bVvi+oToQ21kevev9w E/89FjercssDN41TxJJmpxZUJqtp8Nhlb1q2TMjo8anEFvkWbHEZVL/sNCax4M7jTM5n 5ZVbXzXT5JK2rveVQH5epnQ6i0EVwdp43/2r1y77bkuQDcNB/GtE/gSBHOA3kFm4wnbh 9UxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=E+a4RZhAHITT6/I2HAq3UYeEXf1ECZZOjkZdDhIgMxY=; b=CGGPbrsSq8a9fuQ/mCcPtNCCRwCL5GwpqogZpCUoP8KXfSOY0IW7qwBJasn7jUoYUc m+h/e7rplCE0qUikY7p3Ges/OzF823FANlKlSrW9AotFT/JarVSrer0or79ChaiHNkch p9JLoqCpdCjMqjHCeKi8gnTWz6aEW1WfG4U+rqSAXFkLjtZdWMyxUj3xCBfdJjRyXoGV GsDGi9b449KDFgRfRzEibnd9804CWZYJT1KJrUZQI3sz54VqkKCsTCMiOytW/wELEqPV xavpa79qJTq0Bz3VZrKgNm7cvwoq6ZniKgCPH+8KbQwm3X0/TFBhvHWk9aIw24NJc6Ig GtHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yi/5PyKE"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be3-20020a170902aa0300b0016a3bd7844csi13476893plb.562.2022.07.25.08.51.31; Mon, 25 Jul 2022 08:51:58 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yi/5PyKE"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235509AbiGYPt1 (ORCPT + 99 others); Mon, 25 Jul 2022 11:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235526AbiGYPtY (ORCPT ); Mon, 25 Jul 2022 11:49:24 -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 105DE10FCA; Mon, 25 Jul 2022 08:49:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 95738612D3; Mon, 25 Jul 2022 15:49:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCC67C341C6; Mon, 25 Jul 2022 15:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658764163; bh=A6qZ/untHbxlIp2KOs+BpgbUVJKBdBN1BXQ5vjbkYEo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yi/5PyKEtN0crh7payLUUz8KbToSKkcQ6NsVpPclFTErXXO8MwQih0VkK1nCVNbax ZhdfQhiPnK+L0js8pO7lGne0SuriLCdMX7z+5LX8ZnD2xnU/mkequTgoS/jzZkBXdk p+kPs7kw8U1spWnMspKwchkMLlAa3n4tsLJ334vyj9xfkweboTwuSyiR/N59MOV7gA AbWDz7Z8bDOirNR/mra/kELJYfqdxIGt5FQLfVuymu4Sj8JUFSCBt+NM2ci+zYbecb gqgw9PUUFJIaTa1xQyd9JPXQvtJZLI5BxyOXg9A+D5oqbOulv6rcEOxDO3YDJsq7uC TDUYXfIItnwxw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 213F640374; Mon, 25 Jul 2022 12:49:20 -0300 (-03) Date: Mon, 25 Jul 2022 12:49:20 -0300 From: Arnaldo Carvalho de Melo To: Steven Rostedt Cc: Chuck Lever III , Trond Myklebust , Anna Schumaker , Linux NFS Mailing List , LKML , 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: 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> <20220722162212.3d080c23@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722162212.3d080c23@gandalf.local.home> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Em Fri, Jul 22, 2022 at 04:22:12PM -0400, Steven Rostedt escreveu: > [ 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 To use it one has to use: make -C tools/perf LIBTRACEEVENT_DYNAMIC=1 Then we get it linked with libtraceevent-devel: $ ldd ~/bin/perf | grep traceevent libtraceevent.so.1 => /lib64/libtraceevent.so.1 (0x00007faa50f93000) $ Perhaps it'd be better to check if libtracevent-devel is installed and use it, falling back to tools/lib/traceevent/ and then adding a warning that the in-tree codebase is being used? - Arnaldo