From patchwork Wed Mar 24 11:25:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Elver X-Patchwork-Id: 12160793 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CCC3C433E6 for ; Wed, 24 Mar 2021 11:26:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62471619FF for ; Wed, 24 Mar 2021 11:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbhCXL0K (ORCPT ); Wed, 24 Mar 2021 07:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234877AbhCXLZp (ORCPT ); Wed, 24 Mar 2021 07:25:45 -0400 Received: from mail-wr1-x449.google.com (mail-wr1-x449.google.com [IPv6:2a00:1450:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63C00C0613E3 for ; Wed, 24 Mar 2021 04:25:44 -0700 (PDT) Received: by mail-wr1-x449.google.com with SMTP id i5so945761wrp.8 for ; Wed, 24 Mar 2021 04:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=I1KbrT5XqAYTtTHNgD870993nANc6M+4kCGSgsFMdj8=; b=kv7CiN8WLQeD9YBtQEq/IUrwhwfOlyPRjhC+7uZhS0eOc9J0GCtpI4ekgSvOQQxk/m Y//oNUJZoYgphvbAsAlJeIdEwxPfDRXzY1Lcz4BaqzPRW9scBwvqiUE+YcGHVmixcYbX Q176uhojSLJ4wQ7K48QCcPkSNXw+j0oCEV2eV1pMGqwpEvlnr5tj9lrs5cT2wKtESGnh C4cKTZSuIxUNVnJ3ZhHNKYJOLRjRq3LjkEb/o1YOB3scaqNFigpBiSXIW9Vj90serHEa S3I8BPELfEhnKc3jpd6JF+qSwrISOWQ5thyCcb9gM2QNFWwiF8WxtuCosf3VqM35moVm yEIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=I1KbrT5XqAYTtTHNgD870993nANc6M+4kCGSgsFMdj8=; b=Lj3TWzQ9s4IRe6XHphJ9fz2H6qtgxokoCrkYXUzMxcTgbiVEa3Pph6XJKN6tf/PQMU odksRJQW6CGGXwi4kw6PxNfOdLGIhZBzHRPD4ZwI28czoUHJBtuSo0YWyXuw4KxSP46X S923UlUEVA1bycmevVBqCE+QDK3D6Nku93pG+LvSk6iW2IPc89hKNdowPzJaoknXMuea NRQ9ON4w6/z28rmGc0mL8P4ld52C5nNEDFIpMYZoZvfYJwruJgtqQkNgGQTFaZGaPjJt 063VQ1/yQFoV8AW0Q85Iof2UYlkolNbcZ8NSJoH6uhYNp1bGTXD8qVWlCkekfA6bbAHT XghA== X-Gm-Message-State: AOAM533zIXwQX7nh+wf3IEPPQXvPrbLzDzoi98r0GsBP9uuUjhy8W9U1 77h5B5XuXKEpIyHj99FezdtB+Utpww== X-Google-Smtp-Source: ABdhPJyvcllZQkcVrgWo840xh+92r48rFYvtuXR+4aUKlIHYNDB1geLImfEttmHlibsGQ+Yp/jLW4hd5qA== X-Received: from elver.muc.corp.google.com ([2a00:79e0:15:13:6489:b3f0:4af:af0]) (user=elver job=sendgmr) by 2002:a1c:bc56:: with SMTP id m83mr2462445wmf.174.1616585143013; Wed, 24 Mar 2021 04:25:43 -0700 (PDT) Date: Wed, 24 Mar 2021 12:25:02 +0100 In-Reply-To: <20210324112503.623833-1-elver@google.com> Message-Id: <20210324112503.623833-11-elver@google.com> Mime-Version: 1.0 References: <20210324112503.623833-1-elver@google.com> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [PATCH v3 10/11] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h From: Marco Elver To: elver@google.com, peterz@infradead.org, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, jolsa@redhat.com, mark.rutland@arm.com, namhyung@kernel.org, tglx@linutronix.de Cc: glider@google.com, viro@zeniv.linux.org.uk, arnd@arndb.de, christian@brauner.io, dvyukov@google.com, jannh@google.com, axboe@kernel.dk, mascasa@google.com, pcc@google.com, irogers@google.com, kasan-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-kselftest@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Sync tool's uapi to pick up the changes adding inherit_thread, remove_on_exec, and sigtrap fields to perf_event_attr. Signed-off-by: Marco Elver --- v3: * Added to series. --- tools/include/uapi/linux/perf_event.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index ad15e40d7f5d..3a4dbb1688f0 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -389,7 +389,10 @@ struct perf_event_attr { cgroup : 1, /* include cgroup events */ text_poke : 1, /* include text poke events */ build_id : 1, /* use build id in mmap2 events */ - __reserved_1 : 29; + inherit_thread : 1, /* children only inherit if cloned with CLONE_THREAD */ + remove_on_exec : 1, /* event is removed from task on exec */ + sigtrap : 1, /* send synchronous SIGTRAP on event */ + __reserved_1 : 26; union { __u32 wakeup_events; /* wakeup every n events */