Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp502051pxb; Wed, 13 Jan 2021 08:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFomBIozwg1ku4rWe3T6cfQ0axUEvKwvznb3e9PZBgSzpaqN8EwZTI8G9w9o8KpRm9pHrA X-Received: by 2002:a17:907:10db:: with SMTP id rv27mr229537ejb.275.1610556241521; Wed, 13 Jan 2021 08:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610556241; cv=none; d=google.com; s=arc-20160816; b=oPSjGUPZWqnYtAU05aeffN3UJ351mrURdVXr45V+mr89rgKXTf2BSU6REvXJfoIvPT J7lFXIh9AuK43gWoDmqiP/G0TY0VPmA+x18TjSAad3LyMImQ/lBidTdtU3yrl2HyV5oX ngUsNFELlVy2EfjIZ8CMfLquOCXoM43UP1zqifY0r85VvUKJ8NfL39uzadXLA2h/v7Lk 65uAltg99ryZtzXk3jCcPvpEop9ugZsT6brWweB6at4qyzpVtI7MBmMVG28rvnl7w73o UbbV3EVZrZCBkE4DPbowbr8wzgSFAtYu04mbu71KjHmnZHca8p+kPzZRefPbISfCKaVE QBYQ== 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:dkim-signature; bh=wjcYY6jSZGR3OQJEyZOutpo6r9ZeEEU7xz7GXe+2ciU=; b=e5jHkkoBipxNnvLctJUyHxayWXvzgE8XhHOamK3wc7LAHFbZMDUjRzVI1iWxtjgDAN h5iDbnYK9n+S0XkXkMaMGve6isiJED4/zSEv6hod9fuiZSXWDdnwDKd/nJW9p6ot2wRR tidLlk0cUwxzxqqi+5JYTfYayNvRUpXTM8qudZdDxgZRWPTrS5a+I3+qjYWVHaCaPfW/ Uauc67ppggFsxa4xr/IYhsOBeFD3TKAlt79BkYf+/QOee6odOMpU3s7PYbLOwGoBv3lL cS0K6H+SmW2TQPlS5mRgeooiJ8Mf3DlkM7KF3j69PsMZk9eTAtlu4OgL1Jmw3fcmyDf7 ATdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ecvp065l; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si1093028ejw.546.2021.01.13.08.43.38; Wed, 13 Jan 2021 08:44:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ecvp065l; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727309AbhAMQlZ (ORCPT + 99 others); Wed, 13 Jan 2021 11:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbhAMQlZ (ORCPT ); Wed, 13 Jan 2021 11:41:25 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E29C061575 for ; Wed, 13 Jan 2021 08:40:45 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id t16so3936636ejf.13 for ; Wed, 13 Jan 2021 08:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wjcYY6jSZGR3OQJEyZOutpo6r9ZeEEU7xz7GXe+2ciU=; b=ecvp065lxf1k8zZwrTVEc5wvLGBO89g3pHn0rNHwB1Butz6nMZb5uqcuo2VC26xE6n XCXidwyps2uo8uEftIf8zhnxg0g3kz97xJt6AHnwTi2yetTBkFn9FDbl22hV09I6leCP 2D1NmRAMS67LUSdy0Yw1ThPmlfRba1DrHZUVuct44iK7mu3Lv4Z3u6Up8z6z9Uqa1sqV jlv6SzUf3bPGuYeK5mDTpQsiZSrj+4m6dvcjkDv5pJECiZk3BnLb+YDNZmFdDtQvuYpv EGfKstM+A5zmwcjLFZahdt9pVXBBZlWxmw1HIdAFlBRBaCZj2i4iz9qY4i8lgIcagnH4 vZCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wjcYY6jSZGR3OQJEyZOutpo6r9ZeEEU7xz7GXe+2ciU=; b=QwvbUmT/90npM50GFeYIsapRdKqB9UguxvuN3LkGxI0SkWgsFuUFVZ6Ehw+vb+0G3z FodAEclDRlYe6fxEIC+MzaKdI5ICmI0AmsjreGASrSUdmgYlZculdxykYg9GS2zuZH2N WNZ0P0vxeWFYvQRBQl0sVUhwE3raJnVwLbRiR+R1T1JSdzP66l1S2grsd+FLnc4mAw1u ke77ZpQ+QMkNsE6ru2h/avf9kBWw7l+BeCwhaxLAl/YzSgPkmxijArNd8ot7ZSffSpiU Sf4Cgack2qADc+qlcA9JTJBlfp+KLBN0jSlohFEWuqgfHbaZbr1wg0iwbK7GvlyVOBoX MR5A== X-Gm-Message-State: AOAM530FZolqCDvjpwDkW0grS10L/QZJah+TpGOCS3ETu8BojRrgvdYj L/uMXs8GnTO+7ypLai+vfwjfvQ== X-Received: by 2002:a17:906:31cb:: with SMTP id f11mr2246516ejf.468.1610556043904; Wed, 13 Jan 2021 08:40:43 -0800 (PST) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id s1sm925459ejx.25.2021.01.13.08.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 08:40:43 -0800 (PST) Date: Wed, 13 Jan 2021 17:40:24 +0100 From: Jean-Philippe Brucker To: Qais Yousef 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <20210113102131.mjxpqpoi4n6rhbny@e107158-lin> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Jean