Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp588336pxp; Sat, 5 Mar 2022 12:15:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2c66o91F2kYVQtrlsmyI2UCXxt1bxFfVHR6LxujQRmPQpz+ttO0XVpmgijjlijiUPaUJ3 X-Received: by 2002:a17:907:16a6:b0:6da:94d0:3d22 with SMTP id hc38-20020a17090716a600b006da94d03d22mr3776426ejc.160.1646511315832; Sat, 05 Mar 2022 12:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646511315; cv=none; d=google.com; s=arc-20160816; b=tRz1sl9sRxQcbkWz4UVPsButnC/f+FAmW5WS+Wa3w0/Yw9XygvooKzRNgyXcbm/uPn Uno+1B+IhaxUvnJJfOBUifK00VQaoznGd6cf4BQGJw7pVNSkdlWCSUsGcLBlxMPiF2TC MY0dPS7AHm6IkysBdZ5Ej/Tf1PBUE8o6M7Pdrml1M1aJtDZxCl2EmgNjAuvYQS09ZMLP 11rUe3dlTxYgtqQ1BcmZHXTT5XP1H36VUxsgjGoUGxU1/3RuvA4IDcoBcMG15QlO32Z+ lqV3hfgXXP1nB8IyZQTVPbD45c3NZehpZPQsjrdc6YJQjrFydavQObszn9blHwOqTmhA DgxA== 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=uP1EZwK12VovZoxEdkUXW5CRQDWRv4FFnOIIOb/Aux0=; b=xF6kFfjOFv41VnAM3QdHG/blj9r8wd4lWofKChwZP4gJ//sPNZbJ6/n32C2vLQFWI8 lquYRCN93Vs0vz8BapLUY+V2H+GqXGcs5Qyr06tV2Pf0qiIAXpdijJPcM6i3DRDQsPKi 8ri36wQqOfffAYE1mDZK9+UC9kRrhZNAMl3jjG5/c5uKg7TNl7lj5ge1MyecVM9GIpGW hLCyxykTMXstP7JveIFxu7qGLH7gx79Yw9FP5kAn99FVABzKC1CHnshIPzm94sne+kcH fGRtNy2ciwj0fz7WqzxvzQA97etYODNiqemhmNBPkRc8hqaebCcSFP9R2QX8s3Sc65Hl SNeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CKPWCHuI; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa7-20020a1709076d0700b006d6f8c76249si5423090ejc.720.2022.03.05.12.14.52; Sat, 05 Mar 2022 12:15:15 -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=@redhat.com header.s=mimecast20190719 header.b=CKPWCHuI; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbiCEKLg (ORCPT + 99 others); Sat, 5 Mar 2022 05:11:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiCEKLe (ORCPT ); Sat, 5 Mar 2022 05:11:34 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E755B4DF47 for ; Sat, 5 Mar 2022 02:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646475044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uP1EZwK12VovZoxEdkUXW5CRQDWRv4FFnOIIOb/Aux0=; b=CKPWCHuIArmKJOSCg+r9sigBdIGB2DG9vNvnJzNPsRCfRXmp0ttGSuYxc6TVba/2MixIL2 OwCvfVcR+ahy6X09HtezUFe53bu4hWLWH+k3fTCDxHq/4pZBMUlH45ECPLY1FaF/H9VaU4 d0GQK/s1BW6U05j5DqFaD/T302/dVe4= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-231-UZXk7pKIN9CU-wm6kaodRQ-1; Sat, 05 Mar 2022 05:10:42 -0500 X-MC-Unique: UZXk7pKIN9CU-wm6kaodRQ-1 Received: by mail-pg1-f197.google.com with SMTP id u74-20020a63794d000000b00373efe2ac5aso5941155pgc.14 for ; Sat, 05 Mar 2022 02:10:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uP1EZwK12VovZoxEdkUXW5CRQDWRv4FFnOIIOb/Aux0=; b=ozgur0j3eBS7FOPiSoeM2p9yxcTyZ22jRQCAGmUD0mQLJ4CLr1DJYreHjfvfSI+to3 N3oc1J/DsIsGtUcObxYkD1MLzEbo28hLAugnqnmncILQ2WMXHdrxBCTQifIexCHiy6LV biGx42aHl/wgJC0vlGSeK8pmF66zCYoz3yE0/Iv5ml0eFAclJ37LeoGb3ntJUDzihliE E3PCYOsMmCWA1PE6ORjS61IiKwsUfIA0s7il7ciESoPyydCX5jTHGIYpreUVpIa+/44Z EiBmyxJKVyNqeqcb2YIz31pKtWONpVYig3inLod0+KV/xA2GsoB808VpA2ZIvmx/+bA+ 82iw== X-Gm-Message-State: AOAM531vLS322vlcV24ZvMfMfoFWtY3/SWJaC2LDPVJ3HXnG4TMw/LjI nQb7E/1j9l9g8oWmBW9bFoniJev5GHcaC5+y7rKcpTZxXr/VSEEggPjBoLRK4N7MyXNnwSFQikP 0LvrmUJxlb13rE+j1U0+gzhNnnc2pkmomoPWCMIBU X-Received: by 2002:a05:6a00:3006:b0:4f6:54ba:3581 with SMTP id ay6-20020a056a00300600b004f654ba3581mr3132715pfb.83.1646475041661; Sat, 05 Mar 2022 02:10:41 -0800 (PST) X-Received: by 2002:a05:6a00:3006:b0:4f6:54ba:3581 with SMTP id ay6-20020a056a00300600b004f654ba3581mr3132702pfb.83.1646475041419; Sat, 05 Mar 2022 02:10:41 -0800 (PST) MIME-Version: 1.0 References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> <20220304172852.274126-6-benjamin.tissoires@redhat.com> In-Reply-To: From: Benjamin Tissoires Date: Sat, 5 Mar 2022 11:10:30 +0100 Message-ID: Subject: Re: [PATCH bpf-next v2 05/28] selftests/bpf: add tests for the HID-bpf initial implementation To: Song Liu 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=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Sat, Mar 5, 2022 at 1:41 AM Song Liu wrote: > > 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 ? Good point. I'll give it a shot. I was testing on my devel machine so it was quicker to iterate, but I completely forgot to make a run at qemu with the scripts in place. Cheers, Benjamin > > Thanks, > Song >