Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp244805pxb; Thu, 14 Jan 2021 05:03:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPPg1EEya16fWCTQzUaZs6txibvP91z/PJEc3kkHCY2gR4pZp29JhLktJu4e2C1zRGpJ6c X-Received: by 2002:a17:906:6846:: with SMTP id a6mr641529ejs.470.1610629411639; Thu, 14 Jan 2021 05:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610629411; cv=none; d=google.com; s=arc-20160816; b=mRSM+btPX6pNCUQ9ocQLLsy1VNF0+Vli4OgxhDe/wn99GPJainRFP6RUVf1MfQTUnJ r2MfD+n/RMGO4eAWYGucTsYBJM/Bmh16qZ2jPj9MKyhrLyIM2GMcGXbOPsK9XUCDSL9S T7raXJLTvFh1B7pOuYz4gObyCw5yxD4J8dk5vv2Y/E5wGLgDXlPOnmnw3J3utBKdwDoQ X/NqV7tY8L6y8Qc9Kv+D5oxa09rbYDTUWkE2LMEynuzNC2Wh32uDL9U4s9GMvP2MMcW9 7QNAZbtA1ZMPwoG6OFjpfX9KxkusyOkUQsCyOb+2LwUQo+FIFSFajjwZ9P1daUIJ4eCD 0+zw== 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=OAARHW1PK4KzuEv3BuNbUJjqwadyIuYgBR5J7q4/Io8=; b=aAKyOvRno/nZxxOuuXUTWWAXXf0de9vxdAQkIywPHh3Ioam/8k5T14E43qrk2+MR9D W5N217Ea9s51G/xA/tV2eNHe8x5nQZgdgRJ70AJlHDYlh3xzvlX8TpsbZqh1vFSg9Y+P nhkEbRyt1/of6miAT/7HuCUGQzsJcPrhG8n0FxIxkhVh/l5rDWhTpkXUwgKbb/lXSOOE ckT67lXYiurZbbqC8baiLQFQuT0PbI7QrLJh6EoZQuVf+qcRe38GdAnG1bVLsO7Tl2AI TqkDq84eqn9Yb/dHVGFIpzBiRXTumpjOTjiCMxbQZnbU/umOMjM04dsYSaWO4r8ilX7J I8aA== 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 m13si2949800edi.155.2021.01.14.05.03.06; Thu, 14 Jan 2021 05:03:31 -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 S1728394AbhANM7M (ORCPT + 99 others); Thu, 14 Jan 2021 07:59:12 -0500 Received: from foss.arm.com ([217.140.110.172]:49668 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbhANM7M (ORCPT ); Thu, 14 Jan 2021 07:59:12 -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 569531FB; Thu, 14 Jan 2021 04:58:26 -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 035553F719; Thu, 14 Jan 2021 04:58:24 -0800 (PST) Date: Thu, 14 Jan 2021 12:58:22 +0000 From: Qais Yousef To: Jean-Philippe Brucker Cc: Andrii Nakryiko , 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: <20210114125822.4eptwt36dql254dd@e107158-lin> References: <20210111182027.1448538-1-qais.yousef@arm.com> <20210111182027.1448538-3-qais.yousef@arm.com> <20210112192729.q47avnmnzl54nekg@e107158-lin> <20210113102131.mjxpqpoi4n6rhbny@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/13/21 17:40, Jean-Philippe Brucker wrote: > On Wed, Jan 13, 2021 at 10:21:31AM +0000, Qais Yousef wrote: > > 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. > > Could it come from lack of fentry support on arm64 (or are you testing on > x86?) Since the arm64 JIT doesn't have trampoline support at the moment, a > lot of bpf selftests fail with ENOTSUPP. I am on arm64. I honestly have no clue about this. I'll try to dig out. Thanks -- Qais Yousef