From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej2-f2.google.com (mail-ej2-f2.google.com [74.125.228.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1D8B3F54DD for ; Mon, 17 Aug 2026 18:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786989929; cv=none; b=XI3gq3gI0J1r7J93SwaVOcb6b+N/0L1KPHOeRL4haGEhu7MN5NEmCVupuxgUZzd6YBY3Ul0FZ5618QplevlT8jwquFbX80K+qZyZCFJlczxs4WghkCNFarUtiU7UXZFm4Z098cpxUZk1wvU6YmN4+Pk7I1OXGPru0P1sK+N9JPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786989929; c=relaxed/simple; bh=puxzEXMJ5f+iK1f5IpCcEBy0jnFex294QxePdLIuumU=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=I346eAxqzqiC9jDtGrWu0X25s8H7wBNbe6UxwulrPaoDMcZj2B0Ykt2J89tqFTBoReVYuwMbNTIjOtcFDqezvsry+pP4dPkLf8spSOIOllBYonoeFjTs54XdoJZ5N1fKcMZW/kbKGm306eqXooyNFN+Sxy/UOHHU8Pc3bchjvII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EBIkbfdw; arc=none smtp.client-ip=74.125.228.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EBIkbfdw" Received: by mail-ej2-f2.google.com with SMTP id a640c23a62f3a-c16060ba9ecso34088666b.0 for ; Mon, 17 Aug 2026 11:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786989925; x=1787594725; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=KYXKYw3ZJODb57Rt3eF8E0ND+mpiXq6EWIJdfMIbgcI=; b=EBIkbfdwJBEFjyCFQO7Lq31lAYvDYdI/b8R+q/5YDBoDF1eWHN1rTZaqWWRdNQ/mbj ZLTmt3HFWw38SgIpXpb9utrD2cV2A4HuciIjXQnH/4FhQEnE+8adoSyUshF/d1UdNpGs QN4kZDZL5h5RAZpr82knu7dV1lx7Ero3385AkirS/yi0IvKPF9tXExcIkachu3bIDyRo gx5pVA1aSczB0NmjQl/qzffoUibv2imLiB+nd2YQlXyQfOtDnnoUYC2cjAw9IvbML6pj PBdbPlR51GqWWfGhISa8KnLPt9lMFYAQNgexX3RF/UKatjWw00Dc10VDZSAXbTnx26e5 3rCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786989925; x=1787594725; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KYXKYw3ZJODb57Rt3eF8E0ND+mpiXq6EWIJdfMIbgcI=; b=ly/DqghQ0aoKAWwgKX6oMQkWMp/WMk1lNlU//SkBbHNhl4pJQ4yhgfhSq+dOg9hZy2 So48nb2iieSbbLmg011RLQJhDO2c616qTR+k5Q6eZ4FnC/NeaktFTrxIFbuLoZqXQx3v MJU5264i2VbrL/ihnXZjDJ5QfZAliibGdxtOqV4z2ksIgFDI3h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MTP id a640c23a62f3a-c218ab5bfe4mr63468966b.0.1786989924403; Mon, 17 Aug 2026 11:05:24 -0700 (PDT) Received: from localhost (nat-icclus-192-26-29-3.epfl.ch. [192.26.29.3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c2187c83829sm34392966b.41.2026.08.17.11.05.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2026 11:05:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 17 Aug 2026 20:05:23 +0200 Message-Id: From: "Kumar Kartikeya Dwivedi" To: "Emil Tsalapatis" , "Changwoo Min" Cc: "Daniel Borkmann" , "Alexei Starovoitov" , "Andrii Nakryiko" , "Eduard Zingerman" , "Shuah Khan" , "Emil Tsalapatis" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "Jiri Olsa" , , , , , Subject: Re: [PATCH] selftests/bpf: Remove duplicate copies of the arena spinlock qnodes X-Mailer: aerc 0.21.0 References: <20260803001807.646357-1-changwoo@igalia.com> <75bbbff2-5ea5-493d-b543-ce40d968f3cb@igalia.com> In-Reply-To: On Mon Aug 17, 2026 at 7:14 PM CEST, Emil Tsalapatis wrote: > On Mon, Aug 17, 2026 at 9:02=E2=80=AFAM Changwoo Min wrote: >> >> > >> Hi Daniel, >> >> On 8/17/26 6:05 PM, Daniel Borkmann wrote: >> > On 8/3/26 2:18 AM, Changwoo Min wrote: >> >> bpf_arena_spin_lock.h defines its 64KB qnodes array in the header, so >> >> every translation unit including it emits a copy. __weak makes them a= ll >> >> resolve to one instance, but bpftool gen object merges only the symbo= ls >> >> and concatenates each input's .addr_space.1 bytes, leaving the surplu= s >> >> copies unreferenced in the linked object. >> >> >> >> libarena links ten such units, so nine copies were dead weight (bytes= ): >> >> >> >> object before after >> >> ----------------------------------------------------- >> >> .addr_space.1 in libarena.bpf.o 676200 86376 >> >> libarena.skel.h 2100123 892371 >> >> libarena_asan.skel.h 2641124 1466477 >> >> >> >> Declare qnodes in the header and let each program define it once: >> >> libarena in src/common.bpf.c, and the arena_spin_lock test beside the >> >> lock it guards. >> >> >> >> Tested with test_progs -t arena_spin_lock and -t libarena. >> >> >> >> Signed-off-by: Changwoo Min > > Hi Changwoo, > > Sorry for the late reply, for the next version feel free to add: > > Reviewed-by: Emil Tsalapatis > Added the tag to v2 and applied, thanks. >> > This doesn't apply cleanly, could you respin against latest bpf-next? >> >> Sure. I will send the v2 rebased on the HEAD of the the bpf-next tree so= on. >> >> Regards. >> Changwoo Min >> >> > >> > Thanks, >> > Daniel >> > >> >>