From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 09033C433E2 for ; Mon, 14 Sep 2020 05:39:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B773B214F1 for ; Mon, 14 Sep 2020 05:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600061990; bh=IBm/coJ/fWct3202+DREqk6xLW0k+VhzEaxsh/46Qbs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=u5o62Dsn5ypoZ+u9Y5okOAatDBDLDDoNbDKf/usCW12gtgPVUCfLQ2eyu84p6DrsU m5XU2Gp2VMQO3jBmW9XkAsIIjK6mymdy65DseNPSC1k7NRAA+0i19gxX+yI59tFUSh vUoBivE88r6Oo8aqkSCas2ee7lUZLpEJgRTvl9y0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbgINFjb (ORCPT ); Mon, 14 Sep 2020 01:39:31 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39773 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbgINFj3 (ORCPT ); Mon, 14 Sep 2020 01:39:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id a17so17215511wrn.6 for ; Sun, 13 Sep 2020 22:39:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vAkzaOWL4Nu8JZqwZ6SJPpCKL9x+DfRKOfCjWFPwixM=; b=LNEy7nSL1csqmQkKo4xbs+uepo9przZZTzvkaTNFvlhOXkOzKGZpddByD0feaz+QsA jx8Z1S34nsDP9eSBjY3meAQ86Twdfd4tyZAT2Pp1KfE7jUuOrw5bN7/L4PsdEjMlOflE GonWbjwYLye+z9jFgdPXPLAayHb5UYtLMUYUf9LyfbEsxMuEYEUtSUoNqp4fxO/Naqij Moe8cRfJLpVq63BekmSiCorbiUz+7Zk6DIYv+coA6p5Dwi1ozct5U5xWvoLarKl4MXkb chFDxM7HnBj+olLxZI05e+PZgRP+Vcn8l4i8kgHVVWgPplDnZOjaf1DXHc0ZqdghOq9c KcoQ== X-Gm-Message-State: AOAM532HSjVZgey84pGv55F5efmfcY8wdgVa1Jjx4sCqTdKqNROFnVL1 aeNx8ZdfKdWeQl0zs5iUq/4z7edIDvFvq6w1V+g= X-Google-Smtp-Source: ABdhPJx6kMLQl16pDPk60EVPC6sFWUbDYV331GMTw8XJLeNBDUj37LS7L07V7TtrRbJjTpeL4Py0YAvBLQerGSDCmb4= X-Received: by 2002:adf:e481:: with SMTP id i1mr13900480wrm.391.1600061985048; Sun, 13 Sep 2020 22:39:45 -0700 (PDT) MIME-Version: 1.0 References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-4-jolsa@kernel.org> In-Reply-To: <20200913210313.1985612-4-jolsa@kernel.org> From: Namhyung Kim Date: Mon, 14 Sep 2020 14:39:34 +0900 Message-ID: Subject: Re: [PATCH 03/26] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > Sync uapi header with kernel version for mmap3 support. > > Signed-off-by: Jiri Olsa > --- > tools/include/uapi/linux/perf_event.h | 27 ++++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index 3e5dcdd48a49..84a0cbdab1ef 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -384,7 +384,8 @@ struct perf_event_attr { > aux_output : 1, /* generate AUX records instead of events */ > cgroup : 1, /* include cgroup events */ > text_poke : 1, /* include text poke events */ > - __reserved_1 : 30; > + mmap3 : 1, /* include bpf events */ Same here.. Thanks Namhyung > + __reserved_1 : 29; > > union { > __u32 wakeup_events; /* wakeup every n events */ > @@ -1060,6 +1061,30 @@ enum perf_event_type { > */ > PERF_RECORD_TEXT_POKE = 20, > > + /* > + * The MMAP3 records are an augmented version of MMAP2, they add > + * build id value to identify the exact binary behind map > + * > + * struct { > + * struct perf_event_header header; > + * > + * u32 pid, tid; > + * u64 addr; > + * u64 len; > + * u64 pgoff; > + * u32 maj; > + * u32 min; > + * u64 ino; > + * u64 ino_generation; > + * u32 prot, flags; > + * u32 reserved; > + * u8 buildid[20]; > + * char filename[]; > + * struct sample_id sample_id; > + * }; > + */ > + PERF_RECORD_MMAP3 = 21, > + > PERF_RECORD_MAX, /* non-ABI */ > }; > > -- > 2.26.2 >