Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp2091981otr; Mon, 25 Jul 2022 07:08:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1syvQ50vjgePl3DITr7ZGsWETq4EE5Hhl9rJTQyeWAiXUwWnijopD0nV4xXha+uPjrhBeTH X-Received: by 2002:a81:5345:0:b0:31d:471c:19e9 with SMTP id h66-20020a815345000000b0031d471c19e9mr10249930ywb.188.1658758112507; Mon, 25 Jul 2022 07:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658758112; cv=none; d=google.com; s=arc-20160816; b=KuebA3Z63iSZP59+2Kxd7wqBl/u7i6pAEV27mZ4LQBwbm1nkmSsxjp0hYrg9l+dbwL Xh58e2RKKZHc5olzOgTxfhJSoaxrQvxiI6egpRoDRfVJqccOFHjzf9LkRzBO804JRZmP /zKJH+kFRNIVqHddWCaUsitVGM/sFJrsxCo8D7YFDglzpvWIeMPVsxSKhEISKiUXq5sb jKBFH0kXqJjbbzZ6reCEzuYFwy6XeLNJITryITHvNCm9msXrXTsVNsI9mri+aW0cjggT H3mlTtm4QcSDmIrsZlAZm1F/Dh+OudkyzBKMqFr4bBkf/9+Ic16jvrI8Q8wIbkDrOW3L prkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=qhLILiypDyaoUrSCFFDOCmJLpXUYsx+zMtGOYIPZndw=; b=QlwNGCBQcT7VaWlRVU+UOjV6SpXPXDDhRvNM7vJdDeO9gt6FRnU5G5hkby74XtmPU9 ikLHwJJZYC2nKDrl/mzm/0vwYBN94cBQ1gQJw/EEkvqzgQlBU552mPj9CZI3gtKAQUAh d82dkPNTIkW9Vqhh6Z/tRpw1YbQxF+o+I3uUsmMmFxiV7Q2oGS7gKYjxhSKs83YDmBjs AzxhuQSTI3bXSuLTiPRwdz/Zcc0RnIAyig/DAhDOW6dWYn079h+exO58vbioH6grdWMK qMy6FICFKjV6Xr80N+Y3rIsozCwTz8ytQcPGV0MuoVzL1iLQjegONIpM22beO2OV3mBY PutQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Otvjrosx; 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 v13-20020a812f0d000000b0031e5ae17d77si8625082ywv.247.2022.07.25.07.08.07; Mon, 25 Jul 2022 07:08:32 -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=Otvjrosx; 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 S235267AbiGYODk (ORCPT + 99 others); Mon, 25 Jul 2022 10:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235261AbiGYODg (ORCPT ); Mon, 25 Jul 2022 10:03:36 -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 EBDFF15FCC for ; Mon, 25 Jul 2022 07:03:35 -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 6F33F611DB for ; Mon, 25 Jul 2022 14:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F425C341C6; Mon, 25 Jul 2022 14:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658757814; bh=RfCUEgRu2RTVsnCmQzh3gVvKyj4WXqXvfWym3E7P2Gc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Otvjrosxw5Wk1EMxgF9beF25YpZLss24ppeybja/atunSoamxMUOiPkHbRMgnGKkP 6TDrgPN7U5snZqapMNlDqdYay3jWGJweryQJ2wnMCOTs0c66kO8rOrxzxwR6y9t9Ui pNgrhtxO7m0ol2UqgBgTBUb6xNUFYIYuVxTj3EePkP10wYhojdTmIMrMmXc5OL20YH 5N2x9UiafBuhBM0ZoJCYYQX6VBmvFtF1g8TehYFvAOel1FMBrgreZOtqAfCvmhp731 8LzJ8Jn8bbZwcvcTGCT4bRRkCPggcnnMOgjsPspES7unBSGeSccW43X8EdQa/ZZz+P X+zH30T9Vv4xQ== Message-ID: <9a3a447a3c4351daac436944b535b32a0e29ab51.camel@kernel.org> Subject: Re: [PATCH v2 3/4] SUNRPC: Replace dprintk() call site in xs_data_ready From: Jeff Layton To: Chuck Lever , anna.schumaker@netapp.com, trondmy@hammerspace.com Cc: linux-nfs@vger.kernel.org Date: Mon, 25 Jul 2022 10:03:32 -0400 In-Reply-To: <165851689770.2312015.16674329181783074734.stgit@morisot.1015granger.net> References: <165851677341.2312015.16636288284789960852.stgit@morisot.1015granger.net> <165851689770.2312015.16674329181783074734.stgit@morisot.1015granger.net> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 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 On Fri, 2022-07-22 at 15:08 -0400, Chuck Lever wrote: > Signed-off-by: Chuck Lever > --- > include/trace/events/sunrpc.h | 20 ++++++++++++++++++++ > net/sunrpc/xprtsock.c | 6 ++++-- > 2 files changed, 24 insertions(+), 2 deletions(-) >=20 > diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.= h > index b61d9c90fa26..21068ad61db8 100644 > --- a/include/trace/events/sunrpc.h > +++ b/include/trace/events/sunrpc.h > @@ -1266,6 +1266,26 @@ TRACE_EVENT(xprt_reserve, > ) > ); > =20 > +TRACE_EVENT(xs_data_ready, > + TP_PROTO( > + const struct rpc_xprt *xprt > + ), > + > + TP_ARGS(xprt), > + > + TP_STRUCT__entry( > + __string(addr, xprt->address_strings[RPC_DISPLAY_ADDR]) > + __string(port, xprt->address_strings[RPC_DISPLAY_PORT]) > + ), > + > + TP_fast_assign( > + __assign_str(addr, xprt->address_strings[RPC_DISPLAY_ADDR]); > + __assign_str(port, xprt->address_strings[RPC_DISPLAY_PORT]); > + ), > + > + TP_printk("peer=3D[%s]:%s", __get_str(addr), __get_str(port)) > +); > + > TRACE_EVENT(xs_stream_read_data, > TP_PROTO(struct rpc_xprt *xprt, ssize_t err, size_t total), > =20 > diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c > index fcdd0fca408e..eba1be9984f8 100644 > --- a/net/sunrpc/xprtsock.c > +++ b/net/sunrpc/xprtsock.c > @@ -1378,7 +1378,7 @@ static void xs_udp_data_receive_workfn(struct work_= struct *work) > } > =20 > /** > - * xs_data_ready - "data ready" callback for UDP sockets > + * xs_data_ready - "data ready" callback for sockets > * @sk: socket with data to read > * > */ > @@ -1386,11 +1386,13 @@ static void xs_data_ready(struct sock *sk) > { > struct rpc_xprt *xprt; > =20 > - dprintk("RPC: xs_data_ready...\n"); > xprt =3D xprt_from_sock(sk); > if (xprt !=3D NULL) { > struct sock_xprt *transport =3D container_of(xprt, > struct sock_xprt, xprt); > + > + trace_xs_data_ready(xprt); > + > transport->old_data_ready(sk); > /* Any data means we had a useful conversation, so > * then we don't need to delay the next reconnect >=20 >=20 Reviewed-by: Jeff Layton