Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp241357pxb; Wed, 13 Jan 2021 02:25:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv419cXgrFTkxSKmwuUruH0yAPkWyYQFwaIIHSR2xAXD9t9DRpi2UFcJ15oqHjR/AYu9NC X-Received: by 2002:a17:906:195a:: with SMTP id b26mr1045176eje.4.1610533504354; Wed, 13 Jan 2021 02:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610533504; cv=none; d=google.com; s=arc-20160816; b=ERRPnztSx8eproNahTbF2he3QR1oXm9kTZeqMcSEOv8M75FRwiRqx4ddsEXLb9wv11 hDZVeXxMBNEIr+gnvrca4t96zbqdmlwAA9+J8TRBFdV09Wp2pY8O6galkNJTEVpzxdi3 QIACYfIbgYN7kDc0yLOLVufN4/omHJjyjlKmJ4sMEiPDUuJgBvmGaw50escJ/5es/0CQ ybeihhOLRO3S7+1bZNrqRFKidzXRuzYVzq5EWo6dWkSoQYQzf8ydaOcRB2iw25i7NDW3 jX/ExjgEW4Dmn1oUrK1FHNFoyz8W1IlTAmvrzFVMFMEpOm9nMMZpv0rmVBc+o3IEjIPQ kkOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=HDMWXWtGFWPdw2sI1jfA2IiUkGCurCXVg/4GPVf5MTU=; b=Q4gO90zQCf2iDoyFl+BdKTovXjdK20ut0fbHAuQRZvFltjzA0WwNbTH9mxyfNflB6A LSDhyFUbTw5TKu+wwmsZtV3j1rKUkWoLyWagz3HQgtV3U8n5edrd2d+iGKB4lWWF4NC7 2R/MoMGIsQA2gEVcQh68McaE3Oa8dxPfeFU/OSVQcZd31hSHZ2QXsLjWNPStWDYO0lMs qj3XxG3QPnVURYAlnd5pFWZ/FihtWOcEEwz0ZqAHw+2u5Wv8Y1O/spYOACFRtFNjneK/ yD1eRdcDHR+bQX1K+qbShs3tCv3DE4kaHKMw4DkLomuxa1+1+CvjhFBt23EY1CFT7zKR wwYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si698407eja.676.2021.01.13.02.24.41; Wed, 13 Jan 2021 02:25:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727090AbhAMKWV (ORCPT + 99 others); Wed, 13 Jan 2021 05:22:21 -0500 Received: from foss.arm.com ([217.140.110.172]:33734 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbhAMKWV (ORCPT ); Wed, 13 Jan 2021 05:22:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2CA631042; Wed, 13 Jan 2021 02:21:35 -0800 (PST) Received: from e107158-lin (e107158-lin.cambridge.arm.com [10.1.194.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E65913F66E; Wed, 13 Jan 2021 02:21:33 -0800 (PST) Date: Wed, 13 Jan 2021 10:21:31 +0000 From: Qais Yousef To: Andrii Nakryiko Cc: Networking , bpf , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Steven Rostedt , "Peter Zijlstra (Intel)" , open list Subject: Re: [PATCH bpf-next 2/2] selftests: bpf: Add a new test for bare tracepoints Message-ID: <20210113102131.mjxpqpoi4n6rhbny@e107158-lin> References: <20210111182027.1448538-1-qais.yousef@arm.com> <20210111182027.1448538-3-qais.yousef@arm.com> <20210112192729.q47avnmnzl54nekg@e107158-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/12/21 12:07, Andrii Nakryiko wrote: > > > > $ sudo ./test_progs -v -t module_attach > > > > > > use -vv when debugging stuff like that with test_progs, it will output > > > libbpf detailed logs, that often are very helpful > > > > I tried that but it didn't help me. Full output is here > > > > https://paste.debian.net/1180846 > > > > It did help a bit for me to make sure that you have bpf_testmod > properly loaded and its BTF was found, so the problem is somewhere > else. Also, given load succeeded and attach failed with OPNOTSUPP, I > suspect you are missing some of FTRACE configs, which seems to be > missing from selftests's config as well. Check that you have > CONFIG_FTRACE=y and CONFIG_DYNAMIC_FTRACE=y, and you might need some > more. See [0] for a real config we are using to run all tests in > libbpf CI. If you figure out what you were missing, please also > contribute a patch to selftests' config. > > [0] https://github.com/libbpf/libbpf/blob/master/travis-ci/vmtest/configs/latest.config Yeah that occurred to me too. I do have all necessary FTRACE options enabled, including DYNAMIC_FTRACE. I think I did try enabling fault injection too just in case. I have CONFIG_FAULT_INJECTION=y and CONFIG_FUNCTION_ERROR_INJECTION=y. I will look at the CI config and see if I can figure it out. I will likely get a chance to look at all of this and send v2 over the weekend. Thanks -- Qais Yousef