Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp197593pxp; Sat, 5 Mar 2022 01:52:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn3xX6LmiORTcMJDhwEM+n5CNcN+WMdOdFN5SVW031GM1/3tJEM+ZQCt/mOJmb0Z5UBAOI X-Received: by 2002:a63:6809:0:b0:37c:68d3:1224 with SMTP id d9-20020a636809000000b0037c68d31224mr2111381pgc.287.1646473925112; Sat, 05 Mar 2022 01:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646473925; cv=none; d=google.com; s=arc-20160816; b=AY3Wbezoz+QUghrTdbnbck0usChbXZXJAHDrOR01BYSTDZii0Fl9+5J4oc6SZTUjxS TG3mL7VObbnVkaWnqHrDLizDrYbunnTlcOaLsgzxQsQ/SUd/N4VTnQjUlZu0QYYLzeez QqKCAH0xgRUgAmh2WvD2Jy35080TW/Lw/DOWMmLAOFaglHQP0RrIxvFhWOWLQ9HhSKww +qyTZ+RQTb6shEKJ/8p5e8MpgFxtZ+Sf6+KvRFdWESRZYNTGx1f+XEam9jugkLUgNb6T D9iOQ8arS4OEDGRH/NHzyjusC2TnGL/L9u/tL7i8nEvU0aKaUxohHTiH4zP65PjKHhnJ FvqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I/LIVoeyXEuKx0z0n31DzWwJE9AigN2g2M4Yq6b1vok=; b=pwdFbLtGUYwKyP/uMDE/Z+iUx5eMpk5ZownEi83t6H77ME7jMyaH8vWZnyJvbGrl2S OoZqj8uKSBlNeXIonzd549BkSgpEEN0ODeYuqI0Z8vq5Cli0Wl6dx6sekvykGUkgD/L+ Msn8wjCsWINAb6yU7rtrRqU5EIEuUAZAb32NO68Nb8dq7sibyrg/Amq114i7zFb6vlxI oaBQ8jnL39ZAPTeT0pn0LsOoEHFV26USD4QSpCQdDcFmGmyzglQ4uz7E3KtxOZ9FT6kv T8N8T/4vAjbyj0ky/6NL2WzhWzdbImH742U69wSA+hieQrafFsn1vgfS2L3lPDOEEtxI cqbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRgyicmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a631b48000000b003644cfa0dd2si6737874pgm.141.2022.03.05.01.51.49; Sat, 05 Mar 2022 01:52:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRgyicmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbiCEAma (ORCPT + 99 others); Fri, 4 Mar 2022 19:42:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiCEAm3 (ORCPT ); Fri, 4 Mar 2022 19:42:29 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3944D15C191; Fri, 4 Mar 2022 16:41:39 -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 sin.source.kernel.org (Postfix) with ESMTPS id 62748CE2F37; Sat, 5 Mar 2022 00:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F927C340EF; Sat, 5 Mar 2022 00:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646440896; bh=XnyKpVbqFye4ROXP1rvn2MXKkQjlnGcCb7ljnwSBAsY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jRgyicmmLZmddgtoXbicy9Nn759yWEAYHm4luZQFaksvkp5g0rLoxzO6a1qJvQ9Tw DfcT6+uDpb+xjgjrWxWY88iUgMobvbpk2zMxDKftNsu8DrHjYn2TKQBTRuI4pcpqUY Wz8zlW+zEjnsEt3gFCIlmoDR9fgW5R+QcOEjQnts7n7AJZHtUKG71+Ayqmkhfs34dR g+xdXHeoKALUY3L/fXtMPROl5IB8lrqH/RH04XgFcqCHYzRuKASZBujTvnpOnunWqv 7Hiqwnw7p4NbvhxdB8ZwBXIkhsPrQcR5d2zS0rVq200ugJrxidBxreo1YCNCZA/eYg 1biFWyp7LOzYw== Received: by mail-yb1-f181.google.com with SMTP id f38so20116762ybi.3; Fri, 04 Mar 2022 16:41:36 -0800 (PST) X-Gm-Message-State: AOAM533kfmvKF4wO6pMLpl2dzoBQGEpnFoPSGISDZGdYwWcR9HtnOybb 0SVNTH/PLZ/c0K7d1mnDOdfD/PkbDU0BAvTG3xs= X-Received: by 2002:a25:8546:0:b0:61e:1d34:ec71 with SMTP id f6-20020a258546000000b0061e1d34ec71mr917915ybn.259.1646440895532; Fri, 04 Mar 2022 16:41:35 -0800 (PST) MIME-Version: 1.0 References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> <20220304172852.274126-6-benjamin.tissoires@redhat.com> In-Reply-To: <20220304172852.274126-6-benjamin.tissoires@redhat.com> From: Song Liu Date: Fri, 4 Mar 2022 16:41:24 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf-next v2 05/28] selftests/bpf: add tests for the HID-bpf initial implementation To: Benjamin Tissoires Cc: Greg KH , 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 , open list , "open list:HID CORE LAYER" , Networking , bpf , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, Mar 4, 2022 at 9:31 AM Benjamin Tissoires wrote: > > The test is pretty basic: > - create a virtual uhid device that no userspace will like (to not mess > up the running system) > - attach a BPF prog to it > - open the matching hidraw node > - inject one event and check: > * that the BPF program can do something on the event stream > * can modify the event stream > > Signed-off-by: Benjamin Tissoires > Does this test run with vm (qemu, etc.)? Maybe we need to update tools/testing/selftests/bpf/config ? Thanks, Song