Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp704834pxm; Fri, 25 Feb 2022 17:47:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn7ub4zq9LKv3XdeUlssg/Yyc062YELuResNUG1Yn8LYqHJMtCQgVHG2Ff4PxmytkZNLtf X-Received: by 2002:a17:902:eb8f:b0:151:45e9:533a with SMTP id q15-20020a170902eb8f00b0015145e9533amr1667038plg.89.1645840063315; Fri, 25 Feb 2022 17:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645840063; cv=none; d=google.com; s=arc-20160816; b=Nhzt5SxdiLeKqY+lQKXKrBUOlAhT1oj4RIKtoh9iBNxSBQit+3/BCIDo955mudhz+0 /VYcGvNflM3r8bolFxeDzcfkUAEv/mcOcon4x7y487r5P28GgOJUr5y72A2h5j2m66Mq I1p9kRntIrR5QY/k4wPR8aELl//Jb4AlgV4C6moncjmkgDViQxEi8PeZmT3y3rTkTLf7 o+ONG+2aPmlcGju3GsXk5pj9HWt9UV6SQoekrc+fydDTJFYb2FMmA/ucLyIMm6V3G+Rl 3MYMk5YFeWURLkNkpKVFGDL8ZDtrrT43qPUoipGJTiu1SRdVFrDbQ3TosCOj5g6yy0S0 pDDA== 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=RzD8+PbngVpyvuxMd/blaAIPgqX+SKHPIdd2Du0IWto=; b=YL/fa1FKNC7cocKFKNQTlpOytjEmly147tIZB5e07wBqJDdoopsqQF9pqSZcLpEVjP BXbiESGJubIf+Zr9Oskvfd48Y0IlQ46+feR82N6+gmtB3xiVneB1K7D0zTqtLohocs0e 5+/nrriKGz78lkqMYNmi6Zlr2LDhlHdQrW63fZiTbiq2980vFJT7pYtNoeEYoQUNxOwX 5BcRf5LTmWFqGToldZ4KCjsuOH6Zy3XN/qbD/qcZt5IKlDxeZXOt39Ivj39/effpp7nU OtrbJ3iYVTAMU+pYCVpS18wnBfV2FtZPp8Ri3S7ILXxauYInZCufeqgSePRuEe3WLSjQ /FTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PqQA6k5a; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c8-20020a654208000000b003755b0a3aa1si3539280pgq.706.2022.02.25.17.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:47:43 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PqQA6k5a; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 918FC258BF2; Fri, 25 Feb 2022 17:36:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242939AbiBYQXv (ORCPT + 99 others); Fri, 25 Feb 2022 11:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242930AbiBYQXt (ORCPT ); Fri, 25 Feb 2022 11:23:49 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F78B3E41; Fri, 25 Feb 2022 08:23:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3DCF6B8326B; Fri, 25 Feb 2022 16:23:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BF6AC340E7; Fri, 25 Feb 2022 16:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645806193; bh=rkLjTIjcRR32zyhieMNFJ8Z8g6Br2JWE90YX1D0HpYQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PqQA6k5avulgzjLrXS55FBGglRzClfgITBEPzW/sIi1vhdrBB7DzHVsiiDyDC7tIS pSJyavVbhEMdNfhtl/uhpJdcezZIRqUmOeqYedIhPPgDgQddEFuAVas3F4AFMbNZfZ 8MFDo8iejA7WO8GBInhG+K1elmW1Phxw0sSI3vRM= Date: Fri, 25 Feb 2022 17:23:11 +0100 From: Greg KH To: Benjamin Tissoires Cc: Jiri Kosina , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Dave Marchevsky , Joe Stringer , Tero Kristo , lkml , "open list:HID CORE LAYER" , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Peter Hutterer Subject: Re: [PATCH bpf-next v1 0/6] Introduce eBPF support for HID devices Message-ID: References: <20220224110828.2168231-1-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HID selftests question for now: On Fri, Feb 25, 2022 at 05:00:53PM +0100, Benjamin Tissoires wrote: > > > I am not entirely clear on which plan I want to have for userspace. > > > I'd like to have libinput on board, but right now, Peter's stance is > > > "not in my garden" (and he has good reasons for it). > > > So my initial plan is to cook and hold the bpf programs in hid-tools, > > > which is the repo I am using for the regression tests on HID. > > > > Why isn't the hid regression tests in the kernel tree also? That would > > allow all of the testers out there to test things much easier than > > having to suck down another test repo (like Linaro and 0-day and > > kernelci would be forced to do). > > 2 years ago I would have argued that the ease of development of > gitlab.fd.o was more suited to a fast moving project. > > Now... The changes in the core part of the code don't change much so > yes, merging it in the kernel might have a lot of benefits outside of > what you said. The most immediate one is that I could require fixes to > be provided with a test, and merge them together, without having to > hold them until Linus releases a new version. Yes, having a test be required for a fix is a great idea. Many subsystems do this already and it helps a lot. > If nobody complains of having the regression tests in python with > pytest and some Python 3.6+ features, that is definitely something I > should look for. Look at the tools/testing/selftests/ directory today. We already have python3 tests in there, and as long as you follow the proper TAP output format, all should be fine. The tc-testing python code in the kernel trees seems to do that and no one has complained yet :) thanks, greg k-h