Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp89540lqt; Wed, 5 Jun 2024 18:49:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDyWBFiUbMcBU4xKhSfLNSIvH0YY3tOCxHEQ3Pp0yv1M1t7uTkfF7wUM88S22RKd2zhZv2pJjQwvqG9H+Lz57uwFy5ycfxS5rBC1yu/Q== X-Google-Smtp-Source: AGHT+IFH+j0dCi6kUag96IvKnWWLPLg/dn4h+ZnHjVz8WB75ghkE0M6omTF1LKncEcuMK2pWWeo9 X-Received: by 2002:a50:8a8b:0:b0:57a:7585:bd4d with SMTP id 4fb4d7f45d1cf-57a8bcda476mr1968167a12.42.1717638540393; Wed, 05 Jun 2024 18:49:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717638540; cv=pass; d=google.com; s=arc-20160816; b=QtWFEf/LWborXtzJDdIS4MSIcXC3cO6QbdgSuGId+F+99oZyjdzkBjxH6d2e19ddx8 678Hb6djsArKXQRoPL1JbSxCd0imVedorCeBxJm2H9TGzYR0DgDnF4I0prl+31jQqbI0 jhP1ILGoZeuViQut7FejiVXG/diEOqGtxXtsTPgD1O08Wf3+ehJkU/rgh1qP71+q7ncF AOpt9dre2an5DlW/q5Y45h5LNEShthHhGJeHQP6kipEONuYPnzpDXGGvFWiFULDiZzeV POu3jx6S67xGRjgrgY7WPN2jnNVCcKRTfECO4c+jCIyGXfSgQTsspgR0A3rgS8xC9QL0 qdyQ== 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; bh=kM3H6qjHjtqDa6QRDjHXroOjmdbP867jiPB/MUHoLOk=; fh=BA7t89ANzwmsYYHzIdxy9tAJFvuVgCTasWu1brUC7Rg=; b=HP2VRt8VdN6dtWG8CGpTlAs19g+Nqlv6qP95H7IhAuSHbC2nKsnTVHTCeV0BX3wUX2 S8IaJsQ9+3dj9i/9dW/HVZAlb0nEp1UCZiSnGjbs/dDbEsP7xQPZMX/6DqHgdpo4s144 41JXyVYgVl/sBkkUb8ouhBLLwjEt78p+ecSD3oEozIyvqsMwKmJfDKguapCQ22Z4vLx0 KSadTcuJzEjbg+ZNZLLdWxqmo0PmcvfUrHipr9t3AIGS3uqdINcFmaJsBl+RZJNJP2FT JaZrsl5sK3y25XiDU7k/xYqTnV1mB6Yz3jBKF27HaNfmQMUnQ2Qrd9b6GS1YkBIsR4WH byOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203511-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae25e1casi142592a12.486.2024.06.05.18.49.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 18:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203511-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 203991F24078 for ; Thu, 6 Jun 2024 01:49:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C462218654; Thu, 6 Jun 2024 01:48:42 +0000 (UTC) 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 076CE4C97; Thu, 6 Jun 2024 01:48:41 +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=1717638522; cv=none; b=uTQk2Uhs3KcNbD52VU6kbiP2bgZFbMzngOlDp3Ed/PE3CKunWz7akb8xBK6vAHIjYBJZvc+pFBnoL+xBozXX3nza99tG9zJSU4W0iymdrnKViOeolg18CO1xYKFc/GK/FH8XbSToGcsLdGXM68gr7aMe/jkBtF+/FbC5P3k0WPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717638522; c=relaxed/simple; bh=JLj70tGrmcNhj18kACZpvaoJfW48fvOe3MQyZNPDPeE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Cllq2OdNeW3Ym6PnXmzSH1VjqRO6l4E7G3UqFPCDh3w3DyVYEE/EYK4sDmOgjZfnxp6bLinMME5Dxth3zPo9/5sKf6egcjwqHrUuA4cuT57AlPzlWHp70cml1TLnMRB/MuIXbubRug7u+E+xKSBcgdMyFistNM+7MQlwp0JzJxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8074FC32786; Thu, 6 Jun 2024 01:48:34 +0000 (UTC) Date: Wed, 5 Jun 2024 21:48:37 -0400 From: Steven Rostedt To: Mina Almasry Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , "Christian =?UTF-8?B?S8O2bmln?=" , Pavel Begunkov , David Wei , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi , linux-mm@kvack.org, Matthew Wilcox Subject: Re: [PATCH net-next v10 06/14] page_pool: convert to use netmem Message-ID: <20240605214837.44efcc6f@gandalf.local.home> In-Reply-To: <20240530201616.1316526-7-almasrymina@google.com> References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-7-almasrymina@google.com> X-Mailer: Claws Mail 3.20.0git84 (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 Thu, 30 May 2024 20:16:05 +0000 Mina Almasry wrote: > @@ -42,51 +42,52 @@ TRACE_EVENT(page_pool_release, > TRACE_EVENT(page_pool_state_release, > > TP_PROTO(const struct page_pool *pool, > - const struct page *page, u32 release), > + netmem_ref netmem, u32 release), > > - TP_ARGS(pool, page, release), > + TP_ARGS(pool, netmem, release), > > TP_STRUCT__entry( > __field(const struct page_pool *, pool) > - __field(const struct page *, page) > + __field(netmem_ref, netmem) Why make this of type "netmem_ref" and not just "unsigned long"? > __field(u32, release) > __field(unsigned long, pfn) > ), > > TP_fast_assign( > __entry->pool = pool; > - __entry->page = page; > + __entry->netmem = netmem; You could have this be: __entry->netmem = (__force unsigned long)netmem; > __entry->release = release; > - __entry->pfn = page_to_pfn(page); > + __entry->pfn = netmem_to_pfn(netmem); > ), > > - TP_printk("page_pool=%p page=%p pfn=0x%lx release=%u", > - __entry->pool, __entry->page, __entry->pfn, __entry->release) > + TP_printk("page_pool=%p netmem=%lu pfn=0x%lx release=%u", > + __entry->pool, (__force unsigned long)__entry->netmem, And not have to expose the above text to user space (look at the format file it produces). It being of type "netmem_ref" in the ring buffer is useless. -- Steve > + __entry->pfn, __entry->release) > ); >