From nobody Sun Feb 8 05:23:59 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 EB1A91DCB24 for ; Wed, 18 Dec 2024 17:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734544653; cv=none; b=hDZ3CJLOnwScL0e9F7g/3i6n9Abl/5/eH54zyjqgQgdj3+wG1BP4ptPCRhaVvLE144ttvv+/1iuRIsQv/jdoKhQr/bjFQNZXXUhpGRrZ2hPsva+rJkNJS2bHqE5/iyP6JYOinOJhg4U8aYpews32LmRIfCHe+WPnc3t+OXMCh/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734544653; c=relaxed/simple; bh=fdB0svn2IykAVnwwywBw2gz//mi+2KF+JcQcZEIPz2Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ascir9b6+uHPOJppL4qLTUguxOvcCIJlwEYz04VuyBGhIL0EplsOfBYc5gJSboTP6YelKXxr+JJU+Qm5fgJt0QgZp2exnF87OXBznlDPjq2INvbK7ZXxQof7Hc/Wxry7LQXQfc3WYjdQzXK1Lq2ACcB/gknGhZgPLKIBHL/MqHM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WY9tEsNN; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WY9tEsNN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734544650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oDVTgihxonMnUGQyldRP1JnTHpETqeFjIwyXoZkQt3M=; b=WY9tEsNNu5ZUmaiIt1kwc4pwaIrKXva+ZWveYmmN6sqbr/TCMJB8dGvGS749IU6KzS8K1A mWUmsJ6cZKEBY8ximhnVvPBGdRe4J4JM5JyEiBGVH4flp/qG4ffpOyC1asXq+1D4kWpfsJ QP65FymW/jZ2ZUSNOT2y6LIwooxW6Mo= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-99-G-cnryS1MnCiJpU55YnotQ-1; Wed, 18 Dec 2024 12:57:28 -0500 X-MC-Unique: G-cnryS1MnCiJpU55YnotQ-1 X-Mimecast-MFC-AGG-ID: G-cnryS1MnCiJpU55YnotQ Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CA66E1955F34; Wed, 18 Dec 2024 17:57:27 +0000 (UTC) Received: from fedora (unknown [10.43.17.16]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 63D81195608A; Wed, 18 Dec 2024 17:57:25 +0000 (UTC) Received: by fedora (sSMTP sendmail emulation); Wed, 18 Dec 2024 18:57:24 +0100 From: "Jerome Marchand" To: bpf@vger.kernel.org, Andrii Nakryiko Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Marchand Subject: [PATCH] selftests/bpf: Fix compilation error in get_uprobe_offset() Date: Wed, 18 Dec 2024 18:57:24 +0100 Message-ID: <20241218175724.578884-1-jmarchan@redhat.com> 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 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" In get_uprobe_offset(), the call to procmap_query() use the constant PROCMAP_QUERY_VMA_EXECUTABLE, even if PROCMAP_QUERY is not defined. Define PROCMAP_QUERY_VMA_EXECUTABLE when PROCMAP_QUERY isn't. Fixes: 4e9e07603ecd ("selftests/bpf: make use of PROCMAP_QUERY ioctl if ava= ilable") Signed-off-by: Jerome Marchand Acked-by: Yonghong Song --- tools/testing/selftests/bpf/trace_helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/bpf/trace_helpers.c b/tools/testing/se= lftests/bpf/trace_helpers.c index 2d742fdac6b9..51fa29e0e083 100644 --- a/tools/testing/selftests/bpf/trace_helpers.c +++ b/tools/testing/selftests/bpf/trace_helpers.c @@ -293,6 +293,9 @@ static int procmap_query(int fd, const void *addr, __u3= 2 query_flags, size_t *st return 0; } #else + +#define PROCMAP_QUERY_VMA_EXECUTABLE 0x04 + static int procmap_query(int fd, const void *addr, __u32 query_flags, size= _t *start, size_t *offset, int *flags) { return -EOPNOTSUPP; --=20 2.47.1