Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2189568pxm; Fri, 4 Mar 2022 11:02:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhDPDZ9XyAPKDtOdYPhH7zmyII1enXvHxK10i2OnkkmAPLhqL/kYbgoXGfwx0+b/r4sv4e X-Received: by 2002:a17:90b:3ec9:b0:1bf:3158:9057 with SMTP id rm9-20020a17090b3ec900b001bf31589057mr2590821pjb.228.1646420528710; Fri, 04 Mar 2022 11:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646420528; cv=none; d=google.com; s=arc-20160816; b=GWaYw3jJWAqBLTJd/fjRbZG1Rq6WsliRj386uGB3wdEKD9FZeGScPfZMuNUFrakpQd f8IMksY3Y9v+5WD3WXCrNqIJz96gBEUQFLHbqsjIS33BK11zGLHX9KOT9RkxRBcgxjsQ LgD4oY/wFkbp8YxkcahlYbcl37duWVA8kLZEt1NlpsbULm1nIuRpg1RtLE1BXxJiUQEd PHeg4MSFSAHMPMuRwdm0M/PXcIvcxi7QxdFDG7sxroi+yhoqcwGHW5D6dw/kAuNOhTe1 h580xlgz8wTePD18+FnzLpfA7IDVNUV7u7wzcehUkhvs+/B619GH5joPOUi0Zek5eOhc CEkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AHXclG4UU3SsFO1lmPzG4KrgiciUiPhbXYLOOW1McYw=; b=N6eB0RbQi/7DcBOFX2YVyPlMLeUnjdpqLQqX3WZQK1viEUMdahQiOhVsmzIPU4wdEf nIbya1pTBWz1VVKcS0sKpXy4fhdgbV1HyJ8gThAwgxGbs+GiubSNvHwkc8q6l9ZLJVMD 8vjRSq0nLQqmVyVOLH/Ees/iJFGfhbs/g6TOwSVbc+WQHxlJQQkKWaUaH3lOkoLu1t4Z CFTMMiF8Hoi3ZqX4ueg6qE8j/jowlk1E0iNVFfMOZOCdoWOHuNVAl91T4ymau7HRIq/V LccpeyHSOGMig4xjrU2nhx5xRJJ2Idd2ewk7fkewUx6m52ro5neaPouQp6peQihBDlB8 H4LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LrghOQXN; 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=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b9-20020a170902650900b0015004066257si5495422plk.495.2022.03.04.11.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:02:08 -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=@redhat.com header.s=mimecast20190719 header.b=LrghOQXN; 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=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A32E61D86C4; Fri, 4 Mar 2022 11:00:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241152AbiCDRdM (ORCPT + 99 others); Fri, 4 Mar 2022 12:33:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241257AbiCDRc4 (ORCPT ); Fri, 4 Mar 2022 12:32:56 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 417411CE9AD for ; Fri, 4 Mar 2022 09:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646415127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AHXclG4UU3SsFO1lmPzG4KrgiciUiPhbXYLOOW1McYw=; b=LrghOQXNUOR0r0kuatoGrfArTEqrYDbRFzbT30v73POJbiNl7MumXnywvf8JMPLuxtTjVQ APKp52hkHExi+L9CTgivORTFZxOt/4n1gOdw2+VNgzVhg3XA6aiE7f5nRDNWikj0KyhhHi FLuiC3oQ6vcYGI9corXHnWfetncRevs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-438-dEgrSUCrOImgtxojmRx8Bg-1; Fri, 04 Mar 2022 12:32:04 -0500 X-MC-Unique: dEgrSUCrOImgtxojmRx8Bg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C19BA1091DA1; Fri, 4 Mar 2022 17:32:01 +0000 (UTC) Received: from plouf.redhat.com (unknown [10.39.192.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id C5B2886595; Fri, 4 Mar 2022 17:31:44 +0000 (UTC) From: Benjamin Tissoires To: 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 Cc: Tero Kristo , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Benjamin Tissoires Subject: [PATCH bpf-next v2 09/28] libbpf: add new attach type BPF_HID_RDESC_FIXUP Date: Fri, 4 Mar 2022 18:28:33 +0100 Message-Id: <20220304172852.274126-10-benjamin.tissoires@redhat.com> In-Reply-To: <20220304172852.274126-1-benjamin.tissoires@redhat.com> References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Spam-Status: No, score=-2.3 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=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 Adds the SEC definiton for report descriptor fixups. Signed-off-by: Benjamin Tissoires --- changes in v2: - split the series by bpf/libbpf/hid/selftests and samples --- tools/lib/bpf/libbpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 356bbd3ad2c7..192ef3901251 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -8681,6 +8681,7 @@ static const struct bpf_sec_def section_defs[] = { SEC_DEF("struct_ops+", STRUCT_OPS, 0, SEC_NONE), SEC_DEF("sk_lookup", SK_LOOKUP, BPF_SK_LOOKUP, SEC_ATTACHABLE | SEC_SLOPPY_PFX), SEC_DEF("hid/device_event", HID, BPF_HID_DEVICE_EVENT, SEC_ATTACHABLE_OPT | SEC_SLOPPY_PFX), + SEC_DEF("hid/rdesc_fixup", HID, BPF_HID_RDESC_FIXUP, SEC_ATTACHABLE_OPT | SEC_SLOPPY_PFX), }; #define MAX_TYPE_NAME_SIZE 32 -- 2.35.1