Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751458AbdIOQ6t (ORCPT ); Fri, 15 Sep 2017 12:58:49 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.164]:51066 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369AbdIOQ6r (ORCPT ); Fri, 15 Sep 2017 12:58:47 -0400 Subject: Re: selftests/bpf doesn't compile To: Alexei Starovoitov , Shuah Khan References: <20170908111923.27434-1-thomas@m3y3r.de> <20170908230155.esge2mctk5d5g7gb@ast-mbp> <59B32231.9090406@iogearbox.net> <295553a4-aadc-e5d1-229e-22d1966bc9f5@kernel.org> <20170915160253.q3x5j7hfkxxh2g6w@ast-mbp> CC: Daniel Borkmann , Thomas Meyer , , , Shuah Khan , Networking From: Edward Cree Message-ID: <701006c0-f80a-6bd7-fb5e-5bca1dc33a31@solarflare.com> Date: Fri, 15 Sep 2017 17:58:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20170915160253.q3x5j7hfkxxh2g6w@ast-mbp> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.45] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ocex03.SolarFlarecom.com (10.20.40.36) X-MDID: 1505494727-iL0Ag3rAfpsJ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1278 Lines: 19 On 15/09/17 17:02, Alexei Starovoitov wrote: > On Thu, Sep 14, 2017 at 09:33:48AM -0600, Shuah Khan wrote: >> Is bpf test intended to be run in kselftest run? The clang dependency might >> not be met on majority of the systems. Is this a hard dependency?? > It is a hard dependency and clang should be present on majority of the systems. I think this is the wrong approach. Making kselftest hard-require clang doesn't mean that the bpf tests will be run more often, it means that the rest of the kselftests will be run less often. clang is quite big (when I tried to install it on one of my test servers, I didn't have enough disk space & had to go on a clear-out of unused packages), and most people aren't interested in the bpf subsystem specifically; they would rather be able to skip those tests. I feel that as long as they know they are skipping some tests (so e.g. they won't consider it a sufficient test of a kselftest refactor), that's fine. It's not even as though all of the bpf tests require clang; the (smaller) tests written directly in raw eBPF instructions could still be run on such a system. So I think we should attempt to run as much as possible but accept that clang may not be available and have an option to skip some tests in that case. -Ed