Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1078153lqt; Fri, 7 Jun 2024 07:29:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUe9Kb1nKFMkDs2Ka/ClwsfrLV2aH/c7k0i5CwoF8Nuwqr9lny3prKTCDh9e0+EiN/zNGnUE0FJgPCALayiEu4FR0IXrokShjvuoNMtA== X-Google-Smtp-Source: AGHT+IG3y7KSlG2OjrZWcp2Qslswuq5F88HCuIYRdRFKGKaFsRyo9X7yRJCUNWxVlw0BpLIA346/ X-Received: by 2002:a05:620a:3953:b0:795:4dea:e518 with SMTP id af79cd13be357-7954deaea35mr84987585a.40.1717770565522; Fri, 07 Jun 2024 07:29:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717770565; cv=pass; d=google.com; s=arc-20160816; b=UCHwrVYPkrYNP8JnQwxZKk9Px6VmSSzP98kS2XuUwQiwUxKeZslzW8XnQZXjPax5gn vNp2nhws5rFQOxquMc/e6q/v7k5OGl4VuxkRPFYrNK3dN2omK+A48y/2htMdfJVzCF9T IpFIYfMe0MuwQdzwX9lQyyaNLcVVxcC3y+xw8BD11Nb54Qb3Ww7mZjBfKtedC49jwvsI 77mg3dmgzIQX3a7z75dGzoPSREEPiMkLVroSa2ChmfRF7Kr7nEu+kmZHnEnLIDBLmpEK GahhmAoIch4OQ7kxviVum6Yf5qt8lrM7N+S+vF3xDn4Lk9d4dJGCj3Lj6vop7sarjVOJ RBaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=5wJ3tQUmBre0JHFbaJ/dwL6sUmx0bjwkw2FmqncEiT0=; fh=zohZZP2kflkXY3TP7YrDst2TyW/GY0a+fafk+mCT4XY=; b=d/yiZN22RDzzYGimXWNbn6EtrRUK4YIZ6pN1MKkOXgMmgl1Xpnx7i+C6BeoXaLQBss z0voN/C/Vi1iQMSJPGTb6Y03lLqyx8rtyoEKV47WEC7CFGlZMRlILgAXZ75ESburSpA6 Y+VgZLyHuG+SP3d92q02cmZidw14oBk4GiwOsQnUdS1zXnxcxjmVJdTX8wlGuicaoOYl Sct2WI7VvVHereC2vIN0fMmi5U2W2Sz1ZXcAf/HbpcqXG5KXyyr8ADTJt+ZD/3cVaWtC gMhp2nqib8X5OVwKxtFgtU38JJwPqEy1hLskRX7Cx/j3ePDb2yh2ght/NNgeBWwOvmAO 1Bew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WISwcBMr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7953338c129si395305085a.692.2024.06.07.07.29.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 07:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WISwcBMr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F40E1C22E0F for ; Fri, 7 Jun 2024 14:29:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B0F196DA7; Fri, 7 Jun 2024 14:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WISwcBMr" 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 179BC194AD3; Fri, 7 Jun 2024 14:29:14 +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=1717770555; cv=none; b=AeY3cn3RPUN3uaVPqET/ci+PBByNsjDWiSyHJZ2zWyjwMq1oKGO5i70kSYUo/R7ifD2Ep7OhnhuC0Yjf4oElvkdmsac/4la7u2hVDFPmxL4+DIoT3KrOngMPM2D0UD7q7EuFkpAPj2RoQ87QaqqU4o7yKht9utH2GLWVQpvLAcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717770555; c=relaxed/simple; bh=dKD4INyKXeP5zXbI15q6iLNYwFvtOX/hgD4VslxEkyE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bbjBauPJBqIc+lAASD/GpXB6o9XM9hq3dA1TLvgH0DxZ24jP/ug1PGK8Fz50RdYaZ0wRwMoYXSCbwQGDinWZ8q6d2ts+Fk+ZfH3MjER4PuT3IK0+CSCHGHLHFEXiOp6vUzPgCXjmsXWT/MJWPBLtqVH/4HNiBm+T28TFLgPrT8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WISwcBMr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16F37C3277B; Fri, 7 Jun 2024 14:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717770554; bh=dKD4INyKXeP5zXbI15q6iLNYwFvtOX/hgD4VslxEkyE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WISwcBMrAlDtOZwQNGG7H8FM9ZvP+UGPYDCIUIKTqiMMcXsizYH1EYEEHDSPz5p0v dJhixKrlIUO1MxqfW7e1uRUlTc/F36SEg7I0WhWDEcle7mk69ivFU3bQbAHUR1TOfm tHI0KmjC1gKxrYugOD07N23v8LpCOrRD85d5aWYMupoumVX1nVScNWFXNkxlZKmHNp HVe3OBheGeM4fSRhqLATCDyIriWuI2Iii07Y0wD3zQwoXrzvQu2PjCkvFv5BIi7wog HXn/PaK8+9RYFxCFmcjhagwCpzIH7jPBMQqMjD75MmJHgQx21p8Bb6FR8G2B17QW2p Fw1zdllHqbjxw== Message-ID: <4533aea5-550a-454b-8b82-2ae28a97fd1c@kernel.org> Date: Fri, 7 Jun 2024 08:29:12 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v3 net-next 1/7] net: add rx_sk to trace_kfree_skb Content-Language: en-US To: Yan Zhai , Steven Rostedt Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Abhishek Chauhan , Mina Almasry , Florian Westphal , Alexander Lobakin , David Howells , Jiri Pirko , Daniel Borkmann , Sebastian Andrzej Siewior , Lorenzo Bianconi , Pavel Begunkov , linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, Jesper Dangaard Brouer , Masami Hiramatsu , Mathieu Desnoyers , Neil Horman , linux-trace-kernel@vger.kernel.org, Dan Carpenter References: <983c54f98746bd42d778b99840435d0a93963cb3.1717529533.git.yan@cloudflare.com> <20240605195750.1a225963@gandalf.local.home> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/6/24 9:37 AM, Yan Zhai wrote: > # cat /sys/kernel/debug/tracing/events/skb/kfree_skb/format > name: kfree_skb > ID: 2260 > format: > field:unsigned short common_type; offset:0; > size:2; signed:0; > field:unsigned char common_flags; offset:2; > size:1; signed:0; > field:unsigned char common_preempt_count; offset:3; > size:1; signed:0; > field:int common_pid; offset:4; size:4; signed:1; > > field:void * skbaddr; offset:8; size:8; signed:0; > field:void * location; offset:16; size:8; signed:0; > field:unsigned short protocol; offset:24; size:2; signed:0; > field:enum skb_drop_reason reason; offset:28; > size:4; signed:0; > field:void * rx_skaddr; offset:32; size:8; signed:0; > > Do you think we still need to change the order? > yes. Keeping proper order now ensures no holes creep in with later changes.