Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp835822imi; Fri, 22 Jul 2022 10:27:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u9wfCrnj9kLR4MoIz0X1uwIB/sFfdQjad4GDQQjgaRsUrjrNyz5te1s4YK09LrN1m0Fw0L X-Received: by 2002:a17:907:628a:b0:72f:678d:6047 with SMTP id nd10-20020a170907628a00b0072f678d6047mr740907ejc.456.1658510870733; Fri, 22 Jul 2022 10:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658510870; cv=none; d=google.com; s=arc-20160816; b=L2ICfrc6TVw7LSnD/Ez7rgWC59KU04DnEHsa4xOvtorDV4ttW+XNWnQKlvdIQBL7rp 1Tx/ImtSQDqmn0ncrCLLcVmDt4yfam4uhn8XPndAvauOTFb37c9U67zk1u913UuJ2nJs afi7QOA2g6xY5vL/4vOoFsQ2+0FrPZH2ppSqWFa+9u2N1YJomp/GrJaQCcYdvI3Oo/1v iB90KTQq+1+qRH5vHGXGIdQNDn2WaCm5VnITDDUxhJogd0ovPnqdrgDQs+7vc0bTvnpt XmQTtU4elFcZ/bdOj0NtyZqf1qICG5XpqbPbrDq2L146paNx6WqS8rjOmgcKMfHKo6Fl gOCQ== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=+anrq2BubDhF/RHNUA2asvtSARS0vzeXs2WmEgy/ue4=; b=pRkUwqm15uQyZ2OjXZyWdcADwxryMUJpSDRi/Cp/J10O4XxM1yvjCnLVmlUtpTgrgq q8e/b0QDK/cz7uHmYG969FL2DDDWpPnHu+2MtSvgKTlOipzoMUUVkEtgMhCDlPVEALtB kbT4NHfs2oOQufiZMU8YWDEgW4y4n7fVJ5K0SR387nF9fcPkZwR6hNDuQGhsLVhn/o4S Zht5dynxodsSqhWPFbKyO1GHl0yxU8W6ZxvgyUcnAM1jPC3w5c1N3invSGJC9XL2Jemh ehXzqjYKIIclicliaeaT8Jbkvtl4n5xdF4ALqMwv6I4PhxKXZq8Y9hdbbpWRLQl1azDz Vw5A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a1709067fcd00b0072b3cb29befsi5670153ejs.445.2022.07.22.10.27.26; Fri, 22 Jul 2022 10:27:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234830AbiGVRZx (ORCPT + 99 others); Fri, 22 Jul 2022 13:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235946AbiGVRZr (ORCPT ); Fri, 22 Jul 2022 13:25:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CC67BE04 for ; Fri, 22 Jul 2022 10:25:46 -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 27F0DB8296E for ; Fri, 22 Jul 2022 17:25:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91AE4C341C6; Fri, 22 Jul 2022 17:25:43 +0000 (UTC) Subject: [PATCH 3/4] SUNRPC: Replace dprintk() call site in xs_data_ready From: Chuck Lever To: anna.schumaker@netapp.com, trondmy@hammerspace.com Cc: linux-nfs@vger.kernel.org Date: Fri, 22 Jul 2022 13:25:42 -0400 Message-ID: <165851074247.361126.17205394769981595871.stgit@morisot.1015granger.net> In-Reply-To: <165851065336.361126.17865870911497306083.stgit@morisot.1015granger.net> References: <165851065336.361126.17865870911497306083.stgit@morisot.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Signed-off-by: Chuck Lever --- include/trace/events/sunrpc.h | 18 ++++++++++++++++++ net/sunrpc/xprtsock.c | 6 ++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h index b61d9c90fa26..04b6903b6c0c 100644 --- a/include/trace/events/sunrpc.h +++ b/include/trace/events/sunrpc.h @@ -1266,6 +1266,24 @@ TRACE_EVENT(xprt_reserve, ) ); +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)) +); + TRACE_EVENT(xs_stream_read_data, TP_PROTO(struct rpc_xprt *xprt, ssize_t err, size_t total), 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) } /** - * 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; - dprintk("RPC: xs_data_ready...\n"); xprt = xprt_from_sock(sk); if (xprt != NULL) { struct sock_xprt *transport = 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