From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 ECFD2181D0C for ; Fri, 14 Jun 2024 01:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718327964; cv=none; b=eq56KHF3Fe/bHzdY82E1LHScmfrLxredGO/d9C7KDnbjsLyGZlJKIjeSHr/h8TVuk13EfFFBBedNjFHVt7k3yThvTIgtE5WlzgzSM+UNqDffnt9jCPYcqoAkIFIyqbtTv2m76kXPmvd3RKMR/40X7G/nR2qTLYnvtpPS6dDcUIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718327964; c=relaxed/simple; bh=+Slnv33S13gjSVJDgIv2v74rRCrvcbewihT0jRbRpN0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=KoHY0uskZ3zi/9o8mEleVHQNT1TPad36w+veax0sGx1xgmTyGshfCWJBVmeDo4j5P3z7c2cAqP5y3qsi0aunSYt6Rh741CdttcM6WeJvdocqY+xsrZtA9S+DQrTy1KpYzDX0zl8C8/8aJ8Q6u+LYIEQ1Y93NtnGTBcqLOONilsY= 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=JHXt0VEX; arc=none smtp.client-ip=209.85.210.182 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="JHXt0VEX" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-705b9a89e08so1626783b3a.1 for ; Thu, 13 Jun 2024 18:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718327962; x=1718932762; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=+Slnv33S13gjSVJDgIv2v74rRCrvcbewihT0jRbRpN0=; b=JHXt0VEXHrwbBh8ARdQzauu69L7atPeT+fUHF44UY9JsCYpzWu2lry/zae4fPjWGgF Ay+XBBtvVdmZW7XjsvDoRwgTVBQANNZbnl9rhhVqjrCnBI46q2yaFZRXHhTuivTNviZq e4AVSCL2kpdpNiVtgUX2ViQW+UXuAWZ+LRvj6eWZiDo48EwU8AzbqHl+x4bL/WynGje+ eXWAIn3j1Bvj4FJLJOBnlUaADL+ISunOdDjJnQRMQBtas2be0lBeiVvS6AAZ9t/q0b2u 7bwwW4dGh2kVteW6G3uKT7mFPtJ7zWpt++lWX/sqs64f/XU5aRSv2fFrJkfN8QauBt7h cT6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718327962; x=1718932762; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+Slnv33S13gjSVJDgIv2v74rRCrvcbewihT0jRbRpN0=; b=td46sLV6tShm1f/SV/rF43HIuB15bez9W7zYT5r6sdEldlitlnV2lnmv37TOVxPiyM B/fGRgnrTAr9tbkqYpSykR9ZLeMlSEXG3dozxDBqNwcKjmlo/88OBTwr6fczQTsp99SU fe8ZKY0ZPOq8MBBlNzYqnfHT9j69N3mcI+OGIRgs9dBCGrkHju5kzPemQf1106NLnfZE /toe9xe2P8+5syGb93TneKifubavgelmZooUF45ryT3u0jcglcEtDXyJUnyuQRHCh+1C BkdERJWUhgW83v5gL5CD92uU3QaYb5RRgLlGGSHq2FZdHbW/gjCKodHKreJr8u3iDZDn 43Bw== X-Forwarded-Encrypted: i=1; AJvYcCX08sNaq0yva1bten9v2W/ZbaI9zvrD4/vZyJ5NRvgHzWqLcQrSG3wjnD07wEzU1iZEuAlgFGIf1W3DBqRv4/2TOk2K X-Gm-Message-State: AOJu0YyMd5Z62F6o9ZMYWfFDIUovXaIIRld7gZt1Z9SeZCL+AAv8krSp ZiI2d1nZeILXI8SJwjVpK8+sb1eYZ9pKmzkU4ehvqOwaL3Thw4pk X-Google-Smtp-Source: AGHT+IGg1VejvwBiX8SIl/G70UbHmjQm/Tc2T25k9nhAYD9GUgwWAX7hbLI0nCt/FdgDRPCU3S52Jg== X-Received: by 2002:a62:e918:0:b0:704:173b:2cd0 with SMTP id d2e1a72fcca58-705d7191091mr1180459b3a.27.1718327962099; Thu, 13 Jun 2024 18:19:22 -0700 (PDT) Received: from [192.168.0.31] ([38.34.87.7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb6b288sm2040584b3a.149.2024.06.13.18.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 18:19:21 -0700 (PDT) Message-ID: Subject: Re: [PATCH v6 bpf-next 6/9] resolve_btfids: handle presence of .BTF.base section From: Eduard Zingerman To: Alan Maguire , andrii@kernel.org, ast@kernel.org Cc: daniel@iogearbox.net, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, mykolal@fb.com, dxu@dxuuu.xyz, bpf@vger.kernel.org Date: Thu, 13 Jun 2024 18:19:16 -0700 In-Reply-To: <20240613095014.357981-7-alan.maguire@oracle.com> References: <20240613095014.357981-1-alan.maguire@oracle.com> <20240613095014.357981-7-alan.maguire@oracle.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-06-13 at 10:50 +0100, Alan Maguire wrote: > Now that btf_parse_elf() handles .BTF.base section presence, > we need to ensure that resolve_btfids uses .BTF.base when present > rather than the vmlinux base BTF passed in via the -B option. > Detect .BTF.base section presence and unset the base BTF path > to ensure that BTF ELF parsing will do the right thing. >=20 > Signed-off-by: Alan Maguire > --- Reviewed-by: Eduard Zingerman [...]